January 28, 2022

Reprojecting shapefiles with ogr2ogr

If you have an ESRI Shapefile (.shp) that you want to reproject, you can use ogr2ogr

ogr2ogr -t_srs <EPSG-CODE> newfile.shp oldfile.shp

The EPSG code could be for instance epsg:28532.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.