<html xmlns:v="urn:schemas-microsoft-com:vml" 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=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@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;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:608316353;
mso-list-type:hybrid;
mso-list-template-ids:1502636844 336134145 336134147 336134149 336134145 336134147 336134149 336134145 336134147 336134149;}
@list l0:level1
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:18.0pt;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:54.0pt;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:90.0pt;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:126.0pt;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:162.0pt;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:198.0pt;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:234.0pt;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:270.0pt;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:306.0pt;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l1
{mso-list-id:1033575798;
mso-list-type:hybrid;
mso-list-template-ids:58999488 336134145 336134147 336134149 336134145 336134147 336134149 336134145 336134147 336134149;}
@list l1:level1
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:18.0pt;
text-indent:-18.0pt;
font-family:Symbol;}
@list l1:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:54.0pt;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l1:level3
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:90.0pt;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l1:level4
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:126.0pt;
text-indent:-18.0pt;
font-family:Symbol;}
@list l1:level5
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:162.0pt;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l1:level6
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:198.0pt;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l1:level7
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:234.0pt;
text-indent:-18.0pt;
font-family:Symbol;}
@list l1:level8
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:270.0pt;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l1:level9
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:306.0pt;
text-indent:-18.0pt;
font-family:Wingdings;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-NZ link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Stacho<o:p></o:p></p><p class=MsoNormal>I’ve had a wee play with colour graduation lookup feature, at least as far as altitudes go.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>First thing I noticed is that it does not work if the lookup is defined inside a layout.<o:p></o:p></p><p class=MsoNormal> … LayoutMapThisCave.thc [89] -- unknown option -- lookup altitude -title "Altitude legend"<o:p></o:p></p><p class=MsoNormal>But if I put it outside of the layout (effectively, even if not actually), inside the thconfig file (like a ‘text’ definition, it works just fine for altitudes.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>It feels to me like it should be inside a layout, to be consistent, but perhaps you have a reason? Perhaps it does not matter.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The framework seems to be very flexible, allowing many pre defined lookup definitions, and works well for altitudes. I like it.<o:p></o:p></p><p class=MsoNormal>If you are happy for me to do so, I will tidy up the wiki entry that I made on this topic earlier today.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><ul style='margin-top:0cm' type=disc><li class=MsoListParagraph style='margin-left:-18.0pt;mso-list:l1 level1 lfo2'>As below, it seems that if an altitude range is defined, then a single altitude in the list will break the default text that Therion puts in the colour legend. I was attempting to get Therion to produce a constant colour over altitude ranges, and interpolate colours between those ranges. As below, I found that it does not work that way.<o:p></o:p></li></ul><p class=MsoNormal style='margin-left:36.0pt'>lookup altitude:banded -title "Altitude legend (banded)"<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'> [105 150][] "top level"<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'> 90 <o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'> 75<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'> [30 60] [] "lower level"<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>endlookup<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>It produces the legend below, and a map that is only partially coloured. The default legend item texts are incorrect.<o:p></o:p></p><p class=MsoNormal><img width=236 height=182 style='width:2.4583in;height:1.8958in' id="Picture_x0020_1" src="cid:image001.png@01D38734.DA3D5CA0"><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><ul style='margin-top:0cm' type=disc><li class=MsoListParagraph style='margin-left:-18.0pt;mso-list:l0 level1 lfo1'>Adding colours to the top and bottom improves things a little.<o:p></o:p></li></ul><p class=MsoNormal style='margin-left:72.0pt'>lookup altitude:banded -title "Altitude legend (banded)"<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'> [105 150][100 0 0] "top level"<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'> 90 <o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'> 75<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'> [30 60] [0 0 100] "lower level"<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>endlookup<o:p></o:p></p><p class=MsoNormal>The colour graduation is correct, but the map produced only colours the scraps that are within the ‘top level’ and ‘lower level’ altitude range. The others (60m to 105m) are uncoloured.<o:p></o:p></p><p class=MsoNormal><img width=227 height=194 style='width:2.3645in;height:2.0208in' id="Picture_x0020_2" src="cid:image002.png@01D38735.CB7204E0"><o:p></o:p></p><ul style='margin-top:0cm' type=disc><li class=MsoListParagraph style='margin-left:-18.0pt;mso-list:l0 level1 lfo1'>Adding colours to all altitudes does not improve things much.<o:p></o:p></li></ul><p class=MsoNormal style='margin-left:72.0pt'>lookup altitude:banded -title "Altitude legend (banded)"<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'> [105 150][100 0 0] "top level"<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'> 90 [50 0 0]<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'> 75 [0 0 50]<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'> [30 60] [0 0 100] "lower level"<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>endlookup<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The map is still uncoloured in the middle altitudes (60m to 105m).<o:p></o:p></p><p class=MsoNormal><img width=234 height=202 style='width:2.4375in;height:2.1041in' id="Picture_x0020_3" src="cid:image005.jpg@01D3873F.FB285450"><o:p></o:p></p><ul style='margin-top:0cm' type=disc><li class=MsoListParagraph style='margin-left:-18.0pt;mso-list:l0 level1 lfo1'>If I leave out the 90 and 75, the result is similar, again with uncoloured scraps in the central altitude range.<o:p></o:p></li></ul><p class=MsoNormal><img width=214 height=117 style='width:2.2291in;height:1.2187in' id="Picture_x0020_4" src="cid:image007.jpg@01D3873F.FB285450"><o:p></o:p></p><p class=MsoNormal><img width=406 height=358 style='width:4.2291in;height:3.7291in' id="Picture_x0020_7" src="cid:image013.png@01D3873C.1A16B680"><o:p></o:p></p><ul style='margin-top:0cm' type=disc><li class=MsoListParagraph style='margin-left:-18.0pt;mso-list:l0 level1 lfo1'>Just to be sure, I attempted three bands.<o:p></o:p></li></ul><p class=MsoNormal style='margin-left:72.0pt'>lookup altitude:banded -title "Altitude legend (banded)"<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'> [105 150][100 0 0] "top level"<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'> [60 105] [] "middle level"<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'> [30 60] [0 0 100] "lower level"<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>endlookup<o:p></o:p></p><p class=MsoNormal>This worked perfectly, colouring all scraps according to their altitude band.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><img width=245 height=166 style='width:2.552in;height:1.7291in' id="Picture_x0020_5" src="cid:image010.jpg@01D3873F.FB285450"><o:p></o:p></p><ul style='margin-top:0cm' type=disc><li class=MsoListParagraph style='margin-left:-18.0pt;mso-list:l0 level1 lfo1'>And just to finish up, I removed the text overrides.<o:p></o:p></li></ul><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-left:36.0pt'>lookup altitude:banded -title "Altitude legend (banded)"<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'> [105 150][100 0 0] <o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'> [60 105] []<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'> [30 60] [0 0 100] <o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>Endlookup<o:p></o:p></p><p class=MsoNormal>Again, perfect! The default text is OK this time.<o:p></o:p></p><p class=MsoNormal><img width=214 height=148 style='width:2.2291in;height:1.5416in' id="Picture_x0020_6" src="cid:image012.png@01D38739.AAA5E200"><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Maybe tomorrow I’ll see if I can break dates, maps and scraps!<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Regards<o:p></o:p></p><p class=MsoNormal>Bruce<o:p></o:p></p></div></body></html>