From 341bf8124f9406176236efbbdb045c302ae8bf52 Mon Sep 17 00:00:00 2001 From: petr-hajek <38785076+petr-hajek@users.noreply.github.com> Date: Thu, 5 Dec 2024 13:04:59 +0100 Subject: [PATCH] Update epsg.io info in README.md --- docs/modules/proj4/README.md | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/docs/modules/proj4/README.md b/docs/modules/proj4/README.md index ea483ccc..be952398 100644 --- a/docs/modules/proj4/README.md +++ b/docs/modules/proj4/README.md @@ -36,27 +36,32 @@ There are an infinite number of possible coordinate systems; therefore strict sy There are thousands of named "EPSG" projections. This module only includes aliases for those in the section below by default. To use a different EPSG projection, you can use https://epsg.io. For example, https://epsg.io/4326 defines standard longitude-latitude coordinates and lists multiple projection strings. Choose one of the `OGC WKT`, `ESRI WKT`, or `PROJ.4` strings listed. -The epsg.io website also has a public API, e.g., for WGS 84: `https://epsg.io/?q=4326&format=json` +You can also use MapTiler Coordinates API: https://api.maptiler.com/coordinates/search/4326.json?key=YOUR_MAPTILER_KEY&exports=true ```json { - "status": "ok", - "number_result": 1, "results": [ { - "code": "4326", + "id": { + "authority": "EPSG", + "code": 4326 + }, "kind": "CRS-GEOGCRS", - "bbox": [90.0, -180.0, -90.0, 180.0], - "wkt": "GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS 84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9122\"]],AUTHORITY[\"EPSG\",\"4326\"]]", - "unit": "degree (supplier to define representation)", - "proj4": "+proj=longlat +datum=WGS84 +no_defs", "name": "WGS 84", - "area": "World.", - "default_trans": 0, - "trans": [], - "accuracy": "" + "exports": { + "proj4": "+proj=longlat +datum=WGS84 +no_defs +type=crs", + "wkt": "GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS 84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9122\"]],AUTHORITY[\"EPSG\",\"4326\"]]" + }, + "unit": "degree (supplier to define representation)", + "accuracy": null, + "area": "World", + "bbox": [-180, -90, 180, 90], + "deprecated": false, + "default_transformation": null, + "transformations": [3858, 3859, 8037, 9618, 9704, 9706, 9708, 10084, 15781] } - ] + ], + "total": 1 } ``` @@ -87,6 +92,7 @@ Note that Proj4Projection allows aliases to be defined and comes with the follow - [OGC WKT-CRS Specification](http://docs.opengeospatial.org/is/18-010r7/18-010r7.html) standards documentation. - [spatialreference.org](https://spatialreference.org/) a catalog of coordinate system references. - [espg.io](https://epsg.io/) Lets the user look up the definition of a coordinate system. +- [MapTiler Coordinates API](https://docs.maptiler.com/cloud/api/coordinates/) to search coordinate system E.g. [https://epsg.io/4326](https://epsg.io/4326) provides the definition of WGS84 in WKT-CRS format: