-
Notifications
You must be signed in to change notification settings - Fork 91
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
Projection.inverse only returns infinities (proj 7.0, mapnik master) #246
Comments
I've observed
|
I'm using mapnik master, python-mapnik proj6 branch, proj 9.1 all on Centos 9 stream. Projection.forward also has this problem with infinites. I don't know what's wrong with mapnik internally but as a workaround I did this:
I hope this helps someone! |
I applied the ProjTransform workround to get my stuff working on both Debian 11 and 12, but while that worked fine for test cases on both it segfaults in actual code on Debian 11 with the old libproj. The ProjTransform object can be used just fine in the method that creates it, but later in a different method, with same object reference and same input coordinates, the forward() call on Debian 11 just crashes. This happens with the MapOSMatic renderer right now, so it's a non-trivial use case that I can't easily create a self contained minimal test case from, although I'm trying. I'm also not really getting a good gdb backtrace for this as for some strange reason there doesn't seem to be a Debian dbgsym package for the Mapnik library or the Python bindings ... |
Turns out with the older proj version the mapnik.Projection instances the mapnik.ProjectionTransfromation need to be kept in scope to prevent crashes Will create a separate report for that. |
On mapnik 3.0.24 and proj 4.x I can do this:
However, on mapnik master with proj 7.0 and our fork of python-mapnik with the proj6 branch merged in, I only get infinities:
We thought this might be an axis order issue (EPSG:2193 is y,x) but reversing the order doesn't help:
Thanks
The text was updated successfully, but these errors were encountered: