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

How to exclude a “user:” in an Overpass Wizard query

2

This overpass-turbo wizard query works, but I want the negation

user:"MassGIS Import" and type:way and highway=* in "Boylston,Massachusetts"

I've tried

-user:"MassGIS Import"

user:!"MassGIS Import"

user:!="MassGIS Import"

asked 27 Aug '16, 13:57

Alan01730's gravatar image

Alan01730
464343552
accept rate: 0%


One Answer:

4

Overpass turbo wizard does not support negative user queries. You need to manually set up your query using the difference statement:

[out:json][timeout:25];
{{geocodeArea:Boylston,Massachusetts}}->.searchArea;
(
  way["highway"](area.searchArea); - 
  way(user:"MassGIS Import")["highway"](area.searchArea);
);
out body;
>;
out skel qt;

Try it in overpass turbo: http://overpass-turbo.eu/s/i3c

answered 27 Aug '16, 14:15

mmd's gravatar image

mmd
5.7k15388
accept rate: 37%

2

Great answer, works like a charm. You've nudged me just enough that I'll be digging deeper into overpass. I was trying to avoid that!!!

(27 Aug '16, 14:33) Alan01730

Source code available on GitHub .