-
Notifications
You must be signed in to change notification settings - Fork 3
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
Update epsg.io info in README.md #38
Open
petr-hajek
wants to merge
1
commit into
visgl:master
Choose a base branch
from
petr-hajek:patch-1
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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": { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we call out that the response format has changed with the new API? |
||
"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: | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For someone without a lot of context about this, it feels random for OpenJS / Open Visualization to promote one specific commercial, key-requiring API.
Can we add a header
## APIs
and a sentence that mentions that the espg.io team has migrated their free API to MapTiler, and perhaps something about the special relation that MapTiler has with this service that makes it natural to call you out?