Batch mode of generate dataset tool always fail on the beginning of patch generation during second part
When using generate dataset tool with batch mode (sequence of image/poi pattern/shape file) it's always fails on the beginning of the second generating loop.
The error message is :
stack trace: something went wrong during generation
error code : name of error: ERR_GENERATION_ERROR, code value of error: 10
trace back: Traceback (most recent call last):
File "rasterio/_io.pyx", line 701, in rasterio._io.DatasetReaderBase._read
File "rasterio/shim_rasterioex.pxi", line 162, in rasterio._shim.io_multi_band
File "rasterio/_err.pyx", line 192, in rasterio._err.exc_wrap_int
rasterio._err.CPLE_IllegalArgError: /media/DATA/DATASETS_AI/MULTI_DEP_BATI_V0/DATASET_ALL_384_20cm/full_mask.tiff: Access window out of range in RasterIO(). Requested (0,480000) of size 1x1 on raster of 340000x480000.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ign.fr/ndavid/dev/odeon-landcover/odeon/scripts/generate.py", line 675, in generate_data
CollectionDatasetReader.stack_window_raster(center,
File "/home/ign.fr/ndavid/dev/odeon-landcover/odeon/commons/image.py", line 484, in stack_window_raster
create_patch_from_center(center["msk_file"],
File "/home/ign.fr/ndavid/dev/odeon-landcover/odeon/commons/rasterio.py", line 184, in create_patch_from_center
clip = dst.read(window=window, out_shape=(meta["count"], meta["height"], meta["width"]), resampling=resampling)
File "rasterio/_io.pyx", line 367, in rasterio._io.DatasetReaderBase.read
File "rasterio/_io.pyx", line 704, in rasterio._io.DatasetReaderBase._read
rasterio.errors.RasterioIOError: Read or write failed. /media/DATA/DATASETS_AI/MULTI_DEP_BATI_V0/DATASET_ALL_384_20cm/full_mask.tiff: Access window out of range in RasterIO(). Requested (0,480000) of size 1x1 on raster of 340000x480000.
stack trace: Read or write failed. /media/DATA/DATASETS_AI/MULTI_DEP_BATI_V0/DATASET_ALL_384_20cm/full_mask.tiff: Access window out of range in RasterIO(). Requested (0,480000) of size 1x1 on raster of 340000x480000.
it should be due to the self.meta_img not being updated in generate methode from generate.py module