[gdal-dev] GDAL 1.9 and 2.2 different behaviour when cropping and displaying image

Gong, Shawn shawn.gong at mdacorporation.com
Fri Jan 11 09:26:12 PST 2019


Hi list,

I found different behaviour when cropping and displaying image in OpenEV when using GDAL 1.9 and 2.2, that I couldn't explain:

1) 1st crop
output_ds = gdal_array.OpenArray(imageData)
raster_layer=RasterLayer(ds=output_ds)
  which calls __new__ and __init__, and generate self._ds

2) 2nd crop at different spot
output_ds = gdal_array.OpenArray(imageData)  # verified that output_ds and imageData are different than 1st crop
  but  self._ds is generated twice: the first time correctly, second time it took the 1st crop data.

Has it been changes in how gview.GvRasterLayer.__init__ works?


Thanks,
Shawn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20190111/24f491a5/attachment.html>


More information about the gdal-dev mailing list