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

Official Mapnik compatible version

Open NasH5169 opened this issue 2 years ago • 5 comments

Hi,

I'm trying to find a simple and important information:

What is the last Mapnik version compatible with the last Python-Mapnik bindings version?

Thank you.

NasH5169 avatar May 15 '23 10:05 NasH5169

Based on the comment in the README about 3.0.x not compatible and use separate branch. It would seem the answer to the question is the Mapnik version required is 3.1.0.

I recently tried building master against a newer mapnik but there is an incompatible in src/mapnik_gamma_method.cpp. The reason being mapnik switched mapnik::gamma_method_enum from being an unscoped enumeration to scoped enumeration and that file isn't scoping it. That problem fixed on the enumerations and proj6 branch via 82b91734d9192285ed82ec6152edcec81ffd14d4

donno avatar Jul 27 '23 13:07 donno

Has anyone got python-mapnik master to build with mapnik 3.1.0? I'm personally getting:

src/mapnik_datasource.cpp:37:10: fatal error: mapnik/geometry/box2d.hpp: No such file or directory 37 | #include <mapnik/geometry/box2d.hpp> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~

Which I find super odd because src/mapnik_datasource.cpp was last changed 7 years ago and mapnik/geometry/box2d.hpp doesn't exist in the mapnik v3.1.x branch.

HotPepperDaddy avatar Aug 09 '23 14:08 HotPepperDaddy

I am having the same problem as HotPepperDaddy. Any help is appreciated.

cgmike avatar Aug 18 '23 16:08 cgmike

I got past that by adjusting the path to box2d.hpp in src/mapnik_datasource.cpp. I had to do that in a few files, and also for a few different includes.

However, I still don't have a working combination of mapnik / proj / python-mapnik.

HotPepperDaddy avatar Aug 18 '23 16:08 HotPepperDaddy