mapnik / python-mapnik

Python bindings for mapnik
GNU Lesser General Public License v2.1
160 stars 91 forks source link

Official Mapnik compatible version #270

Open NasH5169 opened 1 year ago

NasH5169 commented 1 year ago

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.

donno commented 1 year ago

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

HotPepperDaddy commented 1 year ago

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.

cgmike commented 1 year ago

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

HotPepperDaddy commented 1 year ago

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.

david-perez commented 1 month ago

What's the currently compatible mapnik version / commit SHA the Python bindings are compatible with now?