[gdal-dev] Discrepancy when tiling on MAC and Linux

Even Rouault even.rouault at spatialys.com
Wed Nov 13 16:24:32 PST 2019


> This is not a PROJ6 issue, but a GDAL one related to the logic starting at
> https://github.com/OSGeo/gdal/blob/master/gdal/ogr/ogrct.cpp#L843
> 
> You could try to add a test that if OGRSpatialReference::GetTOWGS84()
> returns OGRERR_NONE then the resolution to the WKT of the EPSG code is
> skipped

I've implemented this in https://github.com/OSGeo/gdal/pull/2016

The last commit is the one that is of interest for you. I've kept the current 
behaviour as default, as I think it is what most people would want. For your 
use case, you'd define OSR_CT_USE_DEFAULT_EPSG_TOWGS84=YES

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list