You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the GeoPackage specs, data should have an srs, and data in an "Undefined Cartesian SRS" should be saved with srs_id = -1: https://www.geopackage.org/spec/#r11. However, there is nothing mentioned about the units of this generic "Undefined Cartesian SRS".
In GDAL the "Undefined Cartesian SRS" is interpreted as using "meter" units, so when reading data, srs_id -1 is returned as an SRS having "meter" units. The other way around as well: when writing a Geopackage, if a wkt with an undefined cartesian wkt but (only) with "meter" units is used, this maps to srs_id -1.
In r-spatial (r-spatial/sf#2049) the choice was made that when saving data without srs specified, a WKT is used that specifies the units to be "undefined". In GDAL, this leads to a "custom SRS" being saved in the GPKG, so an srs_id >= 100.000 instead of -1, which doesn't feel like being according to the GPKG specs?
Because we are implementing the same use case for GeoPandas GeoDataFrames with unknown srs, we are wondering, what is the best way to go about this?
Undefined CRS has also been considered within the JSON-FG work opengeospatial/ogc-feat-geo-json#36 and GeoPackage standard was used as reference.
As a result two Engineering CRSs were created, one for 2D and another for 3D
According to the GeoPackage specs, data should have an srs, and data in an "Undefined Cartesian SRS" should be saved with srs_id = -1: https://www.geopackage.org/spec/#r11. However, there is nothing mentioned about the units of this generic "Undefined Cartesian SRS".
In GDAL the "Undefined Cartesian SRS" is interpreted as using "meter" units, so when reading data, srs_id -1 is returned as an SRS having "meter" units. The other way around as well: when writing a Geopackage, if a wkt with an undefined cartesian wkt but (only) with "meter" units is used, this maps to srs_id -1.
In r-spatial (r-spatial/sf#2049) the choice was made that when saving data without srs specified, a WKT is used that specifies the units to be "undefined". In GDAL, this leads to a "custom SRS" being saved in the GPKG, so an srs_id >= 100.000 instead of -1, which doesn't feel like being according to the GPKG specs?
Because we are implementing the same use case for GeoPandas GeoDataFrames with unknown srs, we are wondering, what is the best way to go about this?
xref: OSGeo/gdal#9580
xref: geopandas/pyogrio#368
The text was updated successfully, but these errors were encountered: