Skip to content

Instantly share code, notes, and snippets.

@marioblas
Forked from ayozebarrera/geo.json
Last active August 29, 2015 14:18
Show Gist options
  • Save marioblas/b756bb01bb02a18fb993 to your computer and use it in GitHub Desktop.
Save marioblas/b756bb01bb02a18fb993 to your computer and use it in GitHub Desktop.
🌍 ogr2ogr - Get a GeoJSON with 4326 projection from a shapefile
# Get a geojson with 4326 projection from a shapefile
ogr2ogr -f GeoJSON -t_srs crs:84 name.geojson name.shp
# -f format_name: GeoJSON (ESRI Shapefile, GML, MapInfo file...)
# -t_srs: Reproject/transform to this SRS on output (crs:84 is WGS84)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment