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

IGNF auth_code being returned by proj_identify with EPSG as auth_name #1465

Closed
snowman2 opened this issue May 12, 2019 · 2 comments
Closed

Comments

@snowman2
Copy link
Contributor

>>> cc = pyproj.CRS.from_authority('IGNF', 'ETRS89UTM28')
>>> cc.to_epsg()
'ETRS89UTM28'

CRS.to_epsg code

Also, see: pyproj4/pyproj#294 (comment)

Also, is there a way to get from PROJ a list of supported authority codes? This would be nice to have.

I appreciate your assistance!

@snowman2
Copy link
Contributor Author

s there a way to get from PROJ a list of supported authority codes?

🤦‍♂️ should have looked in proj.h first: proj_get_authorities_from_database.

rouault added a commit that referenced this issue May 13, 2019
identify(): take into account the authority passed in (fixes #1465)
backporting bot pushed a commit that referenced this issue May 13, 2019
When identifying an object that has already a code with authority A
but the authority of interest passed was B, then it was not checking
that A != B, and did not try to search in the objects of B.
@snowman2
Copy link
Contributor Author

Thanks!

rouault added a commit that referenced this issue May 13, 2019
[Backport 6.1] identify(): take into account the authority passed in (fixes #1465)
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

1 participant