logo separator

[mkgmap-dev] Poiisble bug with ~ and numbers

From Gerd Petermann gpetermann_muenchen at hotmail.com on Fri Jul 10 08:43:57 BST 2020

Hi Nick,

'1*.' means 0 or more '1' at the beginning. You probably want something like '^1.*'  (string starting with 1 followed by 0 or more other characters)

Gerd

________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Pinns UK <osm at pinns.co.uk>
Gesendet: Freitag, 10. Juli 2020 09:26
An: mkgmap-dev at lists.mkgmap.org.uk
Betreff: [mkgmap-dev] Poiisble bug with ~ and numbers

Hi All

  I'm trying to assign an icon to platform numbers in my TYP file - my
Fenix doesn't show highway:symbols

This works fine if platforms are labelled 1,2,3 etc

To avoid too many icons I want to reduce 1a,1b to 1  and 2a,2b to 2 etc
using

ref ~'1*.'  [0x etc]

ref ~'2*.' [0x etc]

This works for stations with number+letter platforms (ie Norwich)

However, where stations are just numbers without letters, all
platforms(ie 1,2,3,4) are labelled 1 depending on the order of my ref ~ ie

if ref ~'1*.' is the first line in my code all platforms are labbelled 1
   if ref ~'2*.' is the first line in my code a;; of them are labelled 2

It seems ~ may not work as expected with numbers , or my code is wrong.

Any ideas?

Nick


_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


More information about the mkgmap-dev mailing list