<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang=DE link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span lang=EN-GB>It took a while to find some time to test that, sorry.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>After finding documentation of style and colour in cgpsmapper manual I tried this:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>seamark:type=separation_boundary {add mkgmap:xt-style=0x0105} [0x1060a resolution 22]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>This produced a dotted magenta line which is exactly what I wanted.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>I did not find any documentation for function of bytes in raw hex string, so I still cannot apply this method. I would also like to pass things like “depth” and “depth units” to area type 0x103xx and “depth flag attribute” to obstruction points.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>But being able to control line style and colour is already a big step forward. Thanks for your help.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal style='border:none;padding:0cm'><b><span lang=EN-GB>Von: </span></b><span lang=EN-GB><a href="mailto:rwb-mkgmap@jagit.co.uk">Ticker Berkin</a><br><b>Gesendet: </b>Freitag, 9. Dezember 2016 10:31<br><b>An: </b><a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br><b>Betreff: </b>Re: [mkgmap-dev] Attributes<o:p></o:p></span></p></div><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>Looking at the code/comment (I have no expertise whatsoever in these<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>extended attributes):<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>Try mkgmap:xt-style to set line attributes (style and colour).<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>mkgmap:xt-colour takes a colour name and looks as if it is only<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>applicable to buoys.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>you can also supply a raw byte string as hex characters and it<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>overwrites all other attributes eg:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>mkgmap:xt-extra-bytes="32a01f3d"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>> To draw some traffic separation lines I tried:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>> seamark:type=separation_boundary {add mkgmap:xt-colour=0x05} [0x1060a<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>> resolution 22]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>> seamark:type=separation_lane {add mkgmap:xt-colour=0x05} [0x10602<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>> resolution 22]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>> Those lines should be magenta. So I need to set colour attribute to<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>> 0x05. But it does not work. Lines are still black.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>> Marine line types 0x10600 – 0x10611 should support colour attributes<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>> as well as style attributes. Does anyone know how to set them for my<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>> example?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>_______________________________________________<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>mkgmap-dev mailing list<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>mkgmap-dev@lists.mkgmap.org.uk<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p></div></body></html>