[Talk-GB] Overpass question: Fixmes and surroundings
Rob Nickerson
rob.j.nickerson at gmail.com
Fri Oct 18 19:57:24 UTC 2019
Hi all,
I found an answer to this in the end (mostly by chance). It seems like the
overpass in JOSM is different from what can be used on the Overpass Turbo
website. It JOSM you need to use the following instead:
[out:xml][timeout:90][bbox:{{bbox}}];
// Get all fixmes in current bounding box
(
node["fixme"~"^(incomplete|stub|Longer than this|continue)$",i];
node["FIXME"~"^(incomplete|stub|Longer than this|continue))$",i];
way["fixme"~"^(incomplete|stub|Longer than this|continue)$",i];
way["FIXME"~"^(incomplete|stub|Longer than this|continue))$",i];
)->.fixmes;
// find surrounds
(
node(around.fixmes:50);
way(around.fixmes:50);
//relation(around.fixmes:50);
)->.surrounds;
// return results, fixmes and surrounds
(.fixmes; .surrounds;>;);
out meta;
*Rob*
On Tue, 24 Sep 2019 at 21:50, Rob Nickerson <rob.j.nickerson at gmail.com>
wrote:
> Hi all,
>
> I'm trying to craft a overpass query that returns fixmes and the
> surrounding OSM data. I seem to have got it working in Overpass Turbo. I
> want to use this in JOSM but it's not returning all the same Ways as seen
> in Overpass Turbo.
>
> http://overpass-turbo.eu/s/Myw
>
> Anyone able to help me please?
>
> Thank you.
> *Rob*
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk-gb/attachments/20191018/0abda2ff/attachment-0001.html>
More information about the Talk-GB
mailing list