[gdal-dev] ogr2ogr not recognizing source SRS correctly

Christoph Paulik cpaulik at vandersat.com
Thu Feb 1 02:20:46 PST 2018


Hi,

I've got a shapefile in EPSG:28992 -
http://spatialreference.org/ref/epsg/amersfoort-rd-new/ which I want to
project into a different EPSG.

But this leads to a shift in the projected output if I don't explicitly
specify the s_srs option in ogr2ogr.

So

ogr2ogr AA-maas-EPGS-4326.shp AaMaas.shp -t_srs EPSG:4326 -s_srs EPSG:28992

works correctly

But doing

ogr2ogr AA-maas-EPGS-4326.shp AaMaas.shp -t_srs EPSG:4326

leads to a shift of the shapefile.

The .prj file is of course there.

Should I file a bug or am I doing something wrong?

All the best,
Christoph


-- 

-------------------------------------------------------
Christoph Paulik
VanderSat // Remote Sensing Scientists
Wilhelminastraat 43a, 2011 VK, Haarlem (NL), The Netherlands
W: www.vandersat.com
PGP: 8CFC D7DF 2867 B2DC 749B  1B0A 6E3B A262 5186 A0AC
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20180201/5421d2cc/attachment.sig>


More information about the gdal-dev mailing list