Fix localcomparator 871

fixes issue #871 occure with two different type rasters