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

adds ability to export non-EPSG CRSs URIs #93

Merged

Conversation

AndrewAnnex
Copy link
Contributor

grabs the authority, version and code from the CRS directly to encode the URIs. Related to #92 but can be merged separately. I'm not aware of any issues this would cause but I am open to hearing about them

@AndrewAnnex
Copy link
Contributor Author

okay so I know that the None object is most likely due to the too-high confidence level default to the to_authority call, although I can't seem to find much information on why proj doesn't always have high confidence, is there information missing from the CRS of that polar projection?

@AndrewAnnex
Copy link
Contributor Author

AndrewAnnex commented Dec 12, 2022

okay so although tests (mostly) pass, I am going to add back a check to ensure we don't try to unpack a None to allow for cases when the right answer really is EPSG/0/None

@AndrewAnnex AndrewAnnex changed the title adds ability to export non-EPSG CRSs adds ability to export non-EPSG CRSs URIs Dec 12, 2022
@AndrewAnnex
Copy link
Contributor Author

@vincentsarago I've added a test (one parameterized test per authority, not checking every code) and fixed remaining black formatting issues. I could see adding a test to try to ensure that EPSG/0/None is at least returned sometimes, your call.

Copy link
Contributor

@geospatial-jeff geospatial-jeff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@vincentsarago vincentsarago merged commit 710784f into developmentseed:main Dec 13, 2022
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

Successfully merging this pull request may close these issues.

3 participants