Monday, December 12, 2011

Converting Shapfiles to GeoJSON

For a recent project I needed county boundaries in GeoJSON format, which I did not have.  I did, however, have the shapefiles.  Luckily for me the ogr2org command easily handles this conversion:

ogr2ogr -f "GeoJSON" c:\california.json "c:\co51_d00.shp" co51_d00

Note: ogr2ogr, at least the Windows version, is bundled with Quantum GIS.

0 comments:

Post a Comment