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

Retrieve All CRS Records #193

Open
bethanywallace opened this issue Jan 4, 2023 · 1 comment
Open

Retrieve All CRS Records #193

bethanywallace opened this issue Jan 4, 2023 · 1 comment

Comments

@bethanywallace
Copy link

Is there a way to get all the CRS data as JSON without having to loop through the pages?
E.g https://epsg.io/?q=&format=json only retrieved the first ten results that would show on the webpage, to get the second page I have to add &page=2 to the query. Is there any way to be able to get all of the results at once?

@derhuerst
Copy link

A while ago, I have built a workaround: An npm package epsg-index that statically contains all records as JSON files.

If you don't use npm/JavaScript tooling, you can still download it as a .tar.gz from this URL:

npm info epsg-index dist.tarball
# https://registry.npmjs.org/epsg-index/-/epsg-index-1.3.0.tgz

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

2 participants