<div dir="ltr">I think, the idea with variables containing coordinate extents and modification of layout should do the job. I will try to implement it, in the next snapshot.<div><br></div><div>And here is the layout code for your north arrow:</div>

<div><br></div><div><div>def s_northarrow (expr rot) =<br></div><div>  T:=identity;</div><div>  picture tmp_pic;</div><div>  tmp_pic = image (</div><div>    begingroup</div><div>      interim defaultscale:=3;</div><div>      label.top("N", origin shifted (0,2.2cm));</div>

<div>    endgroup;</div><div>    thdraw (-.4cm,.4cm)--(0,2cm)--(.4cm,.4cm)--(2cm,0cm)--(.4cm,-.4cm)--(0,-2cm)--(-.4cm,-.4cm)--(-2cm,0)--cycle;</div><div>    thfill (-.4cm,.4cm)--(0,2cm)--(0,0)--cycle;</div><div>    thfill (.4cm,-.4cm)--(0,-2cm)--(0,0)--cycle;</div>

<div>    thfill (.4cm,.4cm)--(2cm,0)--(0,0)--cycle;</div><div>    thfill (-.4cm,-.4cm)--(-2cm,0)--(0,0)--cycle;</div><div>  );</div><div>  draw tmp_pic scaled 0.5 rotatedaround(origin, -rot);</div><div>enddef;</div><div>
<br>
</div><div><br></div><div>S.</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 3 April 2014 21:19, Bruce <span dir="ltr"><<a href="mailto:bruce@tomo.co.nz" target="_blank">bruce@tomo.co.nz</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Torsten<br>
If indeed the 'cave' you have entered has a depth range between -15m and<br>
-20m, then I would expect the depth to be reported as (+)5m.  (I presume<br>
this is a sea cave, with altitudes below sea level - but it would also be OK<br>
if you are using an arbitrary altitude datum).<br>
<br>
Same as a dry cave that starts at 100m and descends to 95m.  It's depth<br>
would be reported as (+)5m, not 100m.<br>
<br>
Maybe the solution for you is to add altitude points to the wall near each<br>
end, so that the altitudes are plotted directly on the map.<br>
<br>
Or you could add a (manual) map-comment to the header "maximum depth: 20m"<br>
<br>
Another idea, therion may store variables that define the maximum coordinate<br>
range.  If so, then it would simply be a matter of a small metapost to<br>
report the minimum altitude.  Stacho? Martin?<br>
<br>
Bruce<br>
<div><div class="h5"><br>
-----Original Message-----<br>
From: <a href="mailto:therion-bounces@speleo.sk">therion-bounces@speleo.sk</a> [mailto:<a href="mailto:therion-bounces@speleo.sk">therion-bounces@speleo.sk</a>] On Behalf<br>
Of Torsten Schnitter<br>
Sent: Friday, 4 April 2014 2:28 a.m.<br>
To: <a href="mailto:therion@speleo.sk">therion@speleo.sk</a><br>
Subject: [Therion] Question about "\cavedepth" and Northarrow<br>
<br>
Hi all<br>
<br>
I'm wondering a bit about the results from the variable \cavedepth.<br>
May be it's not correct this way or I do have a different understanding and<br>
someone can explain to me why it is this way.<br>
<br>
I'm drawing a map (with scraps, points, walls etc) containing just a<br>
sidepassage<br>
of the entire cavesystem.<br>
Concerining the survey data I'm using "data diving ..." within centerline.<br>
<br>
The result from \cavedepth is now the maximum difference between the<br>
shallowest<br>
and deepest point of that part of the cave.<br>
E.g.: If I have surveypoints in this part of the cave from -15m to -20m the<br>
result in the header using \cavedepth is -5m.<br>
What I did expect to get from \cavedepth was the maximum depth of this part<br>
of<br>
the cave, so -20m.<br>
Because this is the relevant info to cavedivers.<br>
<br>
Is there any way to get this result without using the override from<br>
\cavedepth?<br>
I would like to use the automatic calculation of course but also want to get<br>
the<br>
maximum depth under water.<br>
<br>
2nd question:<br>
I would like to use a northarrow as you can see in the attached file.<br>
Does anyone have some code for that?<br>
<br>
Thanks for your help.<br>
<br>
cheers,<br>
Torsten<br>
<br>
</div></div>_______________________________________________<br>
Therion mailing list<br>
<a href="mailto:Therion@speleo.sk">Therion@speleo.sk</a><br>
<a href="http://mailman.speleo.sk/mailman/listinfo/therion" target="_blank">http://mailman.speleo.sk/mailman/listinfo/therion</a><br>
</blockquote></div><br></div>