<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hi Alister,</div>

<div> </div>

<div>not sure if that helps -just cross read mails- but if the labels are outside the grid and simply cut off u could try to extend the grid. For extended eleve it workes something alnong those lines:</div>

<div> </div>

<div>#metapost and tex changes to extend elevation gridlines and place altitude labels above grey gridline<br/>
#works only for exteded elevation<br/>
 <br/>
#make gridline continuos and longer on the ends   <br/>
   code metapost    <br/>
    def s_vgrid (expr xpos, ypos, xsize, ysize) =<br/>
    pickup PenD;<br/>
    draw<br/>
      (if xpos < 0: -22 else: -xsize/2 fi, 0) %-22 extends the grid to the left<br/>
       --<br/>
      (if xpos > 0: 24 else: xsize/2 fi, 0)    %24 extends grid to the right. %note that it is slightly longer to match the label-length<br/>
      withcolor 0.1black+0.7white;            %+0.7white makes the gridline grey instead of black<br/>
    enddef;<br/>
  endcode  <br/>
 <br/>
#change position of labels outside the mapbox and raise them ontop the grid<br/>
  code tex-map<br/>
    \def\gridcoord#1#2{\hbox to0pt{%<br/>
      \ifnum#1=3\hss\fi<br/>
      \ifnum#1=9\hss\fi<br/>
        \vbox to0pt{%<br/>
          \vss<br/>
          \kern-10pt%                           %places the label above the gridline<br/>
          \hbox {\kern2pt#2\kern0pt}                       %'#2' = altitude label<br/>
          \kern2pt%                             %shifts back to normal placement for following labels<br/>
        \vss<br/>
    }%<br/>
    <br/>
  \ifnum#1=1\hss\fi<br/>
  \ifnum#1=7\hss\fi<br/>
  }%<br/>
  }<br/>
  endcode</div>

<div>
<div> </div>

<div> </div>

<div>if I need coordinates I export an ESRI map and put it in Qgis as most ofthe time i then also want hill-contours, geo-maps, paths or whatnot on it as well.<br/>
Its not flawless, but it technically can render the map there by styling all the lines as wanted. Unfortunately its not flawless as eg. clip isnt working and I didnt get my head around to areas for the same reason...</div>

<div> 
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Samstag, 13. April 2024 um 12:40 Uhr<br/>
<b>Von:</b> "A Gott" <alastairgott@gmail.com><br/>
<b>An:</b> "List for Therion users" <therion@speleo.sk><br/>
<b>Betreff:</b> [Therion] Geographical Coordinates on grid</div>

<div name="quoted-content">
<div>
<div>
<div>
<div>
<div>
<div>
<div>HI Therion users,
<div> </div>

<div>I am really struggling to get coordinates to show on the edges of the Plan pdf when generated. There <i>has</i> to be something I'm missing! Does anyone have any examples where they have implemented coordinates on the border of the PDF so I can take a look?</div>

<div> </div>

<div>The two models I have tried this on are the Peak speedwell model in Castleton, Derbyshire, UK and also the Agua/Naciemiento Model in Tresviso, Cantabria/Asturias, Spain</div>
</div>
</div>
</div>
</div>
</div>
</div>

<div>
<div>
<div>
<div>
<div>
<div>
<div> </div>

<div>I really would like to see it on the Peak speedwell model and now realise we tried it on the Agua model but decided against it due to deadlines. We set a deadline for this one, but including the coordinates are a must!</div>

<div> </div>

<div>Peak speedwell - <a href="https://www.cave-registry.org.uk/svn/PeakDistrict/Castleton/castleton_model_thconfig" target="_blank">cave-registry.org.uk/svn/PeakDistrict/Castleton/castleton_model_thconfig</a></div>

<div> </div>

<div>The things I've tried to include in the above which I hoped would help the <font color="#000000">coordinates to generate, at one point I did get the coordinates to generate only on the west side of the pdf, but now it's failing to show anywhere:</font></div>

<div>
<pre> </pre>

<div style="text-align: center;"><span style="color: rgb(0,0,0);font-family: Arial , Helvetica , sans-serif;">page-setup 118.9 84.1 114.9 80.1 1.5 1.5 cm</span></div>

