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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Gong, Shawn-2
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

_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev