Skip to content

Instantly share code, notes, and snippets.

@KarthiAru
Created December 18, 2016 12:56
Show Gist options
  • Save KarthiAru/5df219615abe1212291111ad0f604516 to your computer and use it in GitHub Desktop.
Save KarthiAru/5df219615abe1212291111ad0f604516 to your computer and use it in GitHub Desktop.
# Convert from .shp to .geojson files
$ ogr2ogr -skipfailures -f GeoJSON -t_srs crs:84 [filename].geojson [filename].shp
# Convert from .kml to .geojson files
$ ogr2ogr -skipfailures -f GeoJSON -t_srs crs:84 [filename].geojson [filename].kml
# Convert from .kml to .shp files
$ ogr2ogr -skipfailures -f 'ESRI SHAPEFILE' [filename].shp [filename].kml
# Convert from .shp to .kml files
$ ogr2ogr -skipfailures -f KML [filename].kml [filename].shp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment