logo separator

[mkgmap-dev] tag test "start with"

From Ben benedikt at cortado.de on Wed Nov 25 12:21:41 GMT 2009

Hi mkgmap gurus,

Im currently trying to convert some POI lists into img format with mkgmap.
Depending on the first character of the POI name, different actions 
should be performed.

I tried the following:
name=T* {name '${name}'} [0x0101 level 4]
name=M* {name '${name}'} [0x0102 level 4]
name=E* {name '${name}'} [0x0103 level 4]
what results in the error message
"Error in style: Error: (points:1): Stack size is 2
Could not open style null"

As far as I understand the syntax, I can only test tags for equality, 
not if they contain certain strings.

Does anyone have a good idea idea for how to achieve the desired 
differentiation?


Thanks,
Ben




More information about the mkgmap-dev mailing list