I'm getting the following error when trying to read pixels from a GeoTIFF file:
Error: Array length must be greater than or equal to 1296000000
at node:internal/util:364:7
at new Promise (<anonymous>)
at RasterBandPixels.readAsync (node:internal/util:350:12)
at RasterBandPixels.readAsync (/Users/_/Projects/gdal-test/node_modules/gdal-async/lib/gdal.js:938:28)
at run (/Users/_/Projects/gdal-test/filter.js:20:44)
Uncertain either I'm doing something wrong in the code, or if the extension was not compiled correctly (though the other lines in the file are working, up til readAsync).
I'm getting the following error when trying to read pixels from a GeoTIFF file:
Uncertain either I'm doing something wrong in the code, or if the extension was not compiled correctly (though the other lines in the file are working, up til
readAsync
).I'm using the following script:
Other info: node: 16.19.0 GDAL: 3.6.2 (via homebrew) OS: Mac OS 13.1, M1
Any help here would be greatly appreciated. Thanks!