This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Filtering a region for street name extraction

0

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's gravatar image

ceeslt
11224
accept rate: 0%


2 Answers:

1

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's gravatar image

SK53 ♦
28.1k48268433
accept rate: 22%

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

0

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.

http://overpass-turbo.eu/

[out:csv("name";false)];
area[name="Brownsville"];
way(area)[highway][name];
out;

met.

answered 11 Oct '20, 05:22

mdelatorre's gravatar image

mdelatorre
1773411
accept rate: 0%

Source code available on GitHub .