logo separator

[mkgmap-dev] Relations

From Thorsten Kukuk kukuk at suse.de on Fri Jan 18 06:02:01 GMT 2013

On Thu, Jan 17, --enrico wrote:

> In the “relations” file I have this code:
> 
> type=route & route=* { 
>     apply { 
>         set route='${route}';
>         set route_name='${name}';
>         set route_ref='${ref}'
>     }
> }
> 
> to extract name and ref of the route relation.
> The problem is: when it found more than one route relation on the same highway. This code extract only the route relation with the highest id...
> How can I change this code to extract ALL the route relation into one route_name? Is it possible?

Use
set route_ref='$(route_ref),${ref}' | '${ref}';

instead and so on ...

-- 
Thorsten Kukuk, Project Manager/Release Manager SLES
SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)


More information about the mkgmap-dev mailing list