Skip to content

Commit

Permalink
Update epsg.io info in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
petr-hajek authored Dec 5, 2024
1 parent f779fc4 commit 341bf81
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions docs/modules/proj4/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
```

Expand Down Expand Up @@ -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:

Expand Down

0 comments on commit 341bf81

Please sign in to comment.