-
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
Update CRS reference #137
Comments
@jyutzler this change risks breaking existing geopackage implementations. Everyone expects old style CRS WKT at the moment. If you switch to the new spec without a version bump, extension, etc. I would expect this to cause problems. |
This would be part of 1.0.2 which is currently on hold until at least mid-September. GeoPackages are versioned and we believe the impact of this change is low. However, we have not made a final decision. |
Pepijn is correct that there are multiple OGC specifications that need to update references to the CRS Well Known Text specification (12-063r5 adopted August 13, 2014). OGC management will need to help move that effort, and with all of these documents on different revision cycles (some stretching out years), timing becomes a real problem when you need to fix things and get it right. We need to get this moving, and Geopackage is in a good position to start driving it forward as it is directly impacted. We should update Simple Features ASAP. Regarding compatibility, section 6.7 of 12-063r5 addresses the expectations for compatibility - "Backward compatibility means that an implementation of the text strings in this International Standard would be able to read CRS WKT strings conforming to the old (ISO 19125-1:2004) syntax" - so newer parser implementations should be handling older strings. This is not just an issue for existing geopackages - all software supporting interpretation of CRS WKT strings needs to make this move. What's going to be an issue in the field is older software that does not know how to process newer CRS WKT strings - each software provider will need to address that issue in their own way. At some point, we have to move on. Jeff - Any valid CRS WKT should be sufficient - the following statement is probably a result of referencing 01-009 which is superseded, and should be removed: "Values SHALL include optional EBNF entities. Values for SRS other than WGS-84 SHOULD include optional EBNF entities. Values MAY omit optional and EBNF entities." And the braces "<>" should be removed from around in this sentence: So the final paragraph would read: |
@KRyden I updated the PR based on your feedback. Pardon my sloppiness, this is the correct commit: |
This reverts commit 934378c.
@jyutzler they're not quite versioned yet. The only file wide version number is the application id, but that's optional. You'll need to make sure to bump that value in 1.02 then and perhaps make it mandatory. Still feels like a pretty big change for a point release to me... |
Yes, the app ID will get bumped to 1.0.2 this time around. |
Woo, that's a significant change ! I agree with @pepijnve . Something like that would be worth at least worth a 1.1 number IMHO. Especially if you change the application_id. That's no longer a corrigendum. It's like WFS 1.1 finally stating that EPSG axis order should be enforced. FYI, regarding GDAL full uptake of this, I would expect several weeks of work needed to implement WKT 2.0 support, and especially figuring out how to make that live with WKT 1.0 that is expected by the rest of the codebase. That said, without changing it, on reading of GPKG databases, if there's an EPSG code attached to the SRS, then the 'definition' of the gpkg_spatial_ref_sys is ignored, and the SRS is resolved from GDAL EPSG database, so even with WKT 2.0 defs, there could be some compatibility. |
I broadly agree with @pepijnve and @rouault. This feels like a big change, due to the risk for compatibility issues. application id is still 1.0 right now? Bumping it to 1.0.2 may help, but few implementers have a habit to assume that a patch increase (ie. I am personally not familiar enough with the changes to WKT to gauge how much work it would be though to make this change. |
The SWG has reached a decision today.
|
@TrGn one of the really big changes is that TOWGS84 is no longer supported. It was removed for a good reason, but its removal does have some practical implications. Software that implements an early bound, hub-and-spoke with WGS84 as hub, coordinate transformation engine will be impacted most since they'll have to obtain the datum transformation parameters from some other source. As @rouault said, if the authority information is available you can always use that to do lookups in an internal database, but of course there's always going to be the case where authority information is not provided (or refers to an authority that is unknown to the client software). If you encounter one of those I guess you either have to try to do reverse lookups in the EPSG (or some other) database or ask the user for input. |
This ticket will remain open until the extension is authored. |
From @KRyden
The original OGC Geopackage specification was adopted prior to the adoption of the updated SRS WKT Specification OGC Well known text representation of coordinate reference systems. As a result, the original OGC Geopackage specification references older documents that should be superseded by the final version of OGC Well known text representation of coordinate reference systems, OGC 12-063r5, approved 13 August, 2014. Changes are required in the Geopackage specification document to adopt OGC 12-063r5, and eliminate ambiguities being encountered in the field from the older specification reference.
The text was updated successfully, but these errors were encountered: