Guest User

Untitled

a guest
May 24th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. import json
  2. import pprint
  3. import geojson
  4.  
  5. with open('path/to/test.geojson', 'r') as f:
  6. data = json.load(f)
  7. props = data['properties']
  8. props['prefix:prop'] = 'val'
  9. with open ('path/to/test.geojson', 'w') as a:
  10. json.dump(data, a, indent=4, sort_keys=True)
Add Comment
Please, Sign In to add comment