-
Notifications
You must be signed in to change notification settings - Fork 71
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
Compound CRS for Gridded Data Extension #676
Comments
Assuming that the policy is the same as spatial SQL databases such as PostGIS, the For compound CRS not defined by EPSG, file producers should be free to use a |
The GDAL command used in the comment of #675 does just that and inserts an unique value outside the EPSG code range into gpkg_spatial_ref_sys
|
I do not know if the |
Both the EDIT: The organization |
There is nothing special to do. What the software should do is:
No need to change the Geopackage specification, except maybe write the above as a recommendation. However, I think that |
FWIW, our libraries and software currently attempt to parse the WKT first ( Suggesting |
Some softwares allow users to plugin custom authorities. For example, Apache SIS has this capability and GeoTools too if they didn't removed it. So the use of WKT or authority first is at implementation's choice, but if a software chooses to use |
I fear that some programs rely just on EDIT Actually just this case is clear because it is mandatory that 4326 means EPSG:4326. So imagine any other number instead of 4326. NONE is already used in the standard as the organization for the special srs_ids 0 and -1. |
Yes, taking |
From GeoPackage SWG meeting on 13 Feb, the following is recommended for DGIWG Compound CRS for geographic coordinates of elevation coverage. Set spatial_ref_sys to the following values: Field Value A different srs_id number for a compound CRS for a UTM zone may be used. |
When it comes to DGIWG profile, I think this part in the document https://portal.dgiwg.org/files/73489 is probably not what was meant:
The definition for srs_name : http://www.opengis.net/def/crs/EPSG/0/4326 in the same DGIWG standard is as follows
Thus by reading the DGIWG standard literaly that would mean longitude-latitude.
EDIT
That does not match with the newer Geographic information — Well-known text representation of coordinate reference systems https://docs.ogc.org/is/18-010r7/18-010r7.html |
The feedback and meeting on 2/13/2024 was very helpful. DGIWG web services technical panel (P5) is recommending adding 2 unique CRS codes for the DGIWG organization for 3D compound CRS for gridded data. For WGS84 geographic SRS, use the following values.
A different srs_id number for a compound CRS for a UTM zone may be used, such as the following.
This issue may be closed. |
@jratike80 jratike80 |
for clarity, CRS WKT standards in the last 10+ years require explicit AXIS definition in CRS definition, so the concept of default axis order for CRS WKT no longer makes sense. That said, one should keep in mind that the GeoPackage specification explictly overrides axis order for its geometry blob encoding : |
Thanks for pointing that out. DGIWG-126 has no requirements or restrictions on the use of WKB geometry encoding, so this exception should be permitted per the GeoPackage specification. |
Using a Compound CRS for gridded data.
How does GeoPackage specify a compound CRS in the gpkg_spatial_ref_sys table, which has a singular srs_id and no provision to specify the Vertical CRS?
While some Compound CRS have a unique EPSG code (https://www.opengis.net/def/datum/EPSG/0/9518 for the 4326+3855 compound SRS), most compound CRS do not have a unique code.
Reading the remarks in 2016-17cited below about lack of support for Compound CRS, seems to discourage using a Compound CRS in GeoPackage. Is that view still valid in 2024, or has a method been found in the gpkg tables to indicate a gridded dataset references a Compound CRS, other that the WKT definition itself?
Without using some novel encoding in gpkg_spatial_ref_sys, only stating the horizontal CRS would not inform GeoPackage clients that the CRS is 3D. The WKT2 definition of Compound CRS is defined in OGC 18-010r7 (WKT2). One option is for GeoPackage clients to detect a Compound CRS by examination of the WKT for “COMPOUNDCRS” and extract the VERTCRS . Is using WKT to find VERTCRS a consistent method to determine whether a GeoPackage gridded data set uses a 3D Compound CRS?
Previous Remarks.
In the gridded data extension OGC 17-066r1, Requirement 5 for gpkg-contents includes a remark :
NOTE: Ideally for elevation data the vertical datum for each pyramid of elevation will be specified. However, it is impractical to mandate this for a number of reasons, including the difficulty in testing whether a specific SRS has a valid vertical datum.
In the OGC Elevation Extension interoperability experiment report (OGC 16-094r3), comments considered using a HORIZ CRS and VERT CRS, but this was not implemented in the Gridded data extension. Section 10.3 on CRS in the 16-094r3 report comments on the lack of client support for compound CRS and appears to discourage use of Compound CRS in GeoPackage.
Furthermore, in an issue Specifying 3D CRSs · Issue #19 · opengeospatial/geopackage-tiled-gridded-coverage (github.com), Jeff Yutzler concluded:
The text was updated successfully, but these errors were encountered: