Created
August 5, 2020 15:26
-
-
Save arbakker/c61183550f3ada8707b8caa7d2f19b44 to your computer and use it in GitHub Desktop.
Open GPKW with Python/Fiona and inspect attributes
This file contains hidden or 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
| #!/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