Skip to content

Improve detect zone code and fix issues #47 and #49

Merge request to fix current issues on detection by zone.

Fix of #47 (closed) Detect by zone has a shift of 1 pixel on result on same case

Error was due to wrong construction of output tile geoferencing, i.e affine and transform metadata. This transform metadata is now initialized with rasterio.transform.from_bounds methods in a more concise way.

Fix of #49 (closed) Detect zone wrong extend and resolution output when asking a resolution different from source data

Error in code of raster_to_ndarray_from_dataset where asked resolution was not correctly used. The function has been entirely rewrite in a more concise and straightforward way and should be simpler to understand and maintain.

Code clean up

some now unused functions, and probably false, has been removed from image.py and rasterio.py modules. We also removed a warning of pandas/geopandas who messed up with the log and progress bar output.

Merge request reports