Last active
August 29, 2015 13:57
-
-
Save sgillies/9577794 to your computer and use it in GitHub Desktop.
This file contains 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
... | |
#GPX GPX Yes Yes Yes (read support needs libexpat) | |
("GPX", "raw"), | |
... |
This file contains 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 | |
>>> fiona.listlayers('docs/data/fells_loop.gpx') | |
[u'waypoints', u'routes', u'tracks', u'route_points', u'track_points'] | |
>>> with fiona.open('docs/data/fells_loop.gpx', layer='routes') as routes: | |
... print routes.schema | |
... | |
{'geometry': 'LineString', 'properties': OrderedDict([(u'name', 'str'), (u'cmt', 'str'), (u'desc', 'str'), (u'src', 'str'), (u'link1_href', 'str'), (u'link1_text', 'str'), (u'link1_type', 'str'), (u'link2_href', 'str'), (u'link2_text', 'str'), (u'link2_type', 'str'), (u'number', 'int'), (u'type', 'str')])} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Awesome.