User:Bgirardot/how-to-osm-building-centroids
Jump to navigation
Jump to search
./osmconvert country-latest.osm.pbf -o=country.o5m && ./osmfilter country.o5m --keep="building=" -o=country_bldgs_and_corners.o5m && ./osmconvert country_bldgs_and_corners.o5m --max-objects=50000000 --all-to-nodes -o=country_bldgs_and_corners_as_nodes.o5m && ./osmfilter country_bldgs_and_corners_as_nodes.o5m --keep="building=" -o=country_bldgs_as_nodes.o5m && ./osmconvert country_bldgs_as_nodes.o5m --csv="@lon @lat" --csv-headline --csv-separator="," -o=country_building_centroids.csv
source: https://forum.openstreetmap.org/viewtopic.php?id=57924