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

I can obtain a list of items with a combination of two tags using the XAPI as follows:

wget http://jxapi.openstreetmap.org/xapi/api/0.6/*[amenity=pub][source=*][bbox=-0.645,52.756,-0.595,52.856]

but is it possible to obtain a list of "tag X but not tag Y" (using either XAPI, or Overpass, or something else)?

asked 09 Oct '11, 13:20

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%


Seems like you could use Osmfilter after downloading a .osm file to drop elements with specific tags. I never used it though.

permanent link

answered 09 Oct '11, 14:27

scai's gravatar image

scai ♦
33.3k21309459
accept rate: 23%

Thanks - that was exactly what I was looking for.

(09 Oct '11, 18:01) SomeoneElse ♦

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:

×191
×147
×32

question asked: 09 Oct '11, 13:20

question was seen: 4,398 times

last updated: 09 Oct '11, 18:01

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