Skip to content

Instantly share code, notes, and snippets.

@aaronlidman
Created April 11, 2013 07:25
Show Gist options
  • Select an option

  • Save aaronlidman/5361420 to your computer and use it in GitHub Desktop.

Select an option

Save aaronlidman/5361420 to your computer and use it in GitHub Desktop.
simplegeo dump, might get back to this
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