logo separator

[mkgmap-dev] Styling for the power user: filtering contour lines

From David david.tlp at orange.fr on Fri Aug 7 21:33:58 BST 2009

To Christian Gawron

Thank you for your tip. I will try to use it for the next release of  
my map.

David

> Hi Daniel,
>
> you can use regular expressions to filter contour lines by elevation  
> - here is what I do in my style file:
>
> # Contours take their name from the elevation setting.
> # multiples of 200m
> contour=elevation & ele ~ '\d*[02468]00'
>   { name '${ele|conv:m=>ft}'; }
>   [0x22 resolution 18]
> # multiples of 50m
> contour=elevation & ele ~ '\d+[05]0'
>   { name '${ele|conv:m=>ft}'; }
>   [0x21 resolution 21]
> contour=elevation
>   { name '${ele|conv:m=>ft}'; }
>   [0x20 resolution 23]
>
> You could use '\d+[27]5' for your purpose.
>
> Best wishes
> Christian






More information about the mkgmap-dev mailing list