[OSM-talk-be] GR en hiking
Jo
winfixit at gmail.com
Tue Aug 28 07:49:54 UTC 2012
2012/8/27 Ben Laenen <benlaenen at gmail.com>
> On Monday 27 August 2012 10:14:47 Jo wrote:
> > I created a page where we can all vote:
> >
> >
> http://wiki.openstreetmap.org/w/index.php?title=WikiProject_Belgium/Walking
> > _Routes/VoteForHikingOrFoot&action=edit
>
>
> Just a little question: why did this need its own page? It's what the
> discussion pages should be used for...
>
> Anyway, just saying in case there are some other votes coming up as well...
>
Sorry, I'm not in the habit of launching votes. It's a dirty job, but
somebody has to do it.
After one day we have 7 votes in favour, 0 against. I'll wait for a few
more days. In the mean time |'ve been playing a bit with the Overpass API:
<query type="relation" into="routes">
<bbox-query s="49.5" n="51.5" w="2.52" e="6.5"/>
<has-kv k="route" v="foot"/>
</query>
<query type="relation">
<bbox-query s="49.5" n="51.5" w="2.52" e="6.5"/>
<has-kv k="route" v="foot"/>
</query>
<union>
<item/>
<recurse type="relation-backwards" from="routes"/>
<recurse type="relation-node" from="routes"/>
<recurse type="relation-way" from="routes"/>
<recurse type="way-node"/>
</union>
<print mode="meta"/>
This query results in a 45 MB file, containing all relations where
route=foot in an area more or less covering Belgium. There are some routes
going into the neighbouring countries. Hopefully they won't mind the
retagging.
It also gives all parent relations and all node and way members of the
route relations. Getting the numbered nodes themselves from the network
relations should already have been accomplished by downloading the ways. If
not, it's only one extra line to accomplish that. That way nodes which were
drawn next to the actual crossing and made members of the network relation
also get downloaded.
<recurse type="relation-node"/>
above
<recurse type="relation-node" from="routes"/>
Anyway, just to illustrate the power of Overpass. It's quick too, only a
few minutes, download included.
This provides a great starting point to rename those tags all at once with
JOSM.
Jo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk-be/attachments/20120828/20f870ae/attachment.htm>
More information about the Talk-be
mailing list