Jun-23-2021, 04:10 PM
I settled for:
#!/bin/bash OSMOSIS="/usr/bin/osmosis" OSFILTER="place=city,town,village,hamlet,suburb,borough,municipality" OCFILTER="@id @lat @lon name" cd Alabama $OSMOSIS --read-pbf "Alabama-Latest.Osm.Pbf" --tf reject-relations --tf reject-ways --tf accept-nodes $OSFILTER --write-xml "AlabamaCities.pbf" osmconvert AlabamaCities.pbf --csv="$OCFILTER" -o="AlabamaCities.csv" cd ..which gets the job done for now. I am in the process of converting to 100% python now.