You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using mapnik.ProjTransform instead of mapnik.Projection to convert from Lat/Long WGS84 to Google Mercator and back works with both old and new Proj library versions, but only when keeping the mapnik.Projection instances that the mapnik.ProjTransform was created from in scope.
When not doing so things work fine on Debian 12 with the new Proj version, but not on Debian 11 that still uses the older Proj version / API.
But when creating the ProjTransform instance in a function, with the actual Projection instances being local variables that get out of scope at the end of the function, this only works with the new Proj library version on Debian 12, but not with the older one on Debian 11.
So the below code works on 12, but segfaults on the forward() method call on 11:
This is somewhat related to issue #246:
Using mapnik.ProjTransform instead of mapnik.Projection to convert from Lat/Long WGS84 to Google Mercator and back works with both old and new Proj library versions, but only when keeping the mapnik.Projection instances that the mapnik.ProjTransform was created from in scope.
When not doing so things work fine on Debian 12 with the new Proj version, but not on Debian 11 that still uses the older Proj version / API.
The following works on both Debian 11 and 12:
But when creating the ProjTransform instance in a function, with the actual Projection instances being local variables that get out of scope at the end of the function, this only works with the new Proj library version on Debian 12, but not with the older one on Debian 11.
So the below code works on 12, but segfaults on the forward() method call on 11:
The text was updated successfully, but these errors were encountered: