-
Notifications
You must be signed in to change notification settings - Fork 68
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
OGC WKT2 Syntax #165
Comments
Hi @marqh ! Thanks for alerting us on this WKT formatting issue. The EPSG.io uses the Proj4 library ExportToPrettyWkt() and ExportToWkt() to generate the WKT code. For example at https://github.com/maptiler/epsg.io/blob/master/app.py#L1295 I see there has been an update related to OGC WKT2 syntax done - now available in the recent releases of Proj. So once the update to the latest Proj library version id done - this issue is going to be fixed. A great amount of work has been done on the Proj library by @hobu @rouault and others involved in https://gdalbarn.com/ - also on the simplified data management and releases of the EPSG database in the compact SQLite form. I really wish the EPSG.io website to be updated to the latest Proj - but at this moment we lack the capacity to work on that in the coming months. Any pull request from the open-source community - or a client willing to support us or somebody else to do the related work may speed up this change. If you have the python+epsg expertise feel free to fork this project and make a pull request. We would be very happy to review and merge such a contribution to this open-source code. |
Hello @klokan many thanks for the response, that's really helpful. Given the understandable constraints
Have you considered adding a note/disclaimer/warning, perhaps into a template used on your site? This could point unwary travellers to the risks of using this legacy syntax until these updates are in place. thanks again |
Check https://epsg.io/4326.wkt2 that prints WKT2(2019). If it looks correct then this ticket can be closed. |
The following formats can be used in this version of epsg.io:
A new JSON format is also added. It's pretty useful for extracting properties from CRS: |
Hello epsg.io
I would like to enquire about the syntax of the WKT presentation of CRS definitions within https://epsg.io
The OGC produce and publish the encoding standard for WKT-CRS
https://www.ogc.org/standards/wkt-crs
However, the published versions of WKT-CRS on epsg.io use a legacy syntax.
From the OGC standard:
"Geographic information — Well known text representation of coordinate reference systems" was published by the OGC in 2012, and has been updated, including in 2018.
For example, epsg.io publishes
https://epsg.io/4326.prettywkt
This is not the same as the official EPSG Registry definition, which conforms to the OGC WKT-CRS standard:
http://www.epsg-registry.org/export.htm?wkt=urn:ogc:def:crs:EPSG::4326
For example:
GEOGCSGEODCRSUNITANGLEUNIT*
_CS[...]thank you
marqh
The text was updated successfully, but these errors were encountered: