[gdal-dev] Dealing with "default" TOWGS84 values

Even Rouault even.rouault at spatialys.com
Thu Apr 2 05:57:48 PDT 2020


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200402/b02ddaff/attachment.html>


More information about the gdal-dev mailing list