Consider more information about the CRS? #50
Replies: 2 comments 3 replies
-
These short hands are often in conflict with each other as soon as you start additionally offering full definitions in formats such as WKT or projjson. Pointing to complex CRS standards inside data format standards means implementers have a much larger software responsibility surface. A key challenge with GeoJSON was whether or not to place the burden of CRS dereferencing and consumption on the implementer. GeoJSON eventually gave up and did 4326, but one could argue that the dominant audience for GeoJSON was a web audience rather than a geo one that would have been more comfortable with doing that CRS work. projjson didn't exist at the time GeoJSON was developed, and if it had, we might have been tempted to allow it to come along for the ride. WKT sucks vs projjson because of the need to write a custom parser if you are responsible for dereferencing its elements. No easy and simple solutions here, but IMO it is important to think about what you expect the implementer of the format to be responsible for. If it is just the coordinates, their geometry relationships, and their attributes, that is a different burden than all of that PLUS any possible coordinate system in the universe. |
Beta Was this translation helpful? Give feedback.
-
In addition to what @hobu already said, most of those additional fields (at least org, code and name) can be present in the WKT string as well, and thus strictly speaking wouldn't provide additional value. |
Beta Was this translation helpful? Give feedback.
-
Looking at Flatgeobuf they have a lot more information on the CRS: https://github.com/flatgeobuf/flatgeobuf/blob/6884cb05438686947f7bf3776c7ae5c9febfbf5a/src/fbs/header.fbs#L58
Org, code, name, description. It does seem like that stuff could be useful to display to users to know what CRS they are using. I'd still want to consider the WKT as the singular source for the definition - libraries just need to check one place and go, and if they are in conflict then you use the WKT. But perhaps there's value in providing informative fields, to be able to look at a file and recognize 4326 or another common projection, instead of having to match the WKT.
Beta Was this translation helpful? Give feedback.
All reactions