[Talk-de] [osm.list at randomjunk.co.uk: [OSM-talk] Route relations on cycle map]

Frederik Ramm frederik at remote.org
So Okt 28 18:16:58 UTC 2007


Hallo,

   da hier des oeftern nach Relationen und Fahrradwegen gefragt wurde,
gerade kommt auf der englischen Liste das hier:

----- Forwarded message from Dave Stubbs <osm.list at randomjunk.co.uk> -----

So, from the next re-rendering of the cycle map at
http://www.gravitystorm.co.uk/osm/ (probably by Thursday) it will
render cycle route relations.. so hopefully people can start using
them :-)

The tagging scheme for the relation to be rendered is:
 - network => either "ncn", "rcn", or "lcn" are currently rendered,
see the cycle map key
 - (optional) ref => the reference number for the route
 - (optional) state => the state of the route, "proposed" is currently
rendered dotted

The members of the relation are the ways over which the route follows.
The ways will still need to be split in the appropriate places where
the route turns off of a road etc.

[...]

For those interested in how the relations are being imported for
mapnik, it's just an extra python script after the osm2pgsql import
which parses the relations from the end of the planet.osm, and runs
some SQL to create new ways in the planet_osm_line table for each of
the referenced osm_id's (ie: insert into planet_osm_line (ncn_ref,way)
(select '<ref>', way from planet_osm_line where osm_id in (<relation
members>)) ). This approach may prove to have some problems, but it
seems to work for my current tests.

----- End forwarded message -----

Also, ganz kurz uebersetzt: Der zeichnet jetzt Relationen in seinen
Fahrradkarten mit ein und benutzt dazu einfach ein kleines Skript, das
aus jeder Relation fuer Mapnik einen eigenen Way macht. 

Bye
Frederik

-- 
Frederik Ramm  ##  eMail frederik at remote.org  ##  N49°00.09' E008°23.33'





Mehr Informationen über die Mailingliste Talk-de