logo separator

[mkgmap-dev] Style function is_connected ?

From WanMil wmgcnfg at web.de on Mon Feb 25 19:06:34 GMT 2013

> Am 25.02.2013 15:38, schrieb GerdP:
>
>> Besides that, the question is where you want to stop. If two ways are
>> connected to each other, but
>> not to any other road, should they be routable? Three, four... ?
>
> You never can be perfect. For me a simple test would be sufficient.
>
> way.is_connected()
> {
>    For each node of way{
>      if node is member of another highway return "yes"

This is the problem. At the point where the style functions are 
evaluated the information if a node is a member of another road is not 
available. This is evaluated later.

>    }
>    return "no"
> }
>
> Chris
>



More information about the mkgmap-dev mailing list