Created
April 11, 2013 07:25
-
-
Save aaronlidman/5361420 to your computer and use it in GitHub Desktop.
simplegeo dump, might get back to this
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import fiona | |
| schema = {'geometry': 'Polygon', | |
| 'properties': {'province': 'str', | |
| 'city': 'str', | |
| 'name': 'str', | |
| 'country': 'str', | |
| 'POP_CNTRY': 'float'}} | |
| with fiona.open( | |
| 'US.shp', | |
| 'w', | |
| driver='ESRI Shapefile', | |
| crs={'no_defs': True, 'ellps': 'WGS84', 'datum': 'WGS84', 'proj': 'longlat'}, | |
| schema=schema, ) as c: | |
| f = open('places_dump_US.geojson') | |
| line = f.readline() | |
| while line: | |
| print line | |
| line = f.readline() | |
| f.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment