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

0
2

Hello Everyone,

I am trying to download all the trunks, motorways and primary ways that don't have name:en tag in Iran. Can someone help me write a query that can download these data from OSM server?

Thanks.

asked 03 Sep '16, 07:12

Adib%20Yz's gravatar image

Adib Yz
291101219
accept rate: 0%

edited 03 Sep '16, 14:33


What you need is the Overpass-API Negation operator.

Here is an example for trunk roads. BEWARE it returns a lot of data, so it may be better to run through Overpass rather than Overpass-Turbo, or change the area constraint to limit the query to individual provinces.

permanent link

answered 03 Sep '16, 13:15

SK53's gravatar image

SK53 ♦
28.1k48268433
accept rate: 22%

6

BTW: we've changed the negation in the most recent release 0.7.53 to make it a bit more user friendly:

Instead of ["name:en"!~"."] you can now also write [!"name:en"]

This will be available on overpass-api.de in the near future.

(03 Sep '16, 13:49) mmd

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:

×483
×219
×147
×10

question asked: 03 Sep '16, 07:12

question was seen: 25,182 times

last updated: 03 Sep '16, 14:33

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