Jiri Drbalek
Jiri Drbalek
@winsento, you are right, that will be better.
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
I can confirm https://github.com/mapnik/mapnik/pull/3668 ruined overviews.
The problem has been fixed in Mapnik.
What version of Mapnik do you have? `maximum-scale-denominator` was formerly called `maxzoom` but was renamed in https://github.com/mapnik/mapnik/commit/219ad1f2ccd2eaa5799dad73236378b127f490d9, see https://github.com/mapnik/mapnik/issues/1447.
> The parsing is done by the mapnik library in C++ as far as I can understand. Is this correct or it's done in python ? Yes, it is done...
I don't know what's wrong. This piece works for me.
> Is it possible to pass variables to the mapnik.xml file using the mapnik library (not node-mapnik)? Yes it is. Variables are passed to the constructor of a renderer object...
Hi @am2222 , there is [`render_with_vars()`](https://github.com/mapnik/python-mapnik/blob/eb849031e0fdcb2067f7596cb044e997a9e4dba7/src/mapnik_python.cpp#L829-L837), unfortunately with no tests.
It is possible to set polygon color from feature attribute like this: ```xml ```