Re: [Therion] Point altitude/deph, Help !
Hi all, I think I have found a trick. The other Xavier led me to the right tracks, thanks a lot ! Finally, this is quite simple with the point altitude, and no need to change anything inside the : - If we use the point altitude only with the option -align, we get the altitude - If we use the point altitude with the options -align and -value [-1004 m] where 1004 is the altitude of the main entrance, we print the depth only for that point (Do not forget the " - " before the altitude of the main entrance), and thus, we do not erase the classic point altitude. The only (small) limits are : * If the main entrance changes, we need to manually update ALL the points that print the depth. But that should not be be everyday, and not a big issue to do that. * the symbology of the two points is the same. I will have a look for a way to modify that and let you know if I find a trick (If I copy the code of the point Altitude, and call it p_u_depth(expr pos, R, S, A), it crashes...). Cheers, Xav
If you use editor with multi-file search ability, it is only one operation over all data set. Martin S.
14. 3. 2019 v 17:38, Xavier Robert via Therion <therion@speleo.sk>:
If the main entrance changes, we need to manually update ALL the points that print the depth. But that should not be be everyday, and not a big issue to do that.
Hi guys, I’m digging this topic since I’m running in a similar issue. Would that be possible to have for the points with the option “altitude" something like : 640 [-30], where 640 would be the altitude and -30 the depth ? Thanks, Phil
On 14 Mar 2019, at 17:38, Xavier Robert via Therion <therion@speleo.sk> wrote:
Hi all,
I think I have found a trick. The other Xavier led me to the right tracks, thanks a lot !
Finally, this is quite simple with the point altitude, and no need to change anything inside the : - If we use the point altitude only with the option -align, we get the altitude - If we use the point altitude with the options -align and -value [-1004 m] where 1004 is the altitude of the main entrance, we print the depth only for that point (Do not forget the "-" before the altitude of the main entrance), and thus, we do not erase the classic point altitude.
The only (small) limits are : If the main entrance changes, we need to manually update ALL the points that print the depth. But that should not be be everyday, and not a big issue to do that. the symbology of the two points is the same. I will have a look for a way to modify that and let you know if I find a trick (If I copy the code of the point Altitude, and call it p_u_depth(expr pos, R, S, A), it crashes...).
Cheers,
Xav
_______________________________________________ Therion mailing list Therion@speleo.sk https://mailman.speleo.sk/listinfo/therion
On 28/06/2022 10:04, Philippe Vernant wrote:
Hi guys,
I’m digging this topic since I’m running in a similar issue. Would that be possible to have for the points with the option “altitude" something like : 640 [-30], where 640 would be the altitude and -30 the depth ?
You could use two different types of label, positioned at the same place, with one -align left and one -align right. These are the existing labels: altitude, date, height, label, passage-height, remark, stationname altitude: General altitude label. All altitudes are exported as a difference against grid Z origin (which is 0 by default). To display altitude on the passage wall, use altitude option for any line point of the passage wall. So you set the grid origin to whatever height you want as the reference, and you get the depth shown by the labels. height: Height of formations inside of the passage (like pit etc.) label: generic label passage-height: Height of the passage (floor to ceiling) remark: general comment Of those, you could maybe consider abusing height for your purpose. Put the altitude as the height above sea level, and the "height" as the depth below the entrance. Alternatively, you could consider creating a custom p_u_depth that does whatever kind of label you wanted. I have demo code for how to create labels in your own metapost: https://therion.speleo.sk/wiki/metapost#adding_custom_styled_labels_at_any_p...
Thanks Tarquin, I will definitely have a look at your demo code. Phil
On 28 Jun 2022, at 11:32, Tarquin Wilton-Jones via Therion <therion@speleo.sk> wrote:
On 28/06/2022 10:04, Philippe Vernant wrote:
Hi guys,
I’m digging this topic since I’m running in a similar issue. Would that be possible to have for the points with the option “altitude" something like : 640 [-30], where 640 would be the altitude and -30 the depth ?
You could use two different types of label, positioned at the same place, with one -align left and one -align right.
These are the existing labels:
altitude, date, height, label, passage-height, remark, stationname
altitude:
General altitude label. All altitudes are exported as a difference against grid Z origin (which is 0 by default). To display altitude on the passage wall, use altitude option for any line point of the passage wall.
So you set the grid origin to whatever height you want as the reference, and you get the depth shown by the labels.
height:
Height of formations inside of the passage (like pit etc.)
label:
generic label
passage-height:
Height of the passage (floor to ceiling)
remark:
general comment
Of those, you could maybe consider abusing height for your purpose. Put the altitude as the height above sea level, and the "height" as the depth below the entrance.
Alternatively, you could consider creating a custom p_u_depth that does whatever kind of label you wanted. I have demo code for how to create labels in your own metapost: https://therion.speleo.sk/wiki/metapost#adding_custom_styled_labels_at_any_p... _______________________________________________ Therion mailing list Therion@speleo.sk https://mailman.speleo.sk/listinfo/therion
participants (4)
-
Martin Sluka -
Philippe Vernant -
Tarquin Wilton-Jones -
Xavier Robert