GDAL – Reproject a Shapefile

  • Software: GDAL 3.2
  • OS: Any
  • Created: September 2021

So someone sent me a shapefile (parks.shp) and it’s in EPSG:4326 (which is WGS84). If you have QGIS installed you already have access to the GDAL suite of tools. In this case I want to re-project this file without going into any desktop software. I’m going to do this example in windows just to give it a common look and feel.

Open the OSGeo4W Shell (or a terminal if you’re mac or linux) and make sure you have gdal installed by typing: ogrinfo –version. If that command executes you have access to everything you need.

Navigate to your data and execute:

ogr2ogr -s_srs EPSG:4326 -t_srs EPSG:2274 parks_2274.shp parks.shp

If you want to export this to a Geopackage you can execute the following:

ogr2ogr -s_srs EPSG:4326 -t_srs EPSG:2274 -f GPKG parks.gpkg parks.shp

Want QGIS Training? Need help with a project? Give us a shout at info at