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

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%


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

permanent link

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

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
×147
×2

question asked: 27 Aug '16, 13:57

question was seen: 2,845 times

last updated: 27 Aug '16, 14:37

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