After New Fix d6c37f56e78bbb5717a837f3f5aa35a8acbdde2c
An error has occurred while executing Python code:
An error has occurred while executing Python code:
ValueError: negative dimensions are not allowed
Traceback (most recent call last):
File "C:\Users/Youss/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\buildseg\buildSeg.py", line 237, in run
img = layer2array(layers, i, j, grid_size, overlap)
File "C:\Users/Youss/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\buildseg\utils\convert.py", line 37, in layer2array
array_list.append(raster_to_uint8(get_grid(band, row, col, \
File "C:\Users/Youss/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\buildseg\utils\convert.py", line 59, in get_grid
result = gd.ReadAsArray(xoff=int(xoff), yoff=int(yoff), \
File "C:\PROGRA~1\QGIS31~1.13\apps\Python39\lib\site-packages\GDAL-3.4.0-py3.9-win-amd64.egg\osgeo\gdal.py", line 3653, in ReadAsArray
return gdal_array.BandReadAsArray(self, xoff, yoff,
File "C:\PROGRA~1\QGIS31~1.13\apps\Python39\lib\site-packages\GDAL-3.4.0-py3.9-win-amd64.egg\osgeo\gdal_array.py", line 422, in BandReadAsArray
buf_obj = numpy.empty([buf_ysize, buf_xsize], dtype=typecode)
ValueError: negative dimensions are not allowed
Python version: 3.9.5 (tags/v3.9.5:0a7dcbd, May 3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)]
QGIS version: 3.16.13-Hannover Hannover, a8618a94
Python Path:
C:\Users\Youss\AppData\Roaming\Python\Python39\site-packages\paddle\fluid\..\libs
C:/PROGRA~1/QGIS31~1.13/apps/qgis-ltr/./python
C:/Users/Youss/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/Youss/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
C:/PROGRA~1/QGIS31~1.13/apps/qgis-ltr/./python/plugins
C:\Program Files\QGIS 3.16.13\bin\python39.zip
C:\PROGRA~1\QGIS31~1.13\apps\Python39\DLLs
C:\PROGRA~1\QGIS31~1.13\apps\Python39\lib
C:\Program Files\QGIS 3.16.13\bin
C:\Users\Youss\AppData\Roaming\Python\Python39\site-packages
C:\PROGRA~1\QGIS31~1.13\apps\Python39
C:\PROGRA~1\QGIS31~1.13\apps\Python39\lib\site-packages
C:\PROGRA~1\QGIS31~1.13\apps\Python39\lib\site-packages\GDAL-3.4.0-py3.9-win-amd64.egg
C:\PROGRA~1\QGIS31~1.13\apps\Python39\lib\site-packages\win32
C:\PROGRA~1\QGIS31~1.13\apps\Python39\lib\site-packages\win32\lib
C:\PROGRA~1\QGIS31~1.13\apps\Python39\lib\site-packages\Pythonwin
C:/Users/Youss/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:\Users\Youss\AppData\Roaming\Python\Python39\site-packages\paddle\fluid\proto
C:/Users/Youss/Documents/qgis-projects/ml-results
bug