EURODEO / rodeo-edr-profile

This is a repository to make EDR profiles used in EURODEO visible for all use
https://rodeo-project.eu/rodeo-edr-profile
Creative Commons Attribution 4.0 International
2 stars 0 forks source link

Constrain how crs, trs and vrs are described #30

Open havardf opened 1 week ago

havardf commented 1 week ago

OGC-API Common and OGC-API EDR both are tolerant of various ways of specifying coordinate systems, leading to variations in the implementations, like:

Since we do need to support more than one projection, the goal here is to constrain the syntax, so it can easily be autohandled by the client.

Perhaps though we could lock down trs to just one allowed value?

We need to tackle crs defined:

havardf commented 1 week ago

Some questions to resolve here:

havardf commented 1 week ago

For vrs, is it possible to have an enumerated list of human readable strings? With clear documentation for how to handle each of the alternatives? Like pressure levels, msl, ...? Maybe not, according to https://docs.ogc.org/DRAFTS/19-086r7.html#col-temporal.

havardf commented 1 week ago

Suggest the following:

Mandatory to support WGS84, or rather EPSG:4326. Use epsg:4326 to represent this in crs, extent:spatial:crs and data_queries:*:crs_details:crs. Use relevant WKT string for WGS84 incrs_details:wkt`.

You can also support other projections. Use EPSG codes if available, and apply same rule as above. If no epsg code is available, then represent it in any user friendly you see fit.

This rules applies to both collection documents and CoverageJSON data response.

havardf commented 1 week ago

Suggest the following for trs:

"trs": "Gregorian"

for both collection and CoverageJSON

havardf commented 1 week ago

@mrauhala @Teddy-1000 The above suggestions for crs will not work sadly. The openapi spec for EDR says WGS84 unless otherwise specified, and WGS84 has reverse axis order to EPSG:4326.

We could say that WGS84 is mandatory, and you must use OGC:CRS84 as the string to represent this. For other projections use EPSG notation if available? I use CRS84 here, since OGC uses that name (http://www.opengis.net/def/crs/OGC/1.3/CRS84).

I see that the GeoJSON spec also states that its coordinate reference system is identical to OGC:CRS84. So in that sense, the naming is consistent and clear.

Seems like it is pretty common to talk about OGC:CRS84 and WGS84 almost interchangeably for geographic coordinate systems and also refer to EPSG for projected coordinate reference systems.