NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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

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 ♦
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

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.



permanent link

answered 11 Oct '20, 05:22

mdelatorre's gravatar image

accept rate: 0%

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 05 Oct '20, 05:27

question was seen: 1,458 times

last updated: 11 Oct '20, 05:22

NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum