-
Notifications
You must be signed in to change notification settings - Fork 807
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Proj fails with OGC WKT given in CF-convention specifications #4321
Comments
You should use |
And looks like you want to use this CRS |
The above WKT is invalid. The minimum fix for it is:
And clean WKT:2015 output is given by:
This should be reported to the authors of the CF conventions |
Thanks @rouault and @jjimenezshaw for your amazingly quick and super helpful response. |
I have a particular issue with a WKT CRS from the CF-conventions, particularly the example 5.12. I want to read it with
pyproj
, but get apyproj.exceptions.CRSError: (Internal Proj Error: proj_create: Missing BASEGEODCRS / BASEGEOGCRS / GEOGCS node)
Upon a quick inspection of the OGC WKT specifications 18-010r11 I could not find any hint that those values are always required, so I raise this issue here first (instead of mentioning it to the CF-conventions community) in the hope that someone could comment on whether this WKT is actually invalid or not.
I previously raised this issue in pyproj but since this issue is caused by
proj
and notpyproj
itself, this seems the more appropriate place.Example of problem
This results in:
Full traceback
Environment Information
proj
): Rel. 9.5.0, September 15th, 2024Installation method
The text was updated successfully, but these errors were encountered: