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

OGC GML download option #185

Open
MBennGit opened this issue Aug 3, 2022 · 4 comments
Open

OGC GML download option #185

MBennGit opened this issue Aug 3, 2022 · 4 comments

Comments

@MBennGit
Copy link

MBennGit commented Aug 3, 2022

It is currently not possible to download OGC GML from epsg.io. Has this been changed recently?

Requests to for example to

return

{"error_type": "NOT_FOUND", "message": "Could not find results for given code", "status": "error"}

The functionality to request gml is required for example by python packages such as pyepsg, and thereby cartopy <= 0.19.x (released April 2021), and might still be in use.

@AliFlux
Copy link

AliFlux commented Aug 9, 2022

Hi @MBennGit

GML dumps are no longer provided by EPSG authority. Their newer dumps are based on WKT.

You may migrate to the new JSON format. It's also a little easier to parse

https://epsg.io/4326.json
https://epsg.io/32632.json

@jratike80
Copy link

GML dumps are no longer provided by EPSG authority. Their newer dumps are based on WKT.

I do not know what GML dump means here but their service still returns GML and might be an option
https://epsg.org/crs/gml/id/3857

@AliFlux
Copy link

AliFlux commented Sep 25, 2022

Harvesting GML endpoints isn't ideal since there are about 20k records. Epsg.io uses bulk downloadable datasets instead.

The recommended way is to switch to JSON, there are barely a few applications that still use GML for CRS info.

@jratike80
Copy link

For information, https://epsg.org/download-dataset.html says about 10.076 dataset

note iii
Download of the full dataset in GML is no longer supported. GML documents for individual entities may be accessed through EPSG Dataset / Text Search.

But there is no bulk downloadable json at apsg.org, so does epsg.io (unfortunate choice for the site name IMHO) create json from WKT?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants