Skip to content

Instantly share code, notes, and snippets.

@tmcw
Created March 7, 2013 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmcw/5108500 to your computer and use it in GitHub Desktop.
Save tmcw/5108500 to your computer and use it in GitHub Desktop.
like ogrinfo but less annoying
#!/usr/bin/env python
import fiona, sys, json
c = fiona.open(sys.argv[1], 'r')
print json.dumps({
'name': c.name,
'type': c.driver,
'crs': c.crs,
'geometry': c.schema['geometry'],
'properties': c.schema['properties']
}, indent=4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment