Created
November 10, 2025 09:44
-
-
Save do-me/77808843d38242f2b920b9ae77b652bd to your computer and use it in GitHub Desktop.
OSM: From .osm.pbf to parquet file with all streets for a region
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
| osmium extract -b 12.2,36.5,15.8,38.8 italy.osm.pbf -o sicily.osm.pbf --overwrite; | |
| osmium tags-filter sicily.osm.pbf w/highway -o sicily_streets.osm.pbf --overwrite; | |
| ogr2ogr -f Parquet -oo PRELUDE_STATEMENTS="INSTALL spatial; LOAD spatial;" \ | |
| sicily_streets.parquet sicily_streets.osm.pbf lines; |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps are very fast, run in 8.4s!
Or all commands chained: