[gdal-dev] ogr2ogr using grid shift files

Michael Schulz mandschulz at googlemail.com
Wed Mar 7 02:50:55 PST 2018


Dear devs,

why is og2ogr using a grid shift file explicitely specified in the
proj4 string in the s_srs parameter and not when the same proj4 string is
in the system-wide proj4/epsg file?

This example gives correct projected results:

ogr2ogr -f 'ESRI Shapefile' target.shp -s_srs "+proj=tmerc +lat_0=0
+lon_0=9 +k=1 +x_0=3500000 +y_0=0 +ellps=bessel
+nadgrids=@BWTA2017.gsb,BETA2007.gsb +units=m +wktext" -t_srs "EPSG:25832"
source.shp

The proj4/epsg contains exactly the same definition for EPSG:31467, but
when used like this:

ogr2ogr -f 'ESRI Shapefile' target.shp -s_srs "EPSG:31467" -t_srs
"EPSG:25832" source.shp

the transformation is using the towgs84 parameters defined in
datum_shifts.csv...

Is this the intended behaviour?

Thanks, Michael


-- 
-----------------------------------------------------------
Michael Schulz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20180307/3ea6358c/attachment.html>


More information about the gdal-dev mailing list