[OSM-talk-be] Fietsroutenetwerk in België nog eens helemaal nagekeken/Cycle node network in Belgium checked and corrected completely once more
Jo
winfixit at gmail.com
Sun Sep 9 06:22:45 UTC 2012
Overblijvende probleemgevallen/Remaining problems:
http://wiki.openstreetmap.org/wiki/WikiProject_Belgium/Cycle_Routes/Node_Network
Ik heb een manier gevonden om m.b.v. meerdere oproepen van Overpass API
alle Belgische fietsknooppunten en hun relaties af te halen. Ook alle
zijstraten van de routes worden afgehaald, zodat het mogelijk wordt om
eventueel nieuwe routes op te pikken. De Overpass queries zien er als volgt
uit:
I found a way to call the Overpass API several times in a row to download
all Belgian cycle node networks and their relations. It also fetches all
side streets, to enable picking up routes on those:
<union>
> <query type="relation" into="networks">
> <bbox-query s="49.5" n="51.5" w="2.52" e="6.5"/>
> <has-kv k="type" v="network"/>
> <has-kv k="network" v="rcn"/>
> <has-kv k="name" regv="Meetjesland"/>
> </query>
> <recurse type="relation-node" from="networks"/>
> <recurse type="relation-relation" from="networks"/>
> <recurse type="relation-way"/>
> <recurse type="way-node"/>
> <recurse type="node-way" into="parentways"/>
> <recurse from="parentways" type="way-node"/>
> <recurse from="parentways" type="way-relation"/>
> </union>
> <print mode="meta"/>
>
Die worden dan uitgevoerd als volgt:
This gets executed as follows:
cd "C:\Users\Jo\Documents\OSM gpx files\"
>
> rem "C:\Program Files (x86)\GnuWin32\bin\wget.exe" -O
> "C:\Users\Jo\Documents\OSM gpx files\target.osm"
> --post-file="C:\Users\Jo\Documents\OSM gpx files\query.overpass" "
> http://overpass-api.de/api/interpreter"
>
> "C:\Program Files (x86)\GnuWin32\bin\wget.exe" -O
> "C:\Users\Jo\Documents\OSM gpx files\kust.osm"
> --post-file="C:\Users\Jo\Documents\OSM gpx files\kust.overpass" "
> http://overpass-api.de/api/interpreter"
> "C:\Program Files (x86)\GnuWin32\bin\wget.exe" -O
> "C:\Users\Jo\Documents\OSM gpx files\ommeland.osm"
> --post-file="C:\Users\Jo\Documents\OSM gpx files\ommeland.overpass" "
> http://overpass-api.de/api/interpreter"
> "C:\Program Files (x86)\GnuWin32\bin\wget.exe" -O
> "C:\Users\Jo\Documents\OSM gpx files\meetjesland.osm"
> --post-file="C:\Users\Jo\Documents\OSM gpx files\meetjesland.overpass" "
> http://overpass-api.de/api/interpreter"
> "C:\Program Files (x86)\GnuWin32\bin\wget.exe" -O
> "C:\Users\Jo\Documents\OSM gpx files\leiestreek.osm"
> --post-file="C:\Users\Jo\Documents\OSM gpx files\leiestreek.overpass" "
> http://overpass-api.de/api/interpreter"
> "C:\Program Files (x86)\GnuWin32\bin\wget.exe" -O
> "C:\Users\Jo\Documents\OSM gpx files\waasland.osm"
> --post-file="C:\Users\Jo\Documents\OSM gpx files\waasland.overpass" "
> http://overpass-api.de/api/interpreter"
> "C:\Program Files (x86)\GnuWin32\bin\wget.exe" -O
> "C:\Users\Jo\Documents\OSM gpx files\scheldeland.osm"
> --post-file="C:\Users\Jo\Documents\OSM gpx files\scheldeland.overpass" "
> http://overpass-api.de/api/interpreter"
> "C:\Program Files (x86)\GnuWin32\bin\wget.exe" -O
> "C:\Users\Jo\Documents\OSM gpx files\pajottenland.osm"
> --post-file="C:\Users\Jo\Documents\OSM gpx files\pajottenland.overpass" "
> http://overpass-api.de/api/interpreter"
> "C:\Program Files (x86)\GnuWin32\bin\wget.exe" -O
> "C:\Users\Jo\Documents\OSM gpx files\hageland.osm"
> --post-file="C:\Users\Jo\Documents\OSM gpx files\hageland.overpass" "
> http://overpass-api.de/api/interpreter"
> "C:\Program Files (x86)\GnuWin32\bin\wget.exe" -O
> "C:\Users\Jo\Documents\OSM gpx files\kalmthout.osm"
> --post-file="C:\Users\Jo\Documents\OSM gpx files\kalmthout.overpass" "
> http://overpass-api.de/api/interpreter"
> "C:\Program Files (x86)\GnuWin32\bin\wget.exe" -O
> "C:\Users\Jo\Documents\OSM gpx files\kempen.osm"
> --post-file="C:\Users\Jo\Documents\OSM gpx files\kempen.overpass" "
> http://overpass-api.de/api/interpreter"
> "C:\Program Files (x86)\GnuWin32\bin\wget.exe" -O
> "C:\Users\Jo\Documents\OSM gpx files\limburg.osm"
> --post-file="C:\Users\Jo\Documents\OSM gpx files\limburg.overpass" "
> http://overpass-api.de/api/interpreter"
> "C:\Program Files (x86)\GnuWin32\bin\wget.exe" -O
> "C:\Users\Jo\Documents\OSM gpx files\venn.osm"
> --post-file="C:\Users\Jo\Documents\OSM gpx files\venn.overpass" "
> http://overpass-api.de/api/interpreter"
>
> cd "C:\Users\Jo\Documents\OSM gpx files\"
>
> "C:\Program Files (x86)\java\jre6\bin\java.exe" -jar -Xmx850m
> "C:\Users\Jo\Downloads\josm-latest.jar" kust.osm ommeland.osm
> meetjesland.osm leiestreek.osm waasland.osm scheldeland.osm
> pajottenland.osm hageland.osm kalmthout.osm kempen.osm limburg.osm venn.osm
>
Op een tiental minuten is alle relevante data afgehaald en zijn de lagen
weer bij elkaar gevoegd in JOSM. Waarschijnlijk is er nog wel een commando
(osmose?) dat die lagen zou kunnen samenvoegen voordat JOSM wordt
aangeroepen.
In about ten minutes all relevant data is downloaded and the layers merged
in JOSM. There is probably also a command which can do the merging before
calling JOSM.
After this I release my Python script on it and detect all the new errors
that got introduced. A few hours later everything is corrected and ready
for upload.
An overview of remaining problems can be found here:
http://wiki.openstreetmap.org/wiki/WikiProject_Belgium/Cycle_Routes/Node_Network
Polyglot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk-be/attachments/20120909/9721a307/attachment.htm>
More information about the Talk-be
mailing list