<div style="text-align: center;"><font color="#000000"><span style="font-family: Arial , Helvetica , sans-serif;">overlap 3 cm</span></font></div>

<div style="text-align: center;"><font color="#000000"><span style="font-family: Arial , Helvetica , sans-serif;">#size 110 75 cm</span></font></div>

<div style="text-align: center;"><font color="#000000"><span style="font-family: Arial , Helvetica , sans-serif;">size 105 75 cm</span></font></div>
</div>

<div>
<pre> </pre>

<div style="text-align: center;"><span style="color: rgb(0,0,0);font-family: Arial , Helvetica , sans-serif;">grid bottom</span></div>

<div style="text-align: center;"><font color="#000000"><span style="font-family: Arial , Helvetica , sans-serif;">grid-coords border</span></font></div>

<div style="text-align: center;"><font color="#000000"><span style="font-family: Arial , Helvetica , sans-serif;">grid-size 250 250 250 m</span></font></div>

<div style="text-align: center;"><font color="#000000"><span style="font-family: Arial , Helvetica , sans-serif;">cs OSGB:SK</span></font></div>

<div style="text-align: center;"><font color="#000000"><span style="font-family: Arial , Helvetica , sans-serif;">grid-origin 14865.01 82575.16 193.75 m</span></font></div>

<pre><font color="#000000" face="arial, sans-serif">I also tried implementing the full grid, in the hope that this would help, but also didn't.</font></pre>

<pre> </pre>

<pre> </pre>

<div style="text-align: center;"><span style="color: rgb(0,0,0);font-family: Arial , Helvetica , sans-serif;">layout custom_grid</span></div>

<div style="text-align: center;"><font color="#000000"><span style="font-family: Arial , Helvetica , sans-serif;">##change default </span>cross hair<span style="font-family: Arial , Helvetica , sans-serif;"> grid to grid</span></font></div>

<div style="text-align: center;"><font color="#000000"><span style="font-family: Arial , Helvetica , sans-serif;">code metapost</span></font></div>

<div style="text-align: center;"><font color="#000000"><span style="font-family: Arial , Helvetica , sans-serif;">def s_hgrid (expr xpos, ypos, xsize, ysize) =</span></font></div>

<div style="text-align: center;"><font color="#000000"><span style="font-family: Arial , Helvetica , sans-serif;">pickup PenD;</span></font></div>

<div style="text-align: center;"><font color="#000000"><span style="font-family: Arial , Helvetica , sans-serif;">if ( xpos >= -xsize ) and ( ypos >= -ysize ):</span></font></div>

<div style="text-align: center;"><font color="#000000"><span style="font-family: Arial , Helvetica , sans-serif;">draw ( -xsize/2, 0) -- ( xsize/2, 0);</span></font></div>

<div style="text-align: center;"><font color="#000000"><span style="font-family: Arial , Helvetica , sans-serif;">draw ( 0, -ysize/2) -- ( 0, ysize/2);</span></font></div>

<div style="text-align: center;"><font color="#000000">fi</font></div>

<div style="text-align: center;"><font color="#000000">enddef<span style="font-family: Arial , Helvetica , sans-serif;">;</span></font></div>

<div style="text-align: center;"><font color="#000000">endcode</font></div>

<div style="text-align: center;"><font color="#000000">endlayout</font></div>

<pre style="text-align: center;"> </pre>
</div>

<div><font color="#000000">Fo</font>r Ref, the Tresviso model, but we wiped any reference to including a grid on this one. <a href="https://cave-registry.org.uk/svn/Andara/Tresviso/Nacimiento/therion/Nacimiento2020/Nacimiento2020_master.thconfig" target="_blank">cave-registry.org.uk/svn/Andara/Tresviso/Nacimiento/therion/Nacimiento2020/Nacimiento2020_master.thconfig</a></div>

<div> </div>

<div>Regards,</div>

<div>Alastair Gott.</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
_______________________________________________ Therion mailing list Therion@speleo.sk <a href="https://mailman.speleo.sk/listinfo/therion" target="_blank">https://mailman.speleo.sk/listinfo/therion</a></div>
</div>
</div>
</div></div></body></html>