-
Notifications
You must be signed in to change notification settings - Fork 57
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
How to deal with dynamic CRS or CRS with ensemble datums (such as EPSG:4326)? #35
Comments
It's my understanding that there is a place for the coordinate epoch in WKT2:2019 (i.e., by defining a CRS with one of the realizations as the GDAL page described). If that is the case, I would suggest leaving the coordinate epoch representation to the WKT2 representation in the crs field (but that should be checked!). In theory you can also put that in the coordinates themselves (e.g., via an "m" coordinate) and define a spatiotemporal CRS. I'd argue that anybody that cares about sub-meter accuracy will also be using a projected CRS, though. |
My understanding is that WKT:2019 indeed supports this, but not in the CRS representation itself. The example on the GDAL page for FlatGeoBuf shows this (https://gdal.org/user/coordinate_epoch.html#flatgeobuf), and uses the "COORDINATEMETADATA" construct, which consists of the CRS and the EPOCH. See http://docs.opengeospatial.org/is/18-010r7/18-010r7.html#128 for the details. We can of course relax the |
yes, PROJ doesn't support the COORDINATEMETADATA WKT construct currently. In the OGR FlatGeoBuf driver, we manually parse the COORDINATEMETADATA[] to extract the CRS (and provide it to proj) and the coordinate epoch. |
I stand corrected...sorry for the indirection! It seems that there's a better chance it will propagate through an operation if kept in the metadata under |
In summary, a concrete proposal here would be to add an optional "epoch" field (next to "crs"), that can be used if you have a dynamic CRS to specify the epoch of the data as a decimal year (to follow the ISO spec for how to format that value, see "epoch" entry in the list of definitions at http://docs.opengeospatial.org/is/18-010r7/18-010r7.html#4) |
@rouault I think you added the "epoch" field in the GDAL implemention, so I assume you are fine with such a solution? |
Opened #49 to add an optional "epoch" field to the spec. |
yes, looks good to me |
(moved the original 4326 discussion in this issue description to its own issue in #52. I think all comments have just been about the epoch topic so far) |
With the addition of "epoch", I think this can indeed be closed |
From #25 (comment). The spec has a required
crs
field that stores a WKT2:2019 string representation of the Coordinate Reference System.We currently recommend using EPSG:4326 for the widest interoperability of the written files. However, this is a dynamic CRS, and in addition uses an ensemble datum. See https://gdal.org/user/coordinate_epoch.html for some context. In summary, when using coordinates with a dynamic CRS, you also need to know the point in time of the observation to know the exact location.
Some discussion topics related to this:
"epoch"
field in the column metadata (next to"crs"
) that holds the epoch value as a decimal year (eg 2021.3).The text was updated successfully, but these errors were encountered: