Skip to content

Instantly share code, notes, and snippets.

@arbakker
Created August 5, 2020 15:26
Show Gist options
  • Save arbakker/c61183550f3ada8707b8caa7d2f19b44 to your computer and use it in GitHub Desktop.
Save arbakker/c61183550f3ada8707b8caa7d2f19b44 to your computer and use it in GitHub Desktop.
Open GPKW with Python/Fiona and inspect attributes
#!/usr/bin/env python3
import fiona
import shapely
def main():
with fiona.open("data/krw_deelstroomgebieden_actueel.gpkg", layer="krw_deelstroomgebied") as src:
collection = iter(src)
f = next(collection)
print(f['properties'])
print(f['geometry']["type"])
if __name__=="__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment