Skip to content

Instantly share code, notes, and snippets.

@keum
Forked from mccombsp-kingco/gist:8185605
Last active January 1, 2016 19:29
Show Gist options
  • Save keum/8190635 to your computer and use it in GitHub Desktop.
Save keum/8190635 to your computer and use it in GitHub Desktop.
How To: Gdal using ogr for geojson
Install gdal http://giscollective.org/installing-gdal-mac/
use github http://www.thinkful.com/learn/a-guide-to-using-github-pages/start/existing-project/user-page/
git add .
551 git commit -a -m "testing GeoJSON format"
552 git config --global user.name "mccombsp-kingco"
553 git config --global user.emal [email protected]
554 git commit --amend --reset-author
555 git push
ogrinfo -al -so facility.shp
ogr2ogr -t_srs EPSG:4326 ../../../fac_proj.shp facility.shp
ogrinfo -al -so fac_proj.shp
ogr2ogr -f geoJSON fac_proj.geojson fac_proj.shp
os.system("ogrinfo -al -so fac_proj.geojson")
s.system("ogr2ogr -t_srs EPSG:4326 newtest.geojson //Users//paulmccombs//kccode//KC_Data//utility_SHP//utility//facility.shp")
os.system("ogr2ogr -t_srs EPSG:4326 newtest.shp //Users//paulmccombs//kccode//KC_Data//utility_SHP//utility//facility.shp")
@keum
Copy link
Author

keum commented Dec 31, 2013

paul's note on shape2geojson python script description

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment