-
-
Notifications
You must be signed in to change notification settings - Fork 284
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
libgproj: Use SRID for PJ object creation when possible #2394
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea is correct, but this PR does not fix cases where no SRID is available and a bound CRS is provided. Should be easy to add.
I think we can remove this check. https://proj.org/development/reference/functions.html#c.proj_create_argv
|
Apparently |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix! This will not be the only one regarding the evolving PROJ lib I guess...
* Use SRID for PJ creation * Use proj_get_source_crs() * Tabs to spaces
* Use SRID for PJ creation * Use proj_get_source_crs() * Tabs to spaces
This PR tries to address #2257 by using SRID, not GRASS key-value pairs, for creating an PJ object. Here is a related Q&A.