I'm trying to extract a list (in csv format) of street names from a city using OSMFilter and OSMConvert. Problem is, there's no .osm file for said city, what I can find is just the .osm of the country and the province. How do you extract the name tag of the streets of just one city from an .osm file of a bigger region? addr:city yields different results instead. asked 05 Oct '20, 05:27 ceeslt |
You can use a polygon specification with osmconvert (and also osmosis). The relevant .poly can be created using JOSM or QGIS (with a plugin). This is how the country files are produced in the first place (the Geofabrik Download site displays the polygons used). answered 05 Oct '20, 14:01 SK53 ♦ Thanks for the suggestion, I tried it but it turns out that my computer can't handle loading the file in JOSM. I finally managed to slice the area using BBBike. Is there any difference from extracting via JOSM result-wise?
(08 Oct '20, 01:37)
ceeslt
|
This can be done with the following Overpass Turbo script. You just need to change the city. You will have to do some cleaning after.
met. answered 11 Oct '20, 05:22 mdelatorre |