quantifyearth / yirgacheffe

A set of GDAL wrappers around raster and vector datasets to make computation easier
ISC License
6 stars 3 forks source link

minor: calling TiledGroupLayer#read_array with zero height gives an odd assertion error #3

Closed robinmessage closed 1 year ago

robinmessage commented 1 year ago

Because no data is actually loaded (because none has been requested), there is an assertion error at the end of the function (https://github.com/carboncredits/yirgacheffe/blob/272e420b1579d40fad1a6090956f2e569b5353a3/yirgacheffe/layers/group.py#L281)

Should probably just assert width and height > 0

mdales commented 1 year ago

Fixed in 0f60a58