[Qgis-user] ogr2ogr - how to use -s_srs, -t_srs and -a_srs

Erik Josefsson erik.hjalmar.josefsson at gmail.com
Sat Aug 5 17:22:25 PDT 2017


Hello,

I have a handful of zip archives containing original shapefiles with
different coordinate reference systems (e.g. SGER:3008 and SGER:3021).

I want to extract and convert them all to SGER:3006 and thought that
ogr2ogr would do the job, but I don't find intelligible instructions on
how to use the srs-parameters: -s_srs, -t_srs and -a_srs.

Do I have to know the coordinate reference system of each original shape
file to use ogr2ogr successfully? If so, how do I retrieve that information?

Or should I just override the original coordinate reference system like
this?

ogr2ogr -f 'ESRI Shapefile' -s_srs EPSG:3006 -t_srs EPSG:3006 -a_srs
EPSG:3006 A.shp B.shp

Best regards.

//Erik

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 533 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20170806/e4cfa3c7/attachment.sig>


More information about the Qgis-user mailing list