logo separator

[mkgmap-dev] How to evaluate network=e-road if it's in a relation

From Walter Schlögl Walter.Schloegl-Resch at aon.at on Tue Jan 6 17:18:07 GMT 2015

Hi Gerd,

thanks for your help, it’s working.

Using mkgmap makes a lot of fun, 
because it’s a perfect software
and because of this premium support.

I think it would be worth to add this also to the default style.

type=route & route=road
{
    apply 
    { 
        set network='${network}';
        set ref='${ref}';
    } 
}

Also for route=ski I added a copy of piste:type even if ref and name is missing.
But piste seems to be not used in default style.

Walter

From: Gerd Petermann 
Sent: Tuesday, January 06, 2015 5:45 PM
To: mkgmap-dev at lists.mkgmap.org.uk 
Subject: Re: [mkgmap-dev] How to evaluate network=e-road if it's in a relation

Hi Walter,

I think Minkos style contains samples for that as well:

type=route & route=bicycle & network=ncn
    {
        apply { 
        set ncn_from_relation=yes;
        set nname='${name}';
        set nref='$(nref)/${ref}' | '${ref}';
    } 
    }    
 
Gerd


> From: Walter.Schloegl-Resch at aon.at
> To: mkgmap-dev at lists.mkgmap.org.uk
> Date: Tue, 6 Jan 2015 17:33:39 +0100
> Subject: [mkgmap-dev] How to evaluate network=e-road if it's in a relation
> 
> The following command
> 
> highway=* & network=e-road
> 
> works fine, if the tag network=e-road is directly attached to the road.
> But in most cases it is attached via a relation,
> and in these cases it is not evaluated.
> 
> In my relations file there are only rules for
> type=boundary | type=multipolygon
> type=route & (route=bus | route=trolleybus | route=ferry | route=subway | 
> route=train | route=tram)
> type=route & (route=ski)
> 
> I am not very familier with the relations commands.
> Is there a way to refer to network=e-road via the relations file?
> 
> Walter 
> 
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev



--------------------------------------------------------------------------------
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20150106/835d0c92/attachment-0001.html>


More information about the mkgmap-dev mailing list