Greg, > Matching and skipping also feels fragile, rather than not using and > having people that want to use them have to be explicit.
Thanks for your thoughts. I've taken an intermediate approach between my initial thoughts and your suggestion, which I hope should be a reasonable default behaviour Implemented per https://github.com/OSGeo/gdal/pull/2370: """ Strip TOWGS84 when datum is known, in GTiff, Spatialite and GPKG drivers Implements a simplified version of the idea mentioned in https://lists.osgeo.org/pipermail/gdal-dev/2020-March/051881.html with a variant of the more radical approach suggested in https://lists.osgeo.org/pipermail/gdal-dev/2020-March/051885.html That is the new method OGRSpatialReference::StripTOWGS84IfKnownDatumAndAllowed() will remove TOWGS84 information from SRS whose datum name is known, unless the OSR_STRIP_TOWGS84 configuration option is set to NO. When TOWGS84 information is striped, a debug message is emitted. """ Even -- Spatialys - Geospatial professional services http://www.spatialys.com
_______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
