Fix localcomparator 871

fixed raster local comparator operations bug. issue 871.