Skip to content

Instantly share code, notes, and snippets.

@jsanz
Last active August 29, 2015 14:02
Show Gist options
  • Save jsanz/05187f5e850144f7647e to your computer and use it in GitHub Desktop.
Save jsanz/05187f5e850144f7647e to your computer and use it in GitHub Desktop.
ogr2ogr 23030->25830
# Command to use the NTV2 grid file correctly to convert
# from 23030 (ED50) to 25830 (ETRS89), both in UTM30N
# hint: define all the f$cking SRS params
ogr2ogr \
-t_srs "+proj=utm +zone=30 +ellps=GRS80 +units=m +nadgrids=/path/to/sped2et.gsb" \
-s_srs "epsg:23030" \
-a_srs "epsg:25830" \
-f "ESRI Shapefile" output_shp_25830.shp input.shp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment