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%


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).

permanent link

answered 05 Oct '20, 14:01

SK53's gravatar image

SK53 ♦
25.9k47256408
accept rate: 20%

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.

http://overpass-turbo.eu/

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

met.

permanent link

answered 11 Oct '20, 05:22

mdelatorre's gravatar image

mdelatorre
1772411
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×107
×57
×46
×37
×12

question asked: 05 Oct '20, 05:27

question was seen: 510 times

last updated: 11 Oct '20, 05:22

powered by OSQA