Overpass turbo query problem

Dear all,

sorry for this trivial question, but i’m starting now…

I have this query:

(
node({{bbox}});
way({{bbox}});
relation({{bbox}});
)->.all;
(.all[!“landuse”][!“building”][!“natural”];);
out geom;

and I tought it was correct, but I have this error:

Error: line 6: static error: For the attribute “type” of the element “query” the only allowed values are “node”, “way”, “relation”, “nwr”, “nw”, “wr”, “nr”, or “area”.

Why? Thank you

It looks like it’s missing nwr.all instead of .all.

(
node({{bbox}});
way({{bbox}});
relation({{bbox}});
)->.all;
(nwr.all[!landuse][!building][!natural];);
out geom;

But I think it can be simplified like this?

[out:xml][timeout:25][bbox:{{bbox}}];
nwr[!landuse][!building][!natural];
out geom;
1 Like

You are missing the nwr in front of the .all. But you can simplify your query by doing one:

nwr({{bbox}})[!"landuse"][!"building"][!"natural"];
out geom;
2 Likes

Dear all,

thank you very much for the help.

It works

1 Like