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

failure to validate TMSs using morecantile #3

Closed
AndrewAnnex opened this issue Dec 15, 2022 · 3 comments
Closed

failure to validate TMSs using morecantile #3

AndrewAnnex opened this issue Dec 15, 2022 · 3 comments

Comments

@AndrewAnnex
Copy link
Owner

Currently, tests fail expectingly (see discussion in #2) because CRS URIs (e.g. http://www.opengis.net/def/crs/IAU/2015/70300) are not registered yet with the naming authority.
So code like pyproj.CRS("http://www.opengis.net/def/crs/IAU/2015/70300") returns an exception.

The exception interested me because it is:

CRSError: Invalid projection: http://www.opengis.net/def/crs/IAU/2015/70300:
 (Internal Proj Error: proj_create: crs not found)

The Internal Proj Error part interested me, what also interested me was that calling pyproj.CRS("IAU:70300") does not return an exception, it works just fine!:

In [5]: pyproj.CRS('IAU:70300')
Out[5]:
<Geographic 2D CRS: IAU_2015:70300>
Name: Titania (2015) - Sphere / Ocentric
Axis Info [ellipsoidal]:
- Lat[north]: Geodetic latitude (degree)
- Lon[east]: Geodetic longitude (degree)
Area of Use:
- undefined
Datum: Titania (2015) - Sphere
- Ellipsoid: Titania (2015) - Sphere
- Prime Meridian: Reference Meridian

This issue is just to keep track of this issue and work on it happening at opengeospatial/NamingAuthority#212

@AndrewAnnex
Copy link
Owner Author

another thing to keep an eye out on is https://github.com/opengeospatial/2D-Tile-Matrix-Set, this pr opengeospatial/NamingAuthority#206 looks to be something that will need to also happen with our tilematrixsets

@AndrewAnnex
Copy link
Owner Author

AndrewAnnex commented Jan 18, 2023

Recently URIs like https://www.opengis.net/def/crs/IAU/2015/49900 started resolving however Proj still cannot make CRSs using them, switching all the URIs to URNs however does work and now #5 is passing tests

@AndrewAnnex
Copy link
Owner Author

theoretically fixed as of OSGeo/PROJ#3569 which will be available in PROJ 9.2.0. Intermediate fix is to use URNs instead although they aren't technically valid tms 1.0 which requires URIs (maybe 2.0 is more flexible?)

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