[OSM-talk] Rendering a long tunnel

D Tucny d at tucny.com
Tue Dec 11 06:16:46 GMT 2007


On 11/12/2007, Stephen Hope <slhope at gmail.com> wrote:
>
> In Brisbane they are building a long tunnel, connecting the northern
> and southern main roads and bypassing the city centre.  It is going to
> go under two suburbs, the river, then another two suburbs on the other
> side. There is no access except either end.  I'm wondering the best
> way to render this.
>
> On a low to medium zoom map, this tunnel should show - it's going to
> be one of the main through routes of the city when it's finished.  But
> on a high zoom map of the city centre, I'm wondering what it is going
> to look like.  It is a very high density area, with lots of small
> blocks, lanes, POI's etc., and you won't be able to see either end of
> the tunnel.  How are the render programs going to handle a divided
> trunk road in a tunnel  crossing the entire map tile?  Or maybe the
> question should be how *should* they handle it?


This is how a tunnel gets rendered by osmarender/t at h...

http://www.informationfreeway.org/?lat=30.25621384971583&lon=120.15584703884582&zoom=16&layers=B000F000

and this is in mapnik...

http://www.informationfreeway.org/?lat=30.25621384971583&lon=120.15584703884582&zoom=16&layers=0000F0B0

This particular tunnel just goes under a small amount of road and a section
of lake...
As it stands right now, osmarender/t at h renders the tunnel as just dotted
lines, you can't see what's in the tunnel, but, it looks like a tunnel and
mapnik, doesn't render any differently to a surface road...

For your area, with current rendering rules on both osmarender/t at h and
mapnik, you'll see a pair of dotted lines crossing the whole area in
osmarender/t at h and the road crossing the entire area in mapnik...

I believe some work has gone into tunnels in mapnik already, but I don't
know where that's got to, so someone else can give the status of that...

As far as editing goes, while the tunnel will be tagged at a different layer
to the features it passes under, as far as the view the editors give, it'll
just be a way running through them... There's currently no way that I'm
aware of to hide other tagged layers or only show certain tagged layers, I'm
specifically talking tagged layers as josm and potlatch both deal with
layers, but layers of entire blocks of data rather than the tagged layers of
features... This can make the data somewhat troublesome to work with at
times...

d
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20071211/261b7c43/attachment.html>


More information about the talk mailing list