Is it possible to create an area, as part of an Overpass query, for an arbitrary multypolygon relation? Overpass does not create areas for multipolygons that have no name or postal code, according to areas.osm3s. For example, I'd like to find all orphan nodes in the area defined by relation 6195356. If this relation had a built-in area, the Overpass query would be:
The requested solution would be Overpass Query statement(s) that will replace asked 08 Dec '17, 10:58 zstadler |
There's a The documentation only says that the operation returns the area associated with the OSM object but it also appears to create it if it doesn't exist. I'm not sure how persistent the new areas are, but at the moment there is an area associated with that relation on the overpass-api.de server, apparently due to my experimenting. answered 08 Dec '17, 12:43 maxerickson Unfortunately, this does not seem to work for the relation at hand. The following Overpass query returns nothing:
(08 Dec '17, 14:58)
zstadler
Could be server specific. Here it returns an area: http://overpass-turbo.eu/s/tEL (with overpass-api.de selected in the settings)
(08 Dec '17, 16:22)
maxerickson
I'm getting an empty set from the overpass-api.de server http://overpass-api.de/api/interpreter?data=rel(6195356);map_to_area;out; or
(08 Dec '17, 20:58)
zstadler
Here's the output I get clicking your first link:
(09 Dec '17, 00:28)
maxerickson
Here is what I get:
Also note the difference in the "generator" text. Strange indeed.
(09 Dec '17, 06:19)
zstadler
There seems to be a difference between the two servers behind overpass-api.de
(09 Dec '17, 06:40)
zstadler
2
Apparently, the result provided the by "z.overpass-api.de" server (136.243.42.136), which contains the area element, is outdated. See this comment for GitHub issue 285 and a 9-Dec-2017 server issue report.
(09 Dec '17, 17:44)
zstadler
It seems like the old areas were also removed from the "z.overpass-api.de" server (136.243.42.136): > wget -q -O - http://z.overpass-api.de/api/interpreter?data=rel%286195356%29%3Bmap_to_area%3Bout%3B <osm version="0.6" generator="Overpass API 0.7.54.12 054bb0bb"> <note>The data included in this document is from www.openstreetmap.org. The data is made available under ODbL.</note> <meta osm_base="2017-12-11T09:57:02Z" areas="2017-12-11T08:55:02Z"/> </osm> The question remains open
(11 Dec '17, 10:00)
zstadler
showing 5 of 8
show 3 more comments
|
The short and sad answer is it is not possible:
Ref: - https://wiki.openstreetmap.org/wiki/Overpass_API/status - https://wiki.openstreetmap.org/wiki/Overpass_API/Areas
The short and sad answer is it is not possible:
Ref: https://wiki.openstreetmap.org/wiki/Overpass_API/status