Re: [gdal-dev] How to read tiles size of a tiff

2023-05-17 Thread andy
Thank you very much Laurentiu, this was what i needed ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] How to read tiles size of a tiff

2023-05-17 Thread Laurențiu Nicola via gdal-dev
Hi Andy, gdalinfo is the tool that displays information about rasters. Yours is 337x217 pixels, with a 337x24 block size, which is completely unrelated to the OL tiling grid, and there's no -256 here. The only unusual thing about your image is that instead of the customary positive X, negative

[gdal-dev] How to read tiles size of a tiff

2023-05-16 Thread andy
Hi, I've been having trouble using a tiff on openlayers, and I've found that it depends on it having a negative tile height (-256). This is the tiff: https://andy-aws.s3.eu-north-1.amazonaws.com/sample_dnw_byte.tiff I'm able to read tiles size in OL, using this source.getView().then(() => {