Skip to content

Instantly share code, notes, and snippets.

@joeyklee
Created January 13, 2017 09:29
Show Gist options
  • Save joeyklee/10c818e98b5cca078b1b577371c8c9eb to your computer and use it in GitHub Desktop.
Save joeyklee/10c818e98b5cca078b1b577371c8c9eb to your computer and use it in GitHub Desktop.
ogr2ogr reprojection
# single projection change
ogr2ogr output.shp -t_srs "EPSG:4326" input.shp
# loop all shpfiles in folder
for shp in *.shp
do
echo “Processing $shp”
projection="utm10n_"
ogr2ogr -s_srs EPSG:4326 -t_srs EPSG:26910 $projection$shp $shp
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment