Differences between revisions 1 and 2
Revision 1 as of 2012-08-19 00:12:06
Size: 175
Editor: SamatJain
Comment: Using gdal to convert shapefile projections
Revision 2 as of 2012-08-19 00:19:24
Size: 253
Editor: SamatJain
Comment: Converting to GeoJSON
Deletions are marked like this. Additions are marked like this.
Line 10: Line 10:

=== Convert to GeoJSON ===

{{{
ogr2ogr -f geojson Out.json In.shp
}}}

ESRI Shapefiles

Convert projection

Convert something to WGS84 (latitude and longitude):

ogr2ogr -t_srs WGS84 WGS84_Whatever.shp Whatever.shp

Convert to GeoJSON

ogr2ogr -f geojson Out.json In.shp

SamatsWiki: CheatSheet/Gdal (last edited 2012-08-19 00:19:24 by SamatJain)