You are not logged in.
- Topics: Active | Unanswered
Announcement
*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***
#1 2020-07-05 18:02:13
- cul-de-sac
- Member
- Registered: 2019-03-18
- Posts: 32
overpass - outputting areas derived from is_in
Consider the following overpass query:
node["name"="Linz Hauptbahnhof"]["railway"="station"];
is_in;
(._; >;);
out;It does not produce any printable output. It only returns <area>s with metadata, for instance:
<area id="3607338687">
<tag k="admin_level" v="10"/>
<tag k="boundary" v="administrative"/>
<tag k="description" v="Statistischer Bezirk (ab 2014)"/>
<tag k="name" v="Innere Stadt"/>
<tag k="type" v="boundary"/>
<tag k="url" v="http://www.linzwiki.at/wiki/Statistischer_Bezirk/"/>
</area>I learned, that if I substract 3600000000 from the areas id, I get the id from the belonging relation. So
relation(7338687);
(._; >;);
out;would produce the desired output.
Is there a possibility, to do this conversion from <area id=""> to <relation id=""> within an overpass query?
Greetings
cul-de-sac
Offline