
Hi Steve, good to see that you are back :-) Interesting for me: TypViewer 0.4.22 doesn't like that comment as well. I also found that the mkgmap typ compiler produces a result for the typ files in https://github.com/berndw1960/aiostyles that TypViewer doesn't like. So I leave these problems to you ;-) Gerd Steve Ratcliffe wrote
Hi Gerd
Maybe this is to simple, for example, you will not be able to use Strings containing a semicolon. Could this be the reason why Steve coded it more complex?
The Xpm file part is tricky because semicolons and spaces are sometimes significant.
You need to be able to handle something like this.
[_polygon] Type=0x14 Xpm="32 2 4 1" "; c #7BCA6A" "# c #7B956A" "3 c #BDCA8B" "4 c #BDCA8B" ";;;;;;;;;;;;###;;;;;;;;;;;;;;;;;" ";;;;;;;;;;;#;;##;;;;;;;;;;;;;;;;"
So I think that using setCommentChar() is out. But checking for comments only at the beginning of the line would be OK I think. Probably at the end too if it doesn't already.
..Steve _______________________________________________ mkgmap-dev mailing list
mkgmap-dev@.org
-- View this message in context: http://gis.19327.n5.nabble.com/problem-with-TYP-compilation-tp5756635p575733... Sent from the Mkgmap Development mailing list archive at Nabble.com.