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
""" | |
Program by Nikhil VJ, https://nikhilvj.co.in | |
Based on solution worked out at https://gis.stackexchange.com/questions/475398/extract-features-in-lat-long-co-ordinates-from-vector-tile-layer-pbf-file-pytho | |
License: Creative Commons Zero v1.0 Universal, ref: https://choosealicense.com/licenses/cc0-1.0/ | |
What this does: | |
- Given any vector tile layer in .pbf format, and a poylgon or similar shape, | |
- Extracts all the data from the vector tile layer falling over that shape, | |
- And save it to local disk as a .gpkg shapefile which you can further use | |
- If the vector tile layer had multiple layers, then .gpkg will have all those layers |