Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building for Proj > 8.0 and GDAL > 3.2 #4232

Open
RLC92 opened this issue Jun 20, 2021 · 14 comments
Open

Building for Proj > 8.0 and GDAL > 3.2 #4232

RLC92 opened this issue Jun 20, 2021 · 14 comments

Comments

@RLC92
Copy link

RLC92 commented Jun 20, 2021

There doesn't seem to be any way to build mapnik with a modern version of Proj/GDAL this poses an issue when building on systems that no longer provide older versions of these dependencies, as well as issues for any other software which is dependent on newer versions of these dependencies.

Are there any plans to make a release for newer versions of Proj? I've seen issues/commits related to the issue (and tried to compile from those commits without succes) but the last release was in Jan.

Currently building on RHEL 8 is proving quite a bit more difficult than I expected.

@lucadelu
Copy link

This is really important for mapnik future

@mathisloge
Copy link
Collaborator

With #4202 proj 8 should be supported and I have build mapnik with proj8 ( only with cmake and not with scons)

@tomhughes
Copy link
Contributor

The problem is that's on master and most distro's are on 3.x still because there's still no 4.x release...

I've pushed the branch I use for the Fedora builds to https://github.com/tomhughes/mapnik/tree/fedora which includes my backport of the proj6 fixes.

@hholzgra
Copy link

I just noticed that this not being in v3.1.x will somewhat break things for me on the soon upcoming Ubuntu 22.04 next LTS release as that release is switching form proj v7.x to v8.x ... :o

hholzgra added a commit to hholzgra/maposmatic-vagrant that referenced this issue Mar 12, 2022
unfortunately this will be an LTS release that we'd either need
to skip, or return to building Mapnik for ourselves as 22.04
switched from v7 to v8 of the Proj library which none of the
released mapnik versions can be built against yet, only the
unreleased "master" branch so far ...

see also mapnik/mapnik#4036
and mapnik/mapnik#4232
@rapto
Copy link

rapto commented Aug 24, 2022

I just installed ubuntu 22.04 and my program chokes on proj support. This is the bug I filed: https://bugs.launchpad.net/ubuntu/+source/mapnik/+bug/1987559

Please let me know if there is a guide to installing mapnik with proj support on ubuntu 22.04. Could I just re-compile a newer version of mapnik, if the problem is already solved?

@mathisloge
Copy link
Collaborator

Latest mapnik master has a dependency on proj >7.
So proj8 and proj9 should be fine.

@kachelmann
Copy link

Debian 12 is released and comes with proj 9.1.1!
https://packages.debian.org/bookworm/libproj25
Are there any plans to solve this issue?

@mathisloge
Copy link
Collaborator

Proj9 is already supported on latest master.

@artemp
Copy link
Member

artemp commented Jun 28, 2023

Debian 12 is released and comes with proj 9.1.1! https://packages.debian.org/bookworm/libproj25 Are there any plans to solve this issue?

@kachelmann - could you describe exactly what's the issue?

@kachelmann
Copy link

I got an upgrade to Debian 12 on my render toolchain.
Current mapnik is
>>> mapnik.mapnik_version_string() '3.1.0'
First error message on stdout was
merc: Invalid latitude
I fixed this by getting a new projection string with projinfo EPSG:3857 for the mapnik.Projection()

Now the renderprocess is running but produces only empty tiles.

The renderjob works with mapnik xml stylefiles. The Datasource is a shapefile in EPSG:4326.
A run with openstreetmap-carto (converted to xml with carto) produces also empty tiles.
With <Map background-color="red" ...> i got empty red tiles, so the rendering works but the data seems to be projected wrong.

@rapto
Copy link

rapto commented Jun 29, 2023

@hholzgra
Copy link

I'm running into the same with maposmatic/ocitysmap: works fine on Debian 11, but when trying to upgrade to Debian 12 I'm getting "merc: Invalid latitude".

I'm at 52°N, 8.5E; so even if the two were swapped they would still be in each others valid range.

@hholzgra
Copy link

So where are we with this when it comes to v3.1?

I could build v3.1.x branch on Debian 12 after applying the patch @tomhughes mentioned here two years ago, but I' so far failing with the python bindings due to Boost changes, and as far as I can tell from this pull request the Python side has not really received the necessary adjustments for newer Proj versions yet either?

So I'm currently stuck with Debian 11, which is OK for now but a bit ... suboptimal ...

@HotPepperDaddy
Copy link

HotPepperDaddy commented Aug 22, 2023

Guys, people here are getting the same error and suggest the problem is with mapnik.Projection or projection.Forward.
kosmtik/kosmtik#336 (comment)

Can someone who knows the low level details of those functions comment here?

Thanks. I want to move forward in solving this using mapnik master and python-mapnik master.

Edit: I've worked around the problem (which still exists) in my python code - see my comment at mapnik/python-mapnik#246 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants