Skip to content

Instantly share code, notes, and snippets.

@mccombsp-kingco
Last active January 1, 2016 18:39
Show Gist options
  • Save mccombsp-kingco/8185605 to your computer and use it in GitHub Desktop.
Save mccombsp-kingco/8185605 to your computer and use it in GitHub Desktop.
working notes for converting king county data portal from shapefile to geojson WGS84 projection
Possible work arround if we can't get the gdal python module to work.
p = subprocess.Popen(['E:/EntTools/360EntSignHelper.exe',
'E:/build/temp/RemoteAssistSetup.exe'],
stdout=subprocess.PIPE, shell=True)
output = p.communicate()[0]
print output
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 mccombs@imperium.org
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")
@mccombsp-kingco
Copy link
Author

note from 20131230 - getting set up with Peter

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