python-mapnik icon indicating copy to clipboard operation
python-mapnik copied to clipboard

GDAL plugin not use overview for GeoTiff

Open winsento opened this issue 7 years ago • 3 comments

GDAL plugin not use overview for GeoTiff

Tested on:

  • Ubuntu 14.04 builded python-mapnik from source v3.0.16
  • Ubuntu 18.04 installed from repository v3.0.17

On Ubuntu 14.04, python-mapnik installed from repository v3.0.9 and MacOS v3.0.13 from brew - all OK

winsento avatar Dec 06 '17 10:12 winsento

I'm a bit suspicious https://github.com/mapnik/mapnik/pull/3668 is the culprit.

This condition in GDAL is not fulfilled: https://github.com/OSGeo/gdal/blob/b2d44355766dce069a027777f6bbd5c31bd98c56/gdal/frmts/gtiff/geotiff.cpp#L4114

Because of image.width == width here: https://github.com/mapnik/mapnik/blob/43d7278352e95b2e7a2371f2b4d56dfd95ab566a/plugins/input/gdal/gdal_featureset.cpp#L218-L222

talaj avatar Dec 14 '17 17:12 talaj

I can confirm https://github.com/mapnik/mapnik/pull/3668 ruined overviews.

talaj avatar Jan 04 '18 14:01 talaj

The problem has been fixed in Mapnik.

talaj avatar Apr 03 '18 10:04 talaj