Re: [Therion] Metapost for sump/syphon hazard symbol

2024-04-13 Thread Benedikt Hallinger
Hello,just a random comment from me;but wouldn‘t it be important that map readers clearly see „danger“?I am using a sinple warning sign everywhere and clarify using text.So even non-cavers or people not familiar with specific map symbols are clearly pointed at „watch out!“.The droplet proposed here, for example would not indicate to me that there is imminent danger. I would probably not even look it up in the legend because my brain thinks „not relevant - looks like something special to hydrologists“.Am 13.04.2024 um 09:15 schrieb Martin Sluka via Therion :It is very simple conversion which don’t use Metapost’s options. Odesláno z iPhonu13. 4. 2024 v 8:49, Henry Bennett :if you could get the image into postscript then, you could use http://www.pstoedit.net/ to convert to Metapost.You should be able to get EPS by printing to a Postscript printer and then choosing print to file.HenryOn Sat, Apr 13, 2024 at 4:20 AM Bruce Mutton  wrote:HelloI’m looking for a Therion map symbol to emphasize the hazard posed by a localised low roof in passages (typically 2m to 5m in diameter) that are usually inaccessible due to water, but in dry conditions appear innocuous to the unwary.  Currently I’m using an empty placeholder symbol, point u:sumphazard, but want to upgrade! I’ve been using the SBE point danger symbol to identify hazards such as zones of active passage collapse.One approach for sumping hazard would be to use the same symbol, and change the colour to blue, but I would like the distinction to be available for black and white outputs as well as colour outputs. Since I’m not very good at metapost, I’m looking to see if anyone has anything they’d be willing to share, or perhaps write! What I have in mind is something like an exclamation mark over top of some water squiggles.  Maybe like one of these? The links behind the images below might have some useful elements.  Thanks in advance.Bruce___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___Therion mailing listTherion@speleo.skhttps://mailman.speleo.sk/listinfo/therion___Therion mailing listTherion@speleo.skhttps://mailman.speleo.sk/listinfo/therion___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Invalid length reading error reported due to (valid) scrap definition

2023-08-07 Thread Benedikt Hallinger
Hm, I'm not sure this will not trigger alot of false positives in some 
of my projects, where structure is heavily divided into smaller files 
which are inputted to form a whole complete.


But I want to second you: the error message shown is very not-intuitive 
to find the root cause.
So maybe we should add some syntax sanity checks to the overall 
strcture. When an encenterline is missing somewhere, this is some sort 
of unbalanced braces problem like in a C compiler; so mabye therion 
should output at the end that there is unbalanced 
centerline/endcenterline numbers (or all other such structures, in this 
regard) in the input data.



Am 2023-08-07 7:38, schrieb Bruce Mutton:

OK, found it.  It was as I suspected a missing endcentreline in the
file called by an input statement immediately preceding the statement
'input 11-DeerPlan.th2'.

So my mistake, I did not check as well as I thought I had.

I wonder if Therion could check for endcentreline statements (where
they might normally be expected) and if not found by the end of a
file, then issue a warning "missing endcentreline in file xxx.th".

Thanks

Bruce

From: Therion  On Behalf Of Bruce Mutton
Sent: Monday, 7 August 2023 15:36
To: 'List for Therion users' 
Subject: [Therion] Invalid length reading error reported due to
(valid) scrap definition

Hello

I have a perplexing error, this time around after a complicated git
merge, and I have had similar on one occasion a while back.

I think I resolved by omitting the file, which is not really a
resolution.  This time I need a better solution!

On compiling a thconfig I get an error:

C:\Program Files (x86)\Therion\therion.exe: error -- 11-DeerPlan.th2
[8] -- invalid length reading -- -projection

The start of file 11-DeerPlan.th2 is like this:

encoding  utf-8

##XTHERION## xth_me_area_adjust -160.83 -127.28 965.01 763.65

##XTHERION## xth_me_area_zoom_to 200

##XTHERION## xth_me_image_insert {502.386220472 1 1.0} {626.342677165
11.8} ptopoDeer/11-Deer_p.xvi 0 {}

scrap 11-DeerPlan-s1 -projection plan -station-names []@11 -author
2023.02.26 "B Mutton" -copyright 2023 NZSS -scale [0 0 787.4 787.4 0 0
10 10 m]

point 10.25 711.5 label -text "Deer Pot" -align l -scale xl

point 186.25 712.5 anchor -align r

This is a well established scrap in a well established file in a well
established project and both of the parent branches compiled without
issue through many editing and versioning iterations.  Comparison with
both of the parent git branches do not suggest any changes that should
trigger such an error - at least I have not found it yet.

I have checked this file and all calling it for closed blocks (scrap
endscrap, map endmap, centreline endcentreline, survey end survey etc)
because long ago Therion used to complain in a similar manner if such
blocks were not closed (reporting survey data type error due to a
drawing file error - illogical).

Since this is the second time in a month I've experienced this type of
'illogical' error after nothing like it for years, I'm wondering if
anyone else has, or has a clue as to what might be happening?

Bruce

Using:

therion 6.1.8 (2023-06-14)

Windows 10 Home 22H2

GitHub desktop 3.2.7 (x64)

TortoiseGit 2.14.0
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] finding coordinates of specific station

2023-05-05 Thread Benedikt Hallinger
Another idea might be to export as .sql database, load that with sqlite 
("sqlite> .read cave.sql") and query the coordinates of the station.
See THBook, . 62 for details of the tables, but the stations table has 
xyz cooridnates to query.


That aproach can be easily automated via shell scripting, if needed in 
batch or repetive.



Am 2023-05-05 10:38, schrieb Tarquin Wilton-Jones via Therion:

Hi Ofir,


can I find the coordinates of a specific station?
for example:
having a survey with 10 stations,
station 6 has "fix" coordinates, and is the only station with
known coordinates.
i want to find the coordinates for station 2 & 8.
how?


1. Export a survex .3d file. Open it in Survex's "Aven" (the .3d
viewer). Hover any station, and the coordinates appear in the status 
bar

at the bottom of the window.

2. With Therion, if you label a station as an "entrance":

survey foo -title "mycave" -entrance 2
  centreline
station 2 "mycave main" entrance
station 8 "mycave secondary" entrance

Then when you export a cave-list, it can give you the coordinates of
that station:

export cave-list -surveys on -location on -o cavelist.html

There may be other approaches too.

Cheers,

Tarquin
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Problem with new default settings and recent proj changes

2022-04-26 Thread Benedikt Hallinger
Yes, seems excessive. Why ldap?

> Am 26.04.2022 um 14:40 schrieb Wookey :
> 
> On 2022-04-26 12:40 +0200, Benedikt Hallinger wrote:
>> Besides that, I cant compile due to missing deps.
>> Does someone already have info on what debian packages i need to install?
> 
> The list in
> https://sources.debian.org/src/therion/6.0.6-1/debian/control/ should
> be sufficient, unless some new dependency has been introduced by 6.06
> 
> Build-Depends: dpkg (>=1.16.2), debhelper, debhelper-compat (=13), perl (>= 
> 5.5), tcl,
>  libvtk9-dev, libwxgtk3.0-gtk3-dev, libfreetype6-dev, libjpeg-dev, libpng-dev,
>  pkg-config, texlive-base, libproj-dev, libsqlite3-tcl, python3,
>  libshp-dev, catch2, cmake, ninja-build, libfmt-dev
> Build-Depends-Indep: texlive-metapost, imagemagick, ghostscript
> 
> 
>> -L/usr/lib/x86_64-linux-gnu/mit-krb5 -lproj -lpthread -lstdc++ -lm -lsqlite3
>> -lm -ldl -lz -lpthread -ltiff -lwebp -lzstd -llzma -ljbig -ljpeg -ldeflate
>> -lz -lm -lcurl -lnghttp2 -lidn2 -lrtmp -lssh2 -lpsl -lssl -lcrypto -lssl
>> -lcrypto -lgssapi_krb5 -llber -lldap -llber -lzstd -lbrotlidec -lz -pthread
>> /usr/bin/ld: cannot find -lnghttp2: Datei oder Verzeichnis nicht gefunden
>> /usr/bin/ld: cannot find -lidn2: Datei oder Verzeichnis nicht gefunden
>> /usr/bin/ld: cannot find -lrtmp: Datei oder Verzeichnis nicht gefunden
>> /usr/bin/ld: cannot find -lssh2: Datei oder Verzeichnis nicht gefunden
>> /usr/bin/ld: cannot find -lpsl: Datei oder Verzeichnis nicht gefunden
>> /usr/bin/ld: cannot find -lgssapi_krb5: Datei oder Verzeichnis nicht
>> gefunden
>> /usr/bin/ld: cannot find -llber: Datei oder Verzeichnis nicht gefunden
>> /usr/bin/ld: cannot find -lldap: Datei oder Verzeichnis nicht gefunden
>> /usr/bin/ld: cannot find -llber: Datei oder Verzeichnis nicht gefunden
> 
> This does seem to be a pile of new dependencies:
> libnghttp2-dev, libidn2-dev, librtmp-dev, libssh2-1-dev, libpsl-dev, 
> libkrb5-dev, libldb-dev, lidldap-dev.
> 
> Put that lot in and it should build.
> 
> Is that all from libproj's online download facility? ssh, kerberos,
> ldap, real-time streaming? Seems excessive.
> 
> Wookey
> -- 
> Principal hats:  Debian, Wookware, ARM
> http://wookware.org/
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion


signature.asc
Description: Binary data
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Problem with new default settings and recent proj changes

2022-04-26 Thread Benedikt Hallinger

Besides that, I cant compile due to missing deps.
Does someone already have info on what debian packages i need to 
install?


g++ -DIMG_API_VERSION=1 -Wall -DTHLINUX -O2 -DPROJ_VER=9 -I/usr/include 
-Iextern -Iextern/shapelib -Iextern/fmt/include -std=c++14 -o ./therion 
therion-main.cxx  ./thdate.o ./extern/shapelib/shpopen.o 
./extern/shapelib/dbfopen.o ./extern/shapelib/safileio.o ./thbuffer.o 
./thmbuffer.o ./thlogfile.o ./thtmpdir.o ./thlocale.o ./thparse.o 
./thcmdline.o ./thconfig.o ./thinput.o ./thchenc.o ./thdatabase.o 
./thdataobject.o ./thdatareader.o ./thsurvey.o ./thendsurvey.o 
./thdata.o ./thperson.o ./thtf.o ./thtfangle.o ./thtflength.o 
./thtfpwf.o ./thdataleg.o ./thobjectname.o ./thinfnan.o ./thlayout.o 
./thlookup.o ./thcomment.o ./thinit.o ./thdb1d.o ./thsvxctrl.o 
./thdatastation.o ./thobjectid.o ./thobjectsrc.o ./thgrade.o 
./thlibrary.o ./thgeomag.o ./thbezier.o ./thexport.o ./thexporter.o 
./thselector.o ./extern/img.o ./thexpmodel.o ./thdb2d00.o ./thscrapis.o 
./thcs.o ./thcsdata.o ./thexptable.o ./thdb2d.o ./thscrap.o 
./thendscrap.o ./th2ddataobject.o ./thdb2dprj.o ./thdb2dpt.o 
./thdb2dlp.o ./thdb2dab.o ./thdb2dji.o ./thdb2dmi.o ./thdb2dcp.o 
./thdb2dxm.o ./thdb2dxs.o ./thscraplo.o ./thscraplp.o ./thscrapen.o 
./thpoint.o ./thline.o ./tharea.o ./thlegenddata.o ./thmpost.o 
./thsymbolsets.o ./thjoin.o ./thmap.o ./thexpmap.o ./thlayoutln.o 
./thlayoutclr.o ./thexpsys.o ./thexpuni.o ./thconvert.o ./thpdf.o 
./thpdfdbg.o ./thpdfdata.o ./thtexfonts.o ./thsymbolset.o ./thlang.o 
./thmapstat.o ./thexpdb.o ./thpic.o ./thsketch.o ./thproj.o 
./extern/lxMath.o ./extern/lxFile.o ./thdb3d.o ./thsurface.o 
./thimport.o ./thsvg.o ./thepsparse.o ./thtrans.o ./thwarpp.o 
./thwarppt.o ./thwarppme.o ./thwarp.o ./thexpshp.o ./thattr.o ./thtex.o 
./extern/poly2tri/common/shapes.o 
./extern/poly2tri/sweep/advancing_front.o 
./extern/poly2tri/sweep/sweep.o ./extern/poly2tri/sweep/cdt.o 
./extern/poly2tri/sweep/sweep_context.o ./extern/fmt/src/format.o 
./extern/fmt/src/os.o ./extern/quickhull/QuickHull.o ./therion.o -s 
-L/usr/lib/x86_64-linux-gnu/mit-krb5 -lproj -lpthread -lstdc++ -lm 
-lsqlite3 -lm -ldl -lz -lpthread -ltiff -lwebp -lzstd -llzma -ljbig 
-ljpeg -ldeflate -lz -lm -lcurl -lnghttp2 -lidn2 -lrtmp -lssh2 -lpsl 
-lssl -lcrypto -lssl -lcrypto -lgssapi_krb5 -llber -lldap -llber -lzstd 
-lbrotlidec -lz -pthread
/usr/bin/ld: cannot find -lnghttp2: Datei oder Verzeichnis nicht 
gefunden

/usr/bin/ld: cannot find -lidn2: Datei oder Verzeichnis nicht gefunden
/usr/bin/ld: cannot find -lrtmp: Datei oder Verzeichnis nicht gefunden
/usr/bin/ld: cannot find -lssh2: Datei oder Verzeichnis nicht gefunden
/usr/bin/ld: cannot find -lpsl: Datei oder Verzeichnis nicht gefunden
/usr/bin/ld: cannot find -lgssapi_krb5: Datei oder Verzeichnis nicht 
gefunden

/usr/bin/ld: cannot find -llber: Datei oder Verzeichnis nicht gefunden
/usr/bin/ld: cannot find -lldap: Datei oder Verzeichnis nicht gefunden
/usr/bin/ld: cannot find -llber: Datei oder Verzeichnis nicht gefunden
collect2: error: ld returned 1 exit status
make: *** [Makefile:186: therion] Fehler 1


Am 2022-04-26 11:45, schrieb Bruce Mutton:

Thanks Martin

14fac78 solved both the proj download related crash and the ~100 m
positional error for lat-long and NZTM fixed points.  I have attached
a cut down version of the therion.log file that was produced.

I am a little confused, as Therion automatically downloaded the grid
and yet my therion.ini does not have any of the proj-auto or
proj-missing-grid settings mentioned in the 14fac78 Therion Book pg
86-87, which raises for me many questions.  I assume the functionality
of those ini statements is now superseded by the proj.ini that is now
present in the install folders (as you described as "use the best
transformation and download the grids if needed") and that the Therion
Book is yet to be updated?

Or maybe I am not looking I the correct place for the ini files that
Therion is actually using?

Can Therion be run without having internet access (or without first
having had internet access for a particular survey dataset at some
previous time)?

In the attached file, do the transformations marked [no] and [yes]
relate to whether they are used or not?

And presumably the accuracies listed are the estimated accuracies?

Can I use proj-missing-grid to improve the accuracy of my example
further or is 4m accuracy the best I am likely to get for this
particular dataset?

Regards

Bruce

From: Therion  On Behalf Of Bruce Mutton
Sent: Monday, 25 April 2022 21:12
To: 'List for Therion users' 
Subject: [Therion] Problem with new default settings and recent proj
changes

Martin

Something bad happened between 6.0.0 and 6.0.5 that we only just
noticed today (because for day to day work we only compile small
sections of the cave).

Therion 6.05 has moved some of our fixed stations about 100 m north
(those specified with cs lat-long and cs EPSG:2193 NZTM) and others
(specified with cs EPSG:27200 NZMG) stayed in their 

Re: [Therion] Water areas produce heavy PDF files

2022-02-23 Thread Benedikt Hallinger

Let not forget muPDF which renders also pretty fast on linux.

Am 2022-02-23 13:16, schrieb Bill Gee:

I agree that Adobe Reader defines what it means to be "compatible".
However, for those of us running Linux Adobe Reader is not a viable
option.  I used to have an rpm file for a 32-bit Adobe Reader from
about 2008 or 2010.  Some library changes made it stop working.
Okular and poppler are part of the KDE project.  I found another
application called Master PDF Editor which also renders Therion maps
with reasonable speed.  There is a free version and it is available
for all of Windows, Linux and MacOS.
https://code-industry.net/masterpdfeditor/It is not as fast as
Adobe Reader, but much faster than Okular.


Bill Gee

On Wednesday, February 23, 2022 5:42:45 AM CST Martin Sluka via
Therion wrote:


Take care which library use each viewer. PDF generated from Therion

use group transparency knockout. Check wiki:
https://therion.speleo.sk/wiki/contrib:externalviewers







I don’t know Okular, but only correct viewer is Acrobat.







Martin S.







> 22. 2. 2022 v 19:29, Rodrigo Severo via Therion

:


>



> Yes, I am using Okular. Tried Firefox and FoxIt and they were

instantanious.


>



> Thanks for the tip Bill.



>



>



> Rodrigo



> ___



> Therion mailing list



> Therion@speleo.sk



> https://mailman.speleo.sk/listinfo/therion









___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Calculation of cave volume

2022-01-27 Thread Benedikt Hallinger
I'm not sure, but I somehow remember something about some script that 
did the caluclation.

Never run it so far, however.
And I don't remember the name.

Would be cool if such a function would be integrated in therion itself 
and printed to the log...
(maybe do both: just use LRUD data and another run by using the volumes 
calculated from the lox compiler)



Am 2022-01-27 15:21, schrieb Bill Gee:

Hi Enrico -

Just to see what this method would produce, I installed both Paraview
and MeshLab on my Fedora 35 system.  I opened a .lox file of the cave
in Loch (which displays a 3d rendering of the cave) and then exported
it to a .vtk file.  I opened the .vtk file in Paraview.  It shows
nothing.  I cannot find the export function.  The Save data feature
does not offer x3d as a file type.

In Paraview the Information tab says there are zero cells, zero points
and zero memory used.  The x-, y- and z-range are "not available".

The .vtk file exists and is about 16k bytes (it is a small cave).

Am I missing something?


Bill Gee


On Thursday, January 27, 2022 7:52:57 AM CST Enrico Fratnik wrote:

Hi Bill,

   normally I export the VTK model of the cave from LOCH then I open 
it

with ParaView
With ParaView I export the model in x3d format and I open it with 
MeshLab

where I use the filter "Surface Reconstruction: Screened Poisson" with
pre-clean option active
After that with the filter "Compute Geometric Measures" you can 
retrieve

the volume on the log view.

My big issue is which model is better to export with therion in order 
to
obtain an acceptable volume: the one with "-wall-source splays" or 
with

"-wall-source maps"?

Hope this helps

good caves to everyone

enrico

On Thu, Jan 27, 2022 at 1:37 PM Bill Gee  wrote:

> Hello everyone -
>
> Several years ago I made a map of a small cave.  Among the data that was
> calculated was an estimation of the volume of the cave.  I need to find
> that information again, but it has so far eluded me.  I thought it was in
> therion.log along with other statistics like length and bounding box
> dimensions, but now I do not find it there.  The estimation was based on
> solids calculated from centerline and LRUD data.
>
> I looked in thTMPDIR and found nothing useful.  I also checked to see if
> it comes from Aven or Loch.  Nothing there.  I looked through a KML file
> and found nothing.
>
> Can any of you point me in the right direction?  Believe it or not, I need
> to testify in court early next week about this.  It's a long story ...
>
> Thanks!
> 
> Bill Gee
>
>
>
>
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
>








___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Migovec Github survey data project

2021-12-19 Thread Benedikt Hallinger
Hi,
no specific info on the exact project, but generally you could open a issue 
ticket there and ask your very question. Each project may have its own rules.

But most commonly it works this way:
- you clone the repo at github (so its public)
- you make a new branch and do your stuff
- you then open a pull request against the upstream repo
- someone there inspects it and if it is accepted, will merge
- done

> Am 19.12.2021 um 00:43 schrieb Bruce Mutton :
> 
> 
> Not directly a Therion question.
> I’ve been loosely following the progress of 
> https://github.com/iccaving/migovec-survey-data a couple of years, but only 
> recently started migrating some projects of my own to git.
>  
> So thought I’d dispense with just admiring the outputs and fork the migovec 
> repository to do a deep dive learn from the apparent masters…
> The REDME.md is exemplary, but the section on ‘How to contribute’ seems to be 
> missing a most important thing – how do contributors interact with other 
> contributors and the repository?  The lack of issues and forks that similar 
> sized GitHub projects have suggests I’m missing something obvious.  I know 
> Therion pretty well, passible on version control but only just cutting my 
> teeth on git and GitHub.
>  
> I found a simple problem in some thconfigs that causes Therion to crash and 
> exit, and located the cause in the history.  I could potentially fix it, make 
> a pull request, but as I have only studied the migovec structure for 
> literally 10 minutes, any ‘fix’ I work on will take me a while and be bound 
> to be error prone.  Better for me just to point out the problem.
>  
> Anyone here know how the iccaving migovec Therion team communicates or would 
> one of them on this list be able to PM me?
>  
> Bruce
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Map offset: just specify offset in complex dataset (proposes new "offset" thconfig compiler command)

2021-12-18 Thread Benedikt Hallinger
Hi,
the more important question for me is, how (if?) i can select an entire survey 
structure(containing scraps, maps etc), and specify that i want a specific map 
to be offset. Your main conclusion was correct, i want to print all maps, 
without explicitely specifying them, and at the same time offset some maps 
thereof.
I want to „select all“, „offset 1234-map“ and optionally completely hide 
„456-map“ (or alternatively its survey)

> Am 18.12.2021 um 15:38 schrieb Stacho Mudrak :
> 
> 
> Hi Beni,
> 
> first, I am sorry for the late answer. 
> 
> Do I understand you correctly, that you want to mix "select survey" and 
> "unselect/offset particular map"? To be able to export all maps from a given 
> survey without the need of specification of the master map for this survey. 
> Am I right? 
> 
> Select survey and unselect survey seems to work for me. But unselect map is 
> missing/not working, neither combination of map/survey select/unselect. 
> Normally - if map selection for a given projection is available, it is used. 
> If not, survey selection is used.
> 
> I think, unselecting/offsetting maps from survey selection is feasible 
> without any negative side effects. I am just not sure, how much work would it 
> be to implement it.
> 
> S.
> 
> 
> 
>> On Thu, 9 Dec 2021 at 10:37, Benedikt Hallinger  wrote:
>> Hello,
>> I currently experiment with creating a nice overview map of a fairly 
>> complex part of the Hirlatz cave. The dataset spans about 8km in passage 
>> lengths in variuous levels with lots of over-/underlaying passages.
>> The data is organised in surveys, where each survey defines at least a 
>> "Hauptmap" wich usually includes all the submaps the main map is 
>> composed of. The main intend of the "Hauptmap" is to nicely render the 
>> survey alone.
>> 
>> Now I want to create an overview map and using the select statement I 
>> can easily instruct therion to suck in and render all the maps of the 
>> entire region. Offsets are stripped this way, but therion does a very 
>> nice job in sorting te maps according to the altitude, which eases my 
>> brain very much, since i don't need to wrap my head around sorting 54 
>> maps by hand. Therion does a splendid job with this already.
>> 
>> However this produces one problem for me: I cannot render map offsets 
>> easily anymore.
>> So what I had to do is to select the entire region using "select 
>> Wandaugenlabyrinth.Hirlatzhoehle" and render that.
>> This will print the processes maps into the therion.log file.
>>  From there I have picket it up to create a new "map" structure (`grep ^M 
>> therion.og |sort -r | awk '{print $3}'`).
>> This i added to the thconfig file and selected that instead. There it is 
>> now easy to define offets again.
>> 
>> BUT: This introduces another, long term problem:
>> When sometimes in the future someone adds a new survey to this region, 
>> he needs to remember to merge its maps also into the overview map 
>> definition (at the correct position because of altitude!).
>> 
>> 
>> 
>> Thus, it would be cool if we had some kind of "offset" thconfig command 
>> alongside the select one.
>> This would allow me to read in the entire regions maps, and just specify 
>> offsets for the offset ones; something like this:
>> 
>> - thconfig -
>> source ../../therion/Hirlatzhoehle.th
>> select Wandaugenlabyrinth.Hirlatzhoehle   # read in all defined maps of 
>> the Region
>> 
>> offset 173-Anschluss-177@173.Wandaugenlabyrinth.Hirlatzhoehle [20 15 m] 
>> below
>> offset 177-Hauptplan@177.Wandaugenlabyrinth.Hirlatzhoehle [-30 -20 
>> m] above
>> 
>> 
>> Expected result would be all the maps read and printed at their altitude 
>> level, but the two maps offset as already known from the "map" command.
>> If someone adds, lets say, 
>> 200-Hauptplan@200.Wandaugenlabyrinth.Hirlatzhoehle and recompiles the 
>> file, the new survey would be included *without specifying it 
>> explicitely*.
>> 
>> 
>> Is such a command possible?
>> I know it's not such a big deal with smaller caves, but in my dataset 
>> this would save a tremendous ammount of time down the road when I will 
>> make the atlas of Hirlatz regions (not to mention a big overview map).
>> 
>> 
>> ps. and probably relatet: When I give "select 
>> Wandaugenlabyrinth.Hirlatzhoehle" and then "unselect 
>> 177-Hauptplan@177.Wandaugenlabyrinth.Hirlatzhoehle", 177 survey is still 
>> printed to the map. I would had expected that the scraps of the map 
>> would be hidden from output.
>> 
>> 
>> Kind regards,
>> Beni
>> ___
>> Therion mailing list
>> Therion@speleo.sk
>> https://mailman.speleo.sk/listinfo/therion
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


[Therion] Map offset: just specify offset in complex dataset (proposes new "offset" thconfig compiler command)

2021-12-09 Thread Benedikt Hallinger

Hello,
I currently experiment with creating a nice overview map of a fairly 
complex part of the Hirlatz cave. The dataset spans about 8km in passage 
lengths in variuous levels with lots of over-/underlaying passages.
The data is organised in surveys, where each survey defines at least a 
"Hauptmap" wich usually includes all the submaps the main map is 
composed of. The main intend of the "Hauptmap" is to nicely render the 
survey alone.


Now I want to create an overview map and using the select statement I 
can easily instruct therion to suck in and render all the maps of the 
entire region. Offsets are stripped this way, but therion does a very 
nice job in sorting te maps according to the altitude, which eases my 
brain very much, since i don't need to wrap my head around sorting 54 
maps by hand. Therion does a splendid job with this already.


However this produces one problem for me: I cannot render map offsets 
easily anymore.
So what I had to do is to select the entire region using "select 
Wandaugenlabyrinth.Hirlatzhoehle" and render that.

This will print the processes maps into the therion.log file.
From there I have picket it up to create a new "map" structure (`grep ^M 
therion.og |sort -r | awk '{print $3}'`).
This i added to the thconfig file and selected that instead. There it is 
now easy to define offets again.


BUT: This introduces another, long term problem:
When sometimes in the future someone adds a new survey to this region, 
he needs to remember to merge its maps also into the overview map 
definition (at the correct position because of altitude!).




Thus, it would be cool if we had some kind of "offset" thconfig command 
alongside the select one.
This would allow me to read in the entire regions maps, and just specify 
offsets for the offset ones; something like this:


- thconfig -
source ../../therion/Hirlatzhoehle.th
select Wandaugenlabyrinth.Hirlatzhoehle   # read in all defined maps of 
the Region


offset 173-Anschluss-177@173.Wandaugenlabyrinth.Hirlatzhoehle [20 15 m] 
below
offset 177-Hauptplan@177.Wandaugenlabyrinth.Hirlatzhoehle [-30 -20 
m] above



Expected result would be all the maps read and printed at their altitude 
level, but the two maps offset as already known from the "map" command.
If someone adds, lets say, 
200-Hauptplan@200.Wandaugenlabyrinth.Hirlatzhoehle and recompiles the 
file, the new survey would be included *without specifying it 
explicitely*.



Is such a command possible?
I know it's not such a big deal with smaller caves, but in my dataset 
this would save a tremendous ammount of time down the road when I will 
make the atlas of Hirlatz regions (not to mention a big overview map).



ps. and probably relatet: When I give "select 
Wandaugenlabyrinth.Hirlatzhoehle" and then "unselect 
177-Hauptplan@177.Wandaugenlabyrinth.Hirlatzhoehle", 177 survey is still 
printed to the map. I would had expected that the scraps of the map 
would be hidden from output.



Kind regards,
Beni
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Fwd: PDF output: layers nested?

2021-11-30 Thread Benedikt Hallinger
Thank you Martin, for clarification!

> Am 30.11.2021 um 20:49 schrieb Martin Budaj :
> 
> On Tue, Nov 23, 2021 at 4:42 PM Andrew Atkinson  wrote:
>>> On 23/11/2021 15:08, Benedikt Hallinger wrote:
>>> 
>>> I don't know PDF specifics, but it would be very handy to have "nested" 
>>> layers, i.e. submaps as separate layers in the main layer.
>> 
>> That would be very useful, don't know if it is possible
> 
> There is some support for a tree-like hierarchy of the optional
> content layers in the PDF specification, but you can't select/unselect
> a group of sublayers at once. See the attached picture for an
> illustration: you can change the visibility of the lowest-level maps
> (the "leafs") only, not the higher-level maps or groups (the
> "branches"). So it's not very helpful in this case except for having
> some labels indicating the hierarchical structure of maps.
> If all the tree was interactive, we could simply expand it to all
> sub-maps to have complete and easy control of the displayed content.
> 
> Martin
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Get shortest route

2021-11-29 Thread Benedikt Hallinger

Some Metadata could be derived from the scraps we have in therion.
That will not be 100% accurate, of course, but for ecample if a 
centerline shot crosses some pit, this could provide useful routing 
information (because we can infer that we need rope and climbing gear 
for this leg). Or from the passage dimensions we can deduce if that is 
easily walkable or we need to crouch.


We could make a "routing map" as we know which stations we crossed, and 
put together a map containing all scraps with the stations...




Am 2021-11-29 12:53, schrieb Wookey:

On 2021-11-28 21:33 +, Tarquin Wilton-Jones via Therion wrote:

> I implemented such functionality (not the visualization) a while ago
> as a little exercise in Python. If you know how to run a Python
> script, then you might find this useful.

Awesome!


That is nifty. I've wanted this functionality quite often too.


I would love for that to be built in to Aven, so it could actually
highlight the route too (you know the problem, you give someone an 
inch

they ask for a mile).


It's probably not that hard to do. The UI will be more work than the
routing.  Of course what we really want is to apply normal routing
algorithms to the cave network (the graphhopper library is my
favourite as it's fast enough to make routing dragable), and include
weighting metadata so we could do somthing slightly more sophisticated
than 'shortest'. ('quickest', and 'least gear' are probably
useful). Being able to have dragable routing with timings (and maybe
tackle lists one day!) would be very nice, but relies on a lot of
metadata being available sonehow that currently isn't.

https://wiki.openstreetmap.org/wiki/GraphHopper
Annoyingly it seems not to be packaged yet. That can be fixed.

Wookey
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Get shortest route

2021-11-29 Thread Benedikt Hallinger

Hi Thomas,
thank you for the snippet, I succesfully tried it :)

For my convinience, I wrote a small wrapper to ease the call:
- It references my fixed aven file
- It has parameters 1 and 2 reference the respective stations

--snip shortestPath.py--
#!/usr/bin/python
#
#  Wrapperskript fuer survex.py um den kuerzesten Pfad zwischen zwei 
Stations zu errechnen.

#
#  Bsp: Eingang -> Brueckenhalle:  $ ./shortestPath.py 
Hirlatzhoehle.Zubringer.1.1.0 Hirlatzhoehle.Alter_Teil.2.1.55


import sys

filename = "../Hirlatzhoehle/Hirlatz.th.3d"
station_from = sys.argv[1]
station_to   = sys.argv[2]

from survex import Survex3D
survey = Survex3D(filename)
length, p = survey.shortestpath(station_from, station_to)
upwards = sum(max(0, t.z - f.z) for (f, t) in zip(p[:-1], p[1:]))
downwards = sum(min(0, t.z - f.z) for (f, t) in zip(p[:-1], p[1:]))
print("Shortest route length:", length / 100, "m")
print("Cumulated height going upwards:", upwards / 100, "m")
print("Cumulated depth going downwards:", downwards / 100, "m")

--snip--


Example call (Entrance to the Fragezeichenbiwak):
$ ./shortestPath.py Hirlatzhoehle.Zubringer.1.1.0 
Hirlatzhoehle.Donnerbach.70.1.19

('Shortest route length:', 6773.091436823018, 'm')
('Cumulated height going upwards:', 781, 'm')
('Cumulated depth going downwards:', -770, 'm')


Thank you!
(nonetheless it would be awesome to get some more feature rich 
integrated function in therion and/or aven)



Am 2021-11-28 18:49, schrieb Thomas Holder:

Hi Benedikt and Olly,

I implemented such functionality (not the visualization) a while ago
as a little exercise in Python. If you know how to run a Python
script, then you might find this useful.

First download this file:
https://raw.githubusercontent.com/speleo3/inkscape-speleo/master/extensions/survex.py

Then run this code (replace the file name and station names):

filename = "smk-arge.3d"
station_from = "p87"
station_to = "115.commando.105"

from survex import Survex3D
survey = Survex3D(filename)
length, p = survey.shortestpath(station_from, station_to)
upwards = sum(max(0, t.z - f.z) for (f, t) in zip(p[:-1], p[1:]))
downwards = sum(min(0, t.z - f.z) for (f, t) in zip(p[:-1], p[1:]))
print("Shortest route length:", length / 100, "m")
print("Cumulated height going upwards:", upwards / 100, "m")
print("Cumulated depth going downwards:", downwards / 100, "m")


Cheers,
  Thomas

On Sat, Nov 27, 2021 at 8:25 PM Olly Betts  wrote:


On Fri, Nov 26, 2021 at 05:10:18PM +0100, Benedikt Hallinger wrote:
> i would want to get some advanced statistics regarding lengths in a very big 
cave (130km/Hirlatz).
>
> Basicly i want to supply two stations and get the following data for the 
shortest path:
> - length of shots
> - cumulated height for shots going upwards
> - cumulative depth for shots going downwards
> - optionally it would be cool to be able to somehow visualize the route in 
aven/loch, or in a therion map output
>
> Is this possible already?

I don't think so.

Someone was working on it, but I guess it didn't come to anything as
that was 2016:

https://lists.survex.com/pipermail/survex/2016-October/002082.html

Cheers,
Olly
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Therion] Get shortest route

2021-11-29 Thread Benedikt Hallinger
I think, when we would have some option to compile the shortest path 
between two statoins, this could easily leveraged to the multi-station 
approach (I would even do that manually if its not easily to be 
automated).


Further wishes could be to be able to specify constraints as options, so 
for example to assign more path-cost to steep inclinations (shafts/pits) 
or sumps.


The big question is, how this needs to be coded up, and more important, 
who can code it?



Am 2021-11-29 9:21, schrieb Bruce Mutton:

This was discussed in 2008 in Therion circles.
https://www.mail-archive.com/therion@speleo.sk/msg02037.html
To be really useful, the user should be able to specify multiple 
stations,

with the algorithm finding the shortest centreline distance along the
centreline network that passes through all of the specified points.

Outputs to list as noted by Benedikt below, pdf and aven/Loch models.

Bruce

-Original Message-
From: Therion  On Behalf Of Olly Betts
Sent: Sunday, 28 November 2021 07:57
To: Benedikt Hallinger 
Cc: therion@speleo.sk
Subject: Re: [Therion] Get shortest route

On Fri, Nov 26, 2021 at 05:10:18PM +0100, Benedikt Hallinger wrote:
i would want to get some advanced statistics regarding lengths in a 
very

big cave (130km/Hirlatz).


Basicly i want to supply two stations and get the following data for 
the

shortest path:

- length of shots
- cumulated height for shots going upwards
- cumulative depth for shots going downwards
- optionally it would be cool to be able to somehow visualize the
route in aven/loch, or in a therion map output

Is this possible already?


I don't think so.

Someone was working on it, but I guess it didn't come to anything as 
that

was 2016:

https://lists.survex.com/pipermail/survex/2016-October/002082.html

Cheers,
Olly
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


[Therion] Get shortest route

2021-11-26 Thread Benedikt Hallinger
Hi there,
i would want to get some advanced statistics regarding lengths in a very big 
cave (130km/Hirlatz).

Basicly i want to supply two stations and get the following data for the 
shortest path:
- length of shots
- cumulated height for shots going upwards
- cumulative depth for shots going downwards
- optionally it would be cool to be able to somehow visualize the route in 
aven/loch, or in a therion map output

Is this possible already?
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] thfill with page background colour?

2021-11-23 Thread Benedikt Hallinger

Great, that works as intended!
Thank you very much!

Am 2021-11-23 21:35, schrieb Martin Budaj:

On Tue, Nov 23, 2021 at 4:34 PM Tarquin Wilton-Jones via Therion
 wrote:


> In which variable do i access the page's background color (the one set
> wit the layout option "map-bg")?

Fun fact ... you can't access that. Or at least, it didn't seem to be
available back when I was trying to do that in version 5. And I still
can't see any useful variable in version 6.


Hi,

it's now set as MapBackground in the latest commit.

M.
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Fwd: PDF output: layers nested?

2021-11-23 Thread Benedikt Hallinger

Hi,
no, i really have submaps in my example.
mymap in my case is defined in my thconfig file, and it references a 
mainmap as submap.
That submap again is a collection of other submaps, that finally contain 
scraps:



-
source
  map 164-Grundriss -title "Mappe 164: Wandaugenlabyrinth Ost"

#preview above 172-Hauptplan@172.Wandaugenlabyrinth.Hirlatzhoehle
preview above 162-Hauptplan@162.Wandaugenlabyrinth.Hirlatzhoehle
preview above 180-Hauptplan@180.Wandaugenlabyrinth.Hirlatzhoehle
preview above 170-Hauptplan@170.Wandaugenlabyrinth.Hirlatzhoehle
preview above 171-Hauptplan@171.Wandaugenlabyrinth.Hirlatzhoehle

164-Hauptplan@164.Wandaugenlabyrinth.Hirlatzhoehle #<-- this 
contains several other maps, which finally contain scraps


  endmap
endsource




select 164-Grundriss -map-level 2
This works, but removes the previews (from 164-Grundriss) and also the 
offsets defined in 164-Hauptplan.
I also tried "select 164-Grundriss -map-level basic" with the same 
result.





Am 2021-11-23 17:01, schrieb Andrew Atkinson:

On 23/11/2021 15:49, Benedikt Hallinger wrote:
es, exactly, when i use "select" and fetch the maps that way, it 
generates layers as expected.
However, in this instance i just have one big "map" element, but it 
would be nice if i could have the submaps also as distinct layers.


With a map definition in th file

map mymap
 map1
 map2
 map3
endmap

then in thconfig

select mymap

should give you map1, map2.. as leyers in pdf

if you also have in a th file

map map1
 mapA
 mapB
 mapC
endmap

select mymap -maplevel 2

should give you layers of mapA, mapB...

In your example you had scraps, I don't think the map-level works on
scraps. If I have a survey with a single survey I always make it into
a map, I find this makes things easier in the end. I also do this if
In have many scraps that I want on several layers

map SingleScrap
 SingleScrapA
endmap

(I have no idea why scraps cannot just be treated as maps, it's
probably something to do with the coding, however it is easy to just
turn them into maps, I've not found any downside, well apart from a
little more typing and a larger map tree)

Andrew
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Fwd: PDF output: layers nested?

2021-11-23 Thread Benedikt Hallinger
Yes, exactly, when i use "select" and fetch the maps that way, it 
generates layers as expected.
However, in this instance i just have one big "map" element, but it 
would be nice if i could have the submaps also as distinct layers.


Am 2021-11-23 16:41, schrieb Andrew Atkinson:

On 23/11/2021 15:08, Benedikt Hallinger wrote:

I don't know PDF specifics, but it would be very handy to have 
"nested" layers, i.e. submaps as separate layers in the main layer.


That would be very useful, don't know if it is possible


If sublayersa re not possible, it would be cool to have an optional 
option at the export config command to instruct therion to not collate 
submaps into a bigger layer, but add each map as independent layer.



If I understand correctly what you are after I think what you maybe
looking for are the options used with select. I used -map-level 2 to
get what you describe.


Other options are

recursive  and  chapter-level 

I cannot say I really understand these fully, however trial and error
got me there

Andrew
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


[Therion] thfill with page background colour?

2021-11-23 Thread Benedikt Hallinger

Hi metapost wizards,

I try to fill a label with the page background.
  thfill ((bbox lab)) scaled (sc * basescale * 1.5) withcolor 
;


For  i tried "label_fill_color", which however may be a 
different background.
I also tried "background", but that yields the cave passage background 
colour.


In which variable do i access the page's background color (the one set 
wit the layout option "map-bg")?



Thanks!
Beni
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Existing xvi background images not visible in XTherion Map Editor, insertion causes error

2021-09-17 Thread Benedikt Hallinger

This is really a fine piece of software and a good project.
Thank you all for all the ongoing effort over all those years!


btw. my mapping project of the hirlatz cave is approaching to cross the 
70km mark soon :)



Am 2021-09-17 8:42, schrieb Bruce Mutton:

thanks a lot for finding out and reporting.


Introducing “Rob Davies”.  After a quick spin through, it looks
like 23b301e is working.

Thanks for the speedy turnaround Stacho.

Bruce
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] How to morph sketches

2021-06-27 Thread Benedikt Hallinger
What is the advantage of digitizing a morphed sketch over just let therion 
morph the raw digitized sketch?

I usually just digitize the raw paper sketch and get good results.

> Am 27.06.2021 um 12:43 schrieb Torsten Schnitter via Therion 
> :
> 
> 
> Hi
> 
> As I read some of the last mails I came to the question how to morph a 
> sketch. 
> I searched the wiki and the Therion book but could not find how to do it. 
> All I found was on page 89 ff in the book which shows some pictures before 
> and after morphing.
> But no explanation how to do it in detail. 
> 
> If I got it right it is possible like that: 
> Someone have an image, a sketch of a cave area (which is not orientated 
> correctly at all). 
> And you have some survey data from that passage (which should be correct). 
> The sketch is scanned to a png or jpg file. 
> Now you can morph this image file into a xvi file where the image is morphed 
> to the correct orientation matching the messured survey data. 
> The final result is a new xvi file (with correctly morphed) image inside so 
> you can use this new xvi file (including survey data as a line and the 
> correctly morphed sketch itself) as a background image to draw the final 
> scrap. 
> Or did I get this wrong? 
> 
> Can anyone describe in detail how to do this please!?
> Apparently I'm too stupid to make it... 
> I put a sketch and the survey data from a small passage to this email as a 
> possible example to show how this process does work.
> Many thanks in advance. 
> 
> regards, 
> Torsten 
> 
> 
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Main route through a cave

2021-06-13 Thread Benedikt Hallinger
Another idea would be to have an -constraint option, that can appear multiple 
times let therion avoid certain passages for the route calculation, like 
passage height or crossing of a pit; much like avoiding toll roads in a car 
navigation unit

> Am 13.06.2021 um 21:49 schrieb Bruce Mutton :
> 
> 
>> 
>> I would have thought the easier way would be a "flags" switch that could do 
>> it for you. "flags mainroute". It wouldn't even be an estimate. Maybe some 
>> of the Survex folks on this list could shed some light on how feasible that 
>> would be. Might require a Survex modification though.
> ___
> 
> How about as a concept?
> 
> route  
> 
> where you can define one or more named routes in the survey network by 
> setting a name then a list of two or more stations that Therion then 
> consecutively finds the cumulative shortest surveyed route between.  Maybe it 
> could tack on to the loop detection routine.
> 
> Therion could then export these as a table in cave-list or survey-list, or it 
> could be its own 'route-list'.  Statistics could include total length, 
> altitude gain and loss, altitude range, altitude difference.
> A debug option could enumerate every survey station along the route Therion 
> has chosen.
> For visualising would need to highlight the route Therion has chosen in Aven 
> or in Loch.
> 
> Bruce
> 
> 
> 
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Main route through a cave

2021-06-13 Thread Benedikt Hallinger
Hi,
We might also differentiate the route finding symbols into two line types: one 
for the main junctions and one for the route in between. This way we can select 
if we just want to show the main junctions or all the route.

Is there a way of defining custom symbol groups? This way we might create our 
own to really hide all the routing symbols at once.

> Am 13.06.2021 um 10:28 schrieb Axel :
> 
> 
> Morning,
> 
> we experiment with a custom line (bold, dashed line in purple). It gives the 
> advantage that the complete mainroute can be hidden easily (if the issue with 
> context line:u is solved, labels can be assignet to it as well -eg for time 
> of travell between camps).
> But discussion is on if we use it all the way or just at main junctions.
> All the way makes it easier to use the map in the cave as it draws ones 
> attention directly to the route (+ u can show where the path is in big 
> chambers and it looks coherent in the survey). However it looks odd in long 
> galleries with no junctions...
> To have the lines/arrows just at junctions also looks odd in the survey (at 
> least that's my impression) but I wanted to experiment with the 
> pencile-pressure lines which where posted here a while ago and see if that 
> looks better... (has one of u used them so far?)
>  
> cheers,
> Axel
>  
> Gesendet: Sonntag, 13. Juni 2021 um 09:49 Uhr
> Von: "Tarquin Wilton-Jones via Therion" 
> An: "Therion" 
> Cc: "Tarquin Wilton-Jones" 
> Betreff: [Therion] Main route through a cave
> Hi folks,
> 
> I am surveying a cave that could be best described as an insanity of
> hidden routes.
> 
> When you go through the cave, it feels easy. You follow the obvious route.
> 
> When drawing up the survey, there are loads of alternative routes all
> crossing over each other and hiding underneath the floor. This means
> that the survey is harder to navigate than the cave itself.
> 
> I was wondering what the general ideas were that people use to
> counteract this situation. These are what I could come up with:
> 
> 1. Fail to draw all the passages (GAH!).
> 
> 2. Draw the walls of the main route with different line types? like
> subtype "underlying" and "overlying" instead of regular walls (useless
> if you are trying to use "subtype blocks" which is my specific problem;
> the passage is a mess of boulders and ceiling steps creating false walls).
> 
> 3. Arrows.
> 
> But does anyone have a dedicated, better approach? Some way of shading
> the main route differently? A dedicated symbol?
> 
> Cheers,
> 
> Tarquin
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


[Therion] therionsurfac2survex now also on mac!

2021-04-21 Thread Benedikt Hallinger

Hi,
just wanted to drop a note that I just managed to compile the 
therionsurfac2survex tool also for mac now.
You can use it to generate a surface mesh (legs with -flag surface) out 
of GDAL or therion surface files.
This is useful if you for example want to measure distances from cave to 
surface with the help of aven.


I updated the latest release with the binary:
https://github.com/hbeni/therionsurface2survex/releases/tag/1.1.0

Have fun, and let me know if it works,
Beni
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Symbol-hide and user defined symbols ?

2021-03-09 Thread Benedikt Hallinger

See here: https://github.com/therion/therion/issues/239

Am 2021-03-09 11:41, schrieb Xavier Robert:

Hello,

For my Therion’s projects, I wrote a global config file (Config.thc)
where I defined all the user defined symbols. In my thconfigs, I call
this config file at the beginning of the file with input config.thc.
In the layouts, I call the layouts of the config.thc that I want to
use with for instance copy drawingconfig.

In one of my thconfig, I would like to hide some of these symbols that
I have defined in the config file and drawn in a survey. For that, I
used in a layout, for instance, symbol-hide point u:symbol_plan (in my
config.thc in the layout drawingconfig, I defined the point
p_u_symbol_plan as proposed by Juraj Halama).

When I compile (with c43b32a), it crashes with this error : -- unknown
symbol specification -- point u:symbol_plan

Is it because symbol-hide cannot take in account user defined symbols
?
Is it because I misunderstood the syntax of this command for user
defined symbols ?
Is-it a bug ?

Cheers,

Xavier
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


[Therion] therionsurface2survex can flip grids now

2021-03-01 Thread Benedikt Hallinger
Hello, 
as some of you already know, the therionsurface2survex tool can generate 
surface meshes for aven out of therion surface or gdal grids. This allows for 
example to display a 3d-grid in loch and aven, and to take measures between 
cave and surface in aven.

Today i enhanced the tool so it can understand the grid-flip command: 
https://github.com/hbeni/therionsurface2survex/issues/2#issuecomment-787776692
Also negative step size in gdal headers yield flipped grids.

It would be cool if some people here could test it with real datasets :)
The test case does what i would expect, but I’m not sure i fully understood the 
input data and its implications.
Before i merge the feature, i would be much more confident by test results from 
more proficient people than me.

Thanks and greetings!
Beni___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Question about "grid" command

2021-02-24 Thread Benedikt Hallinger
So, after reading the thbook (p. 31) again, I think I can answer that to 
myself.

But it would be good if someone could step in and confirm:


 

may be negative, depending in used CS.


   

Is not allowed to be negative:
- origin is always lower-left (southwest) corner, and spacing is assumed 
to be from west to east and south to north, thus always positive.

row and cols count cannot be zero or negative for obvious reasons.


Stay safe!
kind regards, Beni


Am 2021-02-24 8:18, schrieb Benedikt Hallinger:

Good morning,
while debugging
https://github.com/hbeni/therionsurface2survex/issues/1 i stumbled
upon a format question i did not give tought until yesterday.

With the "grid" command you specify coordinate origin and size of a
surface grid:
  grid  count>



Until now i assumed that:

a) these data has to be all positive.
But i'm not sure... origin may surely get negative (like in wgs89 and
for example western and southern of the 0-meridian/equator)
And also stepsize - might it get negative too (esp. with flipped grids 
maybe)?


b) the spacing might only be integer numbers, not floats
Is this true? I just got an example with not-round stepsize.
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


[Therion] Question about "grid" command

2021-02-23 Thread Benedikt Hallinger

Good morning,
while debugging https://github.com/hbeni/therionsurface2survex/issues/1 
i stumbled upon a format question i did not give tought until yesterday.


With the "grid" command you specify coordinate origin and size of a 
surface grid:

  grid  


Until now i assumed that:

a) these data has to be all positive.
But i'm not sure... origin may surely get negative (like in wgs89 and 
for example western and southern of the 0-meridian/equator)
And also stepsize - might it get negative too (esp. with flipped grids 
maybe)?


b) the spacing might only be integer numbers, not floats
Is this true? I just got an example with not-round stepsize.
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] 3D model height

2021-02-22 Thread Benedikt Hallinger
As far as i understood, when you tag your data to be in a certain coordinate 
system that should include all three data points when the coordinate system 
defines them.
If you want an altitude offset, i would expect that we must manually convert.

As an example: i tag my data to be wsg89, which defines altitude pegged to a 
certain reference.
Assume alt is 0.
When i now switch coordinate systems to something really (artifically) weird, 
like the origin pegged to the peak of mt. Everest, i would expect all three 
coordinates to be correctly transformed (making especially altitude very 
negative).
If i now want to say that a point is at the same level as everests peak, i 
would have to apply a manual transformation step.
But that’s not the fault of wgs89 mir the target cs, the reason was that my 
initial calibration was never in wgs89!

What do i get wrong in this thought process?


> Am 22.02.2021 um 21:37 schrieb Tarquin Wilton-Jones via Therion 
> :
> 
> 
>> 
>> If there is a real need for a switch between converting and not
>> converting the heights, let us know.
> 
> At least here in the UK, a lot of rough and ready surveys seem to use
> Garmin handheld GPS units like the 66sr. These use barometric altitude,
> which you calibrate to a local benchmark. That means you get local
> mapping heights that do not need to be converted, while the GPS
> coordinates would need to be converted.
> 
> Anyone relying on this approach (which already is rather poor from an
> accuracy perspective) would indeed need you to perform conversion on x
> and y but not z, while anyone using a proper GPS unit which outputs
> ellipsoid heights would need you to convert x, y, and z. I therefore see
> a need for it to be controllable.
> 
> Personally, I use real GPS ellipsoid heights, which I manually convert
> using continental drift calculations and the higher quality
> OSTN15+OSGM15 transformation (since these then remain correct in spite
> of continental drift). I do not rely on proj for that, and have built my
> own tool instead, since proj does not have access to the data required
> for it.
> 
> Tarquin
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] 3D model height

2021-02-19 Thread Benedikt Hallinger
Well then i'm out of ideas, however i do not get weird results here when 
invoking proj manually:


echo "647151 242509 262" | cs2cs EPSG:23700 EPSG:4326
47d31'35.376"N  19d0'34.596"E 262.000

echo "47.526453 19.009617 262" | cs2cs EPSG:4326 EPSG:23700
647151.52   242504.51 262.00


When using EPSG:23700, does the problem also occur in kmlth.3d or just 
the kml?



Am 2021-02-19 12:06, schrieb Balambér Hakapesz:

The error only occurs when using the EOV (EPSG: 23700) coordinate
system.

 [3]
Mentes a vírusoktól. www.avg.com [3]

On Fri, Feb 19, 2021 at 11:59 AM Balambér Hakapesz
 wrote:


# 2021.02.08 created by TopoDroid v 5.0.79

#source "../th/kml.th [2]"
source "kml.th [2]"

layout topodroid
legend on
symbol-hide group centerline
symbol-show point station
debug station-names
endlayout

export map -layout topodroid -o kml-p.pdf -proj plan

export map -layout topodroid -o kml-s.pdf -proj extended

# export model -fomat survex -o kmlth.3d

export model -output kmlo.3d
export model -output kmlo.lox
export model -output kmlo.dxf
export model -output kmlo.kml

# 2021.02.08 created by TopoDroid v 5.0.79

survey kml -title "kml"

centerline
#cs long-lat
#fix 0 19.009617 47.526453 262
cs EPSG:23700   #ez felel meg az EOV-nek
fix 0 647151 242509 262
date 2021.02.08
# declination 5. degrees
units length meters
units compass clino degrees
data normal from to length compass clino
extend right
0 1 10.00 180.0 -90.0
1 2 10.00 0.0 0.0
2 3 10.00 90.0 0.0
units left right up down meters
data dimensions station left right up down
endcenterline

endsurvey

[3]
Mentes a vírusoktól. www.avg.com [3]

On Fri, Feb 19, 2021 at 11:49 AM Benedikt Hallinger
 wrote:


What does the survex/aven file give you, is the error there also
apparent?

What is your full thconfig file for generating the kml and aven
.3d?

Dies the problem also exists when specifying this:
cs EPSG:4326
fix 0 19.009617 47.526453 262

Am 2021-02-19 11:25, schrieb Balambér Hakapesz:

If I were to enter the ellisoid height, the error of Proj4 would

still

remain on the EOV projection.
I could work in a UTM coordinate system, but it would be much

simpler

if Therion didn’t recalculate anything. (There is no height

issue

between UTM and WGS84 because there is no conversion)
This error is only present in the national projections where

Proj4

performs approximate calculations for the advantage of

horizontal

coordinates and the disadvantage of height.

On Fri, Feb 19, 2021 at 11:25 AM Balambér Hakapesz
 wrote:


thconfig:
#cs long-lat
#fix 0 19.009617 47.526453 262
cs EPSG:23700   # Hungarian EOV
fix 0 647151 242509 262

kml:

19.00961011626948,47.52649337576407,291.08568208889801

291-262 = 29 m = 44m geoid height - 15m Proj4 error

[2]
Mentes a vírusoktól. www.avg.com [1] [2]

On Fri, Feb 19, 2021 at 11:06 AM Benedikt Hallinger
 wrote:


Isn't EGM84 the reference ellipsoid currently used by WGS84?
What you get with GPS is *not* sea level, but the altitude

above

that
reference geoid (which takes into account gravital anonalys).

If you calibrate your barometric altimeter to the hieght given

by

a
height coordinate of WGS84 (like read from your car's navi at

the

parking lot, or from a map calibrated to WGS84) then you

should

get
about the same altitude.
If you take the cave location from GPS and enter that

coordinates

into
the therion dataset wirh correct "cs" marking, the conversion
should
yield the correct result.
If you take the altitude from a map (or an altimeter

calibrated to

that
map) in another coordinate system, you have to either apply an
offset
manually, add an instrument correction factor in therion, or
supply the
correct coordinate system (which then probalby demands

conversion

of the
lat/lon coordinates).

If generating 3D surfce meshes, you also need to supply

matching

coordinate systems data and/or specify the correct "cs"

parameter.


I think your problem comes from mixing coordinate systems in
respect to
the height model, either at data input or when using the

height

mesh.

Am 2021-02-19 9:49, schrieb Balambér Hakapesz:

Very rarely can anyone work at ellipsoidal heights. In local
coordinate systems, it only makes sense for upper geodetic
calculations. Only for GPS measurements we get an ellipsoidal
altitude, even there the devices can immediately calculate

the

altitude of the EGM96 model with an altitude above sea level

(with a

few meters error which is not significant compared to the 15m

altitude

error of handheld GPS).
Proj4 calculates the horizontal coordinates well, but there

is a

serious error in the height coordinates (for special national
projections












(http://www.agt.bme.hu/gis/workshop4/eloadasok/proj_poszter_3d.pdf)),

so it would be better if not we would count on it but leave

the

altitude unchanged.
Could it be an option not to change the height with 

Re: [Therion] 3D model height

2021-02-19 Thread Benedikt Hallinger
What does the survex/aven file give you, is the error there also 
apparent?


What is your full thconfig file for generating the kml and aven .3d?

Dies the problem also exists when specifying this:
  cs EPSG:4326
  fix 0 19.009617 47.526453 262



Am 2021-02-19 11:25, schrieb Balambér Hakapesz:

If I were to enter the ellisoid height, the error of Proj4 would still
remain on the EOV projection.
I could work in a UTM coordinate system, but it would be much simpler
if Therion didn’t recalculate anything. (There is no height issue
between UTM and WGS84 because there is no conversion)
This error is only present in the national projections where Proj4
performs approximate calculations for the advantage of horizontal
coordinates and the disadvantage of height.

On Fri, Feb 19, 2021 at 11:25 AM Balambér Hakapesz
 wrote:


thconfig:
#cs long-lat
#fix 0 19.009617 47.526453 262
cs EPSG:23700   # Hungarian EOV
fix 0 647151 242509 262

kml:

19.00961011626948,47.52649337576407,291.08568208889801

291-262 = 29 m = 44m geoid height - 15m Proj4 error

[2]
Mentes a vírusoktól. www.avg.com [2]

On Fri, Feb 19, 2021 at 11:06 AM Benedikt Hallinger
 wrote:


Isn't EGM84 the reference ellipsoid currently used by WGS84?
What you get with GPS is *not* sea level, but the altitude above
that
reference geoid (which takes into account gravital anonalys).

If you calibrate your barometric altimeter to the hieght given by
a
height coordinate of WGS84 (like read from your car's navi at the
parking lot, or from a map calibrated to WGS84) then you should
get
about the same altitude.
If you take the cave location from GPS and enter that coordinates
into
the therion dataset wirh correct "cs" marking, the conversion
should
yield the correct result.
If you take the altitude from a map (or an altimeter calibrated to
that
map) in another coordinate system, you have to either apply an
offset
manually, add an instrument correction factor in therion, or
supply the
correct coordinate system (which then probalby demands conversion
of the
lat/lon coordinates).

If generating 3D surfce meshes, you also need to supply matching
coordinate systems data and/or specify the correct "cs" parameter.

I think your problem comes from mixing coordinate systems in
respect to
the height model, either at data input or when using the height
mesh.

Am 2021-02-19 9:49, schrieb Balambér Hakapesz:

Very rarely can anyone work at ellipsoidal heights. In local
coordinate systems, it only makes sense for upper geodetic
calculations. Only for GPS measurements we get an ellipsoidal
altitude, even there the devices can immediately calculate the
altitude of the EGM96 model with an altitude above sea level

(with a

few meters error which is not significant compared to the 15m

altitude

error of handheld GPS).
Proj4 calculates the horizontal coordinates well, but there is a
serious error in the height coordinates (for special national
projections






(http://www.agt.bme.hu/gis/workshop4/eloadasok/proj_poszter_3d.pdf)),

so it would be better if not we would count on it but leave the
altitude unchanged.
Could it be an option not to change the height with Therion?

[2]
Mentes a vírusoktól. www.avg.com [1] [2]

On Fri, Feb 19, 2021 at 9:18 AM Benedikt Hallinger
 wrote:


Hi there,
if you measure the altitude with a barometric device, you do

not get

the
altitude above the ellipsoid. You have to account for that at

the

input
of your data.

With the "cs" command you define your input data to be in a

specific


coordinate system, and also your altitude has to be given in

that

system. If you just put the barometric altitude there (which

you

usually
did calibrate to a map, didn't you?) you have to transform the
altitude
manually if the reference altitude differs.

Am 2021-02-19 8:44, schrieb Balambér Hakapesz:

Hi!

When generating 3D models, Proj4 transforms between different
coordinate systems.
This also transforms the ellipsoidal altitude, but the data

always

refer to altitude above sea level and should not be changed.
The finished models do not fit the topography, you have to

cheat

with

the height to be good.

Balázs Holl.

[1]
Mentes a vírusoktól. www.avg.com [1] [1] [1]



Links:
--
[1]










http://www.avg.com/email-signature?utm_medium=emailutm_source=linkutm_campaign=sig-emailutm_content=webmail

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion



Links:
--
[1] http://www.avg.com
[2]






http://www.avg.com/email-signature?utm_medium=emailutm_source=linkutm_campaign=sig-emailutm_content=webmail

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailin

Re: [Therion] 3D model height

2021-02-19 Thread Benedikt Hallinger

Isn't EGM84 the reference ellipsoid currently used by WGS84?
What you get with GPS is *not* sea level, but the altitude above that 
reference geoid (which takes into account gravital anonalys).


If you calibrate your barometric altimeter to the hieght given by a 
height coordinate of WGS84 (like read from your car's navi at the 
parking lot, or from a map calibrated to WGS84) then you should get 
about the same altitude.
If you take the cave location from GPS and enter that coordinates into 
the therion dataset wirh correct "cs" marking, the conversion should 
yield the correct result.
If you take the altitude from a map (or an altimeter calibrated to that 
map) in another coordinate system, you have to either apply an offset 
manually, add an instrument correction factor in therion, or supply the 
correct coordinate system (which then probalby demands conversion of the 
lat/lon coordinates).


If generating 3D surfce meshes, you also need to supply matching 
coordinate systems data and/or specify the correct "cs" parameter.


I think your problem comes from mixing coordinate systems in respect to 
the height model, either at data input or when using the height mesh.



Am 2021-02-19 9:49, schrieb Balambér Hakapesz:

Very rarely can anyone work at ellipsoidal heights. In local
coordinate systems, it only makes sense for upper geodetic
calculations. Only for GPS measurements we get an ellipsoidal
altitude, even there the devices can immediately calculate the
altitude of the EGM96 model with an altitude above sea level (with a
few meters error which is not significant compared to the 15m altitude
error of handheld GPS).
Proj4 calculates the horizontal coordinates well, but there is a
serious error in the height coordinates (for special national
projections
(http://www.agt.bme.hu/gis/workshop4/eloadasok/proj_poszter_3d.pdf)),
so it would be better if not we would count on it but leave the
altitude unchanged.
Could it be an option not to change the height with Therion?

 [2]
Mentes a vírusoktól. www.avg.com [2]

On Fri, Feb 19, 2021 at 9:18 AM Benedikt Hallinger
 wrote:


Hi there,
if you measure the altitude with a barometric device, you do not get
the
altitude above the ellipsoid. You have to account for that at the
input
of your data.

With the "cs" command you define your input data to be in a specific

coordinate system, and also your altitude has to be given in that
system. If you just put the barometric altitude there (which you
usually
did calibrate to a map, didn't you?) you have to transform the
altitude
manually if the reference altitude differs.

Am 2021-02-19 8:44, schrieb Balambér Hakapesz:

Hi!

When generating 3D models, Proj4 transforms between different
coordinate systems.
This also transforms the ellipsoidal altitude, but the data always
refer to altitude above sea level and should not be changed.
The finished models do not fit the topography, you have to cheat

with

the height to be good.

Balázs Holl.

[1]
Mentes a vírusoktól. www.avg.com [1] [1]



Links:
--
[1]




http://www.avg.com/email-signature?utm_medium=emailutm_source=linkutm_campaign=sig-emailutm_content=webmail

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion



Links:
--
[1] http://www.avg.com
[2]
http://www.avg.com/email-signature?utm_medium=emailutm_source=linkutm_campaign=sig-emailutm_content=webmail
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] 3D model height

2021-02-19 Thread Benedikt Hallinger

Hi there,
if you measure the altitude with a barometric device, you do not get the 
altitude above the ellipsoid. You have to account for that at the input 
of your data.


With the "cs" command you define your input data to be in a specific 
coordinate system, and also your altitude has to be given in that 
system. If you just put the barometric altitude there (which you usually 
did calibrate to a map, didn't you?) you have to transform the altitude 
manually if the reference altitude differs.




Am 2021-02-19 8:44, schrieb Balambér Hakapesz:

Hi!

When generating 3D models, Proj4 transforms between different
coordinate systems.
This also transforms the ellipsoidal altitude, but the data always
refer to altitude above sea level and should not be changed.
The finished models do not fit the topography, you have to cheat with
the height to be good.

Balázs Holl.

 [1]
Mentes a vírusoktól. www.avg.com [1]



Links:
--
[1]
http://www.avg.com/email-signature?utm_medium=emailutm_source=linkutm_campaign=sig-emailutm_content=webmail
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Removing the lines between survey stations created for surface features

2021-02-07 Thread Benedikt Hallinger
An option could be to overwrite the symbols with empty metapost ones

> Am 07.02.2021 um 17:51 schrieb Tarquin Wilton-Jones via Therion 
> :
> 
> Hi David,
> 
>> Does anyone know how to remove the lines that appear between survey
>> stations used for surveying around surface features?
> 
> symbol-hide group surface-centreline
> 
> This also hides the stations. If you want those, you need to put them back:
> 
> symbol-show point station
> 
> And then you can also hide the temporary stations, so only the
> fixed/painted/permanent stations are shown:
> 
> symbol-hide point station:temporary
> 
> The statements are interpreted in the order you write them, so put the
> most generic one first, then get more specific. As far as I remember,
> you cannot choose to show/hide only surface temporary stations while
> showing only the underground painted ones (you can only do the whole
> surface centreline at once, while the stations relate to surface and
> underground at the same time). Maybe others know of a way though.
> 
>> Apart from this, the surface feature drawing all works pretty well,
>> using the line type "border" with "clip" set to "off".
> 
> I like slope for dolines, and pitch for cliffs.
> 
> https://therion.speleo.sk/wiki/surfacefeatures
> 
> Cheers,
> 
> Tarquin
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] endless chimneys (was: Splays appearing when not selected)

2021-02-02 Thread Benedikt Hallinger

Hello,
that is not the case here: the sole drawer was myself and there is no 
overlap (i know of - the data is self contained in that folder).


The scraps are like this:
map 1-Deckenschlot-vor-KPZ
  1.1-2-26a-SP1-Aufstieg   # <- has stations, is OK
  1.1-2-26a-SP1# <- has stations, is OK
  1.1-2-26a-SP2# <- last known station at start. OK until 
the middle of the scrap!
  1.1-2-26a-SP3# <- no station; joined to 1.1-2-26a-SP2, 
completely "endless chimney"

endmap

What puzzles me is that the chimney starts at a bend in my scrap.
The altitude range is that of the entire cave, and thus the 
"endless-chimney" is very prominent; I think this is a second issue we 
should tackle also (it will somewhat help with the issue here, but not 
solve it).



Am 2021-02-02 10:01, schrieb Martin Sluka via Therion:

Hi Beni

that is not a problem of „spikes“ but as you may see on attached
picture I had the same problem with one my project.

There were two scraps covered part the same area overlapped. Surveyed
in two different surveying trips by two different groups drawn by two
different people. As a result that overlapped area created something
as infinite vertical chimney.

I had to comment one scrap in time from that part of cave and checked
the result. Than I shorted one of those particular scraps and added
correct join.

HTH

Martin


2. 2. 2021 v 9:48, Benedikt Hallinger :

Hm, that didn't help, unfortunately.
in the meantime I also tried coloring the PDF by altitude, this is
not affected and working like expected.

Martin has readonly svn access to the data and may investigate in
the dataset?
I just unlocked it for that purpose.

The affected thconfig is
svn/Hirlatzhoehle/Zubringer/therion/thconfig
and the scrap in question is in
svn/Hirlatzhoehle/Zubringer/1/therion/1.1.plan-2-b.th2
The last known station is 1.2.26j

In the thconfig I noted the following (just local here)

# Hirlatzdaten importieren
source ../../../Hirlatzhoehle/therion/Hirlatzhoehle.th [1]
# wrong dimensions in lox
#source ../../../Hirlatzhoehle/Zubringer/therion/Zubringer.th [2]
# works somewhat-ok in lox (still extruded to top of box, but the
box itself is small)

Greetings,
Beni

Am 2021-02-02 6:31, schrieb Stacho Mudrak:
In that case and if there is just one station in this wrong scrap,
maybe inserting point dimensions with some reasonable -value [
 m] over this station in the scrap should help to normalize
these crazy heights.
If there are no up/down data in the centreline, therion calculates
up/down dimensions from shots from a given station. It is not a
perfect algorithm and in your case, there is some issue. Placing a
point dimension close to the station should override this
calculation.
HTH, S.
On Mon, 1 Feb 2021 at 23:10, Benedikt Hallinger 
wrote:
It's hard to isolate.
The structure is like this:
Hirlatzhoehle/Zubringer/,
where Zubringer contains more surveys.
Each folder has its own therion/ subfolder containing the therion
sources.
If i do "source ../../../Hirlatzhoehle/therion/Hirlatzhoehle.th [1]"
the
bug
occurs.
That command sources the entire cave.
If i do source just the region with "source
../../../Hirlatzhoehle/Zubringer/therion/Zubringer.th [2]" (which
contains
essentially the same maps and scraps!) the bug occurs.
I have no idea how to track this don further, since we already talk
about alot of data (2.4 km).
Am 2021-02-01 21:37, schrieb Benedikt Hallinger:
I try to boil it down
Am 2021-02-01 21:12, schrieb Stacho Mudrak:
Hmmm, even scraps extending far beyond a known station could

 cause a


problem - usually, it is the case with steep passages. In your

 case,


it looks like some outline problem.
Are you able to isolate such scrap and send me some minimalistic
sample?
Thanks, S.
On Mon, 1 Feb 2021 at 20:10, Benedikt Hallinger

 


wrote:
Hi, thanks for responding,
i have the problem only tested with the lox.
The red box fits nicely my selected data.
The survex file also is OK.
Probably it's caused by artifacts, see screenshot.
Thats an old bug, and caused by some scraps extending far beyond

 a


known
station (walls are marked unsurveyed).
Am 2021-02-01 19:52, schrieb Stacho Mudrak:
Hi Beni,
thanks for review.
Are you having coloring problem with .lox file or .pdf map?
I have tried on my dataset, but when I select whole cave -

 entire


color range is used - from magenta to red.
When I select just a part of the cave, coloring changes and the
whole
range is used for selected part.
Does your red rectangle fit selected data or is it much bigger?

 If


the
latter is the case, there must be some artifacts still

 remaining -


that were not removed with selection. Maybe some stations? Does
this
problem remain also with aven .3d export?
It would be great if we could find this bug before therion goes

 to


debian release.
S.
On Mon, 1 Feb 2021 at 10:17, Benedikt Hallinger

wrote:
Checked it, looks good for me (data selection, a

Re: [Therion] Splays appearing when not selected

2021-02-02 Thread Benedikt Hallinger

Hm, that didn't help, unfortunately.
in the meantime I also tried coloring the PDF by altitude, this is not 
affected and working like expected.


Martin has readonly svn access to the data and may investigate in the 
dataset?

I just unlocked it for that purpose.

The affected thconfig is svn/Hirlatzhoehle/Zubringer/therion/thconfig
and the scrap in question is in  
svn/Hirlatzhoehle/Zubringer/1/therion/1.1.plan-2-b.th2

The last known station is 1.2.26j

In the thconfig I noted the following (just local here)

# Hirlatzdaten importieren
source ../../../Hirlatzhoehle/therion/Hirlatzhoehle.th  # wrong 
dimensions in lox
#source ../../../Hirlatzhoehle/Zubringer/therion/Zubringer.th   # works 
somewhat-ok in lox (still extruded to top of box, but the box itself is 
small)



Greetings,
Beni



Am 2021-02-02 6:31, schrieb Stacho Mudrak:

In that case and if there is just one station in this wrong scrap,
maybe inserting point dimensions with some reasonable -value [
 m] over this station in the scrap should help to normalize
these crazy heights.

If there are no up/down data in the centreline, therion calculates
up/down dimensions from shots from a given station. It is not a
perfect algorithm and in your case, there is some issue. Placing a
point dimension close to the station should override this calculation.

HTH, S.

On Mon, 1 Feb 2021 at 23:10, Benedikt Hallinger 
wrote:


It's hard to isolate.

The structure is like this:
Hirlatzhoehle/Zubringer/,
where Zubringer contains more surveys.
Each folder has its own therion/ subfolder containing the therion
sources.

If i do "source ../../../Hirlatzhoehle/therion/Hirlatzhoehle.th" the
bug
occurs.
That command sources the entire cave.

If i do source just the region with "source
../../../Hirlatzhoehle/Zubringer/therion/Zubringer.th" (which
contains
essentially the same maps and scraps!) the bug occurs.
I have no idea how to track this don further, since we already talk
about alot of data (2.4 km).

Am 2021-02-01 21:37, schrieb Benedikt Hallinger:

I try to boil it down

Am 2021-02-01 21:12, schrieb Stacho Mudrak:

Hmmm, even scraps extending far beyond a known station could

cause a

problem - usually, it is the case with steep passages. In your

case,

it looks like some outline problem.

Are you able to isolate such scrap and send me some minimalistic
sample?

Thanks, S.

On Mon, 1 Feb 2021 at 20:10, Benedikt Hallinger



wrote:


Hi, thanks for responding,

i have the problem only tested with the lox.
The red box fits nicely my selected data.
The survex file also is OK.

Probably it's caused by artifacts, see screenshot.
Thats an old bug, and caused by some scraps extending far beyond

a

known
station (walls are marked unsurveyed).

Am 2021-02-01 19:52, schrieb Stacho Mudrak:

Hi Beni,

thanks for review.

Are you having coloring problem with .lox file or .pdf map?

I have tried on my dataset, but when I select whole cave -

entire

color range is used - from magenta to red.

When I select just a part of the cave, coloring changes and the

whole

range is used for selected part.

Does your red rectangle fit selected data or is it much bigger?

If

the

latter is the case, there must be some artifacts still

remaining -

that were not removed with selection. Maybe some stations? Does

this

problem remain also with aven .3d export?

It would be great if we could find this bug before therion goes

to

debian release.

S.

On Mon, 1 Feb 2021 at 10:17, Benedikt Hallinger



wrote:


Checked it, looks good for me (data selection, and pdf map

printout

with
people showing up again), with one exception:

- I source all of the cave's data. (ok)
- Then i select jsut a part of it. (ok)
- The lox output contains just the selected part (ok)
- The altitude coloring is all the same, despite having

significant

altitude changes in the dataset.
The reason seems to be that the coloring is done according in
relation
to ALL the cave, not just the selected parts - in comparison

to

the

entire system the altitude difference is negligible, but i

expected

the
lox to generate the altitude band according to the actual

min/max

values
of the selected dataset.

$ therion -v
therion 5.5.6 (2020-12-27)
- using Proj 7.2.1, compiled against 7.2.1

But: therion compile cdf201b5bf921 has the same behaviour.

Am 2021-01-27 8:59, schrieb Benedikt Hallinger:

I just did apt-get update, and see 5.5.6ds1-5

That is the old version, right? I do wait for 5.5.6ds1-6 ?


Am 2021-01-26 16:16, schrieb Wookey:

On 2021-01-24 14:40 +0100, Benedikt Hallinger wrote:

Wookey, when is this expected to appear in testing?
I would test it


It's there now.

Wookey
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___

Re: [Therion] Splays appearing when not selected

2021-02-01 Thread Benedikt Hallinger

It's hard to isolate.

The structure is like this:
Hirlatzhoehle/Zubringer/,
where Zubringer contains more surveys.
Each folder has its own therion/ subfolder containing the therion 
sources.


If i do "source ../../../Hirlatzhoehle/therion/Hirlatzhoehle.th" the bug 
occurs.

That command sources the entire cave.

If i do source just the region with "source 
../../../Hirlatzhoehle/Zubringer/therion/Zubringer.th" (which contains 
essentially the same maps and scraps!) the bug occurs.
I have no idea how to track this don further, since we already talk 
about alot of data (2.4 km).



Am 2021-02-01 21:37, schrieb Benedikt Hallinger:

I try to boil it down

Am 2021-02-01 21:12, schrieb Stacho Mudrak:

Hmmm, even scraps extending far beyond a known station could cause a
problem - usually, it is the case with steep passages. In your case,
it looks like some outline problem.

Are you able to isolate such scrap and send me some minimalistic
sample?

Thanks, S.

On Mon, 1 Feb 2021 at 20:10, Benedikt Hallinger 
wrote:


Hi, thanks for responding,

i have the problem only tested with the lox.
The red box fits nicely my selected data.
The survex file also is OK.

Probably it's caused by artifacts, see screenshot.
Thats an old bug, and caused by some scraps extending far beyond a
known
station (walls are marked unsurveyed).

Am 2021-02-01 19:52, schrieb Stacho Mudrak:

Hi Beni,

thanks for review.

Are you having coloring problem with .lox file or .pdf map?

I have tried on my dataset, but when I select whole cave - entire
color range is used - from magenta to red.

When I select just a part of the cave, coloring changes and the

whole

range is used for selected part.

Does your red rectangle fit selected data or is it much bigger? If

the

latter is the case, there must be some artifacts still remaining -
that were not removed with selection. Maybe some stations? Does

this

problem remain also with aven .3d export?

It would be great if we could find this bug before therion goes to
debian release.

S.

On Mon, 1 Feb 2021 at 10:17, Benedikt Hallinger



wrote:


Checked it, looks good for me (data selection, and pdf map

printout

with
people showing up again), with one exception:

- I source all of the cave's data. (ok)
- Then i select jsut a part of it. (ok)
- The lox output contains just the selected part (ok)
- The altitude coloring is all the same, despite having

significant

altitude changes in the dataset.
The reason seems to be that the coloring is done according in
relation
to ALL the cave, not just the selected parts - in comparison to

the

entire system the altitude difference is negligible, but i

expected

the
lox to generate the altitude band according to the actual min/max
values
of the selected dataset.

$ therion -v
therion 5.5.6 (2020-12-27)
- using Proj 7.2.1, compiled against 7.2.1

But: therion compile cdf201b5bf921 has the same behaviour.

Am 2021-01-27 8:59, schrieb Benedikt Hallinger:

I just did apt-get update, and see 5.5.6ds1-5

That is the old version, right? I do wait for 5.5.6ds1-6 ?


Am 2021-01-26 16:16, schrieb Wookey:

On 2021-01-24 14:40 +0100, Benedikt Hallinger wrote:

Wookey, when is this expected to appear in testing?
I would test it


It's there now.

Wookey
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk




https://mailman.speleo.sk/listinfo/therion___

Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Splays appearing when not selected

2021-02-01 Thread Benedikt Hallinger

I try to boil it down

Am 2021-02-01 21:12, schrieb Stacho Mudrak:

Hmmm, even scraps extending far beyond a known station could cause a
problem - usually, it is the case with steep passages. In your case,
it looks like some outline problem.

Are you able to isolate such scrap and send me some minimalistic
sample?

Thanks, S.

On Mon, 1 Feb 2021 at 20:10, Benedikt Hallinger 
wrote:


Hi, thanks for responding,

i have the problem only tested with the lox.
The red box fits nicely my selected data.
The survex file also is OK.

Probably it's caused by artifacts, see screenshot.
Thats an old bug, and caused by some scraps extending far beyond a
known
station (walls are marked unsurveyed).

Am 2021-02-01 19:52, schrieb Stacho Mudrak:

Hi Beni,

thanks for review.

Are you having coloring problem with .lox file or .pdf map?

I have tried on my dataset, but when I select whole cave - entire
color range is used - from magenta to red.

When I select just a part of the cave, coloring changes and the

whole

range is used for selected part.

Does your red rectangle fit selected data or is it much bigger? If

the

latter is the case, there must be some artifacts still remaining -
that were not removed with selection. Maybe some stations? Does

this

problem remain also with aven .3d export?

It would be great if we could find this bug before therion goes to
debian release.

S.

On Mon, 1 Feb 2021 at 10:17, Benedikt Hallinger



wrote:


Checked it, looks good for me (data selection, and pdf map

printout

with
people showing up again), with one exception:

- I source all of the cave's data. (ok)
- Then i select jsut a part of it. (ok)
- The lox output contains just the selected part (ok)
- The altitude coloring is all the same, despite having

significant

altitude changes in the dataset.
The reason seems to be that the coloring is done according in
relation
to ALL the cave, not just the selected parts - in comparison to

the

entire system the altitude difference is negligible, but i

expected

the
lox to generate the altitude band according to the actual min/max
values
of the selected dataset.

$ therion -v
therion 5.5.6 (2020-12-27)
- using Proj 7.2.1, compiled against 7.2.1

But: therion compile cdf201b5bf921 has the same behaviour.

Am 2021-01-27 8:59, schrieb Benedikt Hallinger:

I just did apt-get update, and see 5.5.6ds1-5

That is the old version, right? I do wait for 5.5.6ds1-6 ?


Am 2021-01-26 16:16, schrieb Wookey:

On 2021-01-24 14:40 +0100, Benedikt Hallinger wrote:

Wookey, when is this expected to appear in testing?
I would test it


It's there now.

Wookey
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk




https://mailman.speleo.sk/listinfo/therion___

Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Splays appearing when not selected

2021-02-01 Thread Benedikt Hallinger

Yes, the scraps are like this (s=station:)

[good scrap: s1 s2 s3]
joined
[bad scrap: s3 ..only walls]


Am 2021-02-01 20:19, schrieb Martin Sluka via Therion:

1. 2. 2021 v 20:10, Benedikt Hallinger :

Probably it's caused by artifacts, see screenshot.
Thats an old bug, and caused by some scraps extending far beyond a 
known station (walls are marked unsurveyed).


I had the same artifact when I created two overlapped scraps of the
same part of passage referenced by the same stations.

Martin
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Splays appearing when not selected

2021-02-01 Thread Benedikt Hallinger

Hi, thanks for responding,

i have the problem only tested with the lox.
The red box fits nicely my selected data.
The survex file also is OK.

Probably it's caused by artifacts, see screenshot.
Thats an old bug, and caused by some scraps extending far beyond a known 
station (walls are marked unsurveyed).



Am 2021-02-01 19:52, schrieb Stacho Mudrak:

Hi Beni,

thanks for review.

Are you having coloring problem with .lox file or .pdf map?

I have tried on my dataset, but when I select whole cave - entire
color range is used - from magenta to red.

When I select just a part of the cave, coloring changes and the whole
range is used for selected part.

Does your red rectangle fit selected data or is it much bigger? If the
latter is the case, there must be some artifacts still remaining -
that were not removed with selection. Maybe some stations? Does this
problem remain also with aven .3d export?

It would be great if we could find this bug before therion goes to
debian release.

S.

On Mon, 1 Feb 2021 at 10:17, Benedikt Hallinger 
wrote:


Checked it, looks good for me (data selection, and pdf map printout
with
people showing up again), with one exception:

- I source all of the cave's data. (ok)
- Then i select jsut a part of it. (ok)
- The lox output contains just the selected part (ok)
- The altitude coloring is all the same, despite having significant
altitude changes in the dataset.
The reason seems to be that the coloring is done according in
relation
to ALL the cave, not just the selected parts - in comparison to the
entire system the altitude difference is negligible, but i expected
the
lox to generate the altitude band according to the actual min/max
values
of the selected dataset.

$ therion -v
therion 5.5.6 (2020-12-27)
- using Proj 7.2.1, compiled against 7.2.1

But: therion compile cdf201b5bf921 has the same behaviour.

Am 2021-01-27 8:59, schrieb Benedikt Hallinger:

I just did apt-get update, and see 5.5.6ds1-5

That is the old version, right? I do wait for 5.5.6ds1-6 ?


Am 2021-01-26 16:16, schrieb Wookey:

On 2021-01-24 14:40 +0100, Benedikt Hallinger wrote:

Wookey, when is this expected to appear in testing?
I would test it


It's there now.

Wookey
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Splays appearing when not selected

2021-02-01 Thread Benedikt Hallinger
Checked it, looks good for me (data selection, and pdf map printout with 
people showing up again), with one exception:



- I source all of the cave's data. (ok)
- Then i select jsut a part of it. (ok)
- The lox output contains just the selected part (ok)
- The altitude coloring is all the same, despite having significant 
altitude changes in the dataset.
  The reason seems to be that the coloring is done according in relation 
to ALL the cave, not just the selected parts - in comparison to the 
entire system the altitude difference is negligible, but i expected the 
lox to generate the altitude band according to the actual min/max values 
of the selected dataset.



$ therion -v
therion 5.5.6 (2020-12-27)
  - using Proj 7.2.1, compiled against 7.2.1


But: therion compile cdf201b5bf921 has the same behaviour.



Am 2021-01-27 8:59, schrieb Benedikt Hallinger:

I just did apt-get update, and see 5.5.6ds1-5

That is the old version, right? I do wait for 5.5.6ds1-6 ?


Am 2021-01-26 16:16, schrieb Wookey:

On 2021-01-24 14:40 +0100, Benedikt Hallinger wrote:

Wookey, when is this expected to appear in testing?
I would test it


It's there now.

Wookey
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Splays appearing when not selected

2021-01-27 Thread Benedikt Hallinger

I just did apt-get update, and see 5.5.6ds1-5

That is the old version, right? I do wait for 5.5.6ds1-6 ?


Am 2021-01-26 16:16, schrieb Wookey:

On 2021-01-24 14:40 +0100, Benedikt Hallinger wrote:

Wookey, when is this expected to appear in testing?
I would test it


It's there now.

Wookey
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Splays appearing when not selected

2021-01-24 Thread Benedikt Hallinger
Wookey, when is this expected to appear in testing?
I would test it

> Am 24.01.2021 um 13:57 schrieb Wookey :
> 
> On 2021-01-23 11:34 +0100, Stacho Mudrak wrote:
>>   Hi Axel,
>>   these big numbers are just NaNs in fact. It does not affect any output -
>>   it just means the map has no altitude associated with it. But thanks for
>>   finding out, I have tried to fix it in the latest commit, could you please
>>   try?
> 
> I've included this fix (and the other minor one you did) in the debian
> package (as 5.5.6ds1-5).  It turns out that updates to non-core packages 
> (which
> definately includes Therion :-) are actually allowed until 12th Feb,
> not 12th Jan so it should still make it the next stable release.
> 
> It looks like this stable release of therion should be in quite good shape.
> 
> Wookey
> -- 
> Principal hats:  Linaro, Debian, Wookware, ARM
> http://wookware.org/
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Splays appearing when not selected

2021-01-20 Thread Benedikt Hallinger
I just recompiled and can confirm that my problem indeed was the same 
and is gone with therion 5.5.6+5208297 (2021-01-19)


Good work!
Thank you!


Am 2021-01-19 22:00, schrieb Benedikt Hallinger:

Hello,
Axel and i had the same bug, and we noticed that when explicitely
select the wall source at the export lox command, the issue is solved
("export model -o out.lox -wall-source maps").

Personally i would assume this is a bug, because when i select
datasets i would want the remaining data to be not present in my
output. That is the purpose of selecting in the first place, isn’t it?


Am 19.01.2021 um 15:48 schrieb Tarquin Wilton-Jones via Therion 
:


Hi Rhys,

I have noticed something that I am not sure if it's a bug or not. I 
am

trying to export a selected bit of a survey as a loch file:


From my experience...
Lox file export will always select all of the survey that were 
imported.

It will generate walls using all splays. It will use all scraps to
enhance the passage walls, even if you do not select them. If they 
exist

in any surveys or subsurveys, they are used, no matter which survey or
map is selected.

I always assumed this was intentional behaviour.

Personally, I have wanted to be able to select the specific maps that
should be used for lox, since I may have more than one version of a
survey in my data - traces over an old low quality survey, and a new
high quality survey of the same cave. Lox export insists on trying to
merge both versions rather than being able to select just one of them.

Cheers,

Tarquin
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Splays appearing when not selected

2021-01-19 Thread Benedikt Hallinger
Hello,
Axel and i had the same bug, and we noticed that when explicitely select the 
wall source at the export lox command, the issue is solved ("export model -o 
out.lox -wall-source maps").

Personally i would assume this is a bug, because when i select datasets i would 
want the remaining data to be not present in my output. That is the purpose of 
selecting in the first place, isn’t it?


> Am 19.01.2021 um 15:48 schrieb Tarquin Wilton-Jones via Therion 
> :
> 
> Hi Rhys,
> 
>> I have noticed something that I am not sure if it's a bug or not. I am
>> trying to export a selected bit of a survey as a loch file:
> 
> From my experience...
> Lox file export will always select all of the survey that were imported.
> It will generate walls using all splays. It will use all scraps to
> enhance the passage walls, even if you do not select them. If they exist
> in any surveys or subsurveys, they are used, no matter which survey or
> map is selected.
> 
> I always assumed this was intentional behaviour.
> 
> Personally, I have wanted to be able to select the specific maps that
> should be used for lox, since I may have more than one version of a
> survey in my data - traces over an old low quality survey, and a new
> high quality survey of the same cave. Lox export insists on trying to
> merge both versions rather than being able to select just one of them.
> 
> Cheers,
> 
> Tarquin
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Therion 5.5.5 bug - statistics missing from header

2020-12-26 Thread Benedikt Hallinger

GLX issue seems to be fixed in the debian package!

Am 2020-12-23 15:06, schrieb Benedikt Hallinger:

Ok wookey, will check that regarding the glx Patch issue then.


Am 23.12.2020 um 14:26 schrieb Wookey :

On 2020-12-23 10:42 +0100, Stacho Mudrak wrote:

  I am sorry, one bug fixed, another introduced :/
  It should be OK in 5a614ef. Windows binaries should be 
automatically built

  within half an hour.


And the Debian packages are now built in unstable. They should move 
into testing in 5 days time.



Wookey
--
Principal hats:  Linaro, Debian, Wookware, ARM
http://wookware.org/
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Therion 5.5.5 bug - statistics missing from header

2020-12-26 Thread Benedikt Hallinger
Here Explorers/etc statistics are missing with the debian package, sadly 
:(


Am 2020-12-25 23:07, schrieb Wookey:

On 2020-12-23 15:06 +0100, Benedikt Hallinger wrote:

Ok wookey, will check that regarding the glx Patch issue then.

> Am 23.12.2020 um 14:26 schrieb Wookey :
>
> On 2020-12-23 10:42 +0100, Stacho Mudrak wrote:
>>   I am sorry, one bug fixed, another introduced :/
>>   It should be OK in 5a614ef. Windows binaries should be automatically built
>>   within half an hour.
>
> And the Debian packages are now built in unstable. They should move into 
testing in 5 days time.


Therion 5.5.5 is now in debian testing (for testing :-)
https://tracker.debian.org/pkg/therion

Wookey
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Therion 5.5.5 bug - statistics missing from header

2020-12-23 Thread Benedikt Hallinger
Ok wookey, will check that regarding the glx Patch issue then.

> Am 23.12.2020 um 14:26 schrieb Wookey :
> 
> On 2020-12-23 10:42 +0100, Stacho Mudrak wrote:
>>   I am sorry, one bug fixed, another introduced :/
>>   It should be OK in 5a614ef. Windows binaries should be automatically built
>>   within half an hour.
> 
> And the Debian packages are now built in unstable. They should move into 
> testing in 5 days time.
> 
> 
> Wookey
> -- 
> Principal hats:  Linaro, Debian, Wookware, ARM
> http://wookware.org/
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Converter for Compass to Therion

2020-12-20 Thread Benedikt Hallinger

Cool!
I added it to the complimentary cave softwares wiki page: 
https://therion.speleo.sk/wiki/contrib:complimentarycaveapps


Am 2020-12-20 11:44, schrieb Roger Schuster:

Hello cavers,

for those of you who either use the "Compass" cave surveying package
together with Therion or need to convert legacy data from Compass
there is something to try out. I wrote a little converter that
transfers Compass raw data (*.dat) to Therion (*.th). You can find a
description and the source code at



and a compiled package for download at



Please give it a try, I hope it is useful for some of you!

Best regards,

Roger

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Italian translation update

2020-12-16 Thread Benedikt Hallinger

That is a good way to go, it's what i always do.

You can fork it via githubs website and then clone that locally.
When you create and push your branch to _your_ repo, github offers an 
option at your forks main site to create such a pull request in the 
therion repo.



Am 2020-12-17 0:09, schrieb Rodrigo Severo via Therion:

‐‐‐ Original Message ‐‐‐

 Em quarta-feira, dezembro 16, 2020 7:23 PM, Fra
 escreveu:


Hello everyone,

I recently started using Therion and I noticed that the Italian
translation has some typos and it was probably not updated for quite
a while.

I updated the /thlang/texts.txt file, is there a way to get
permissions to push it with git? Or else can I just send the updated
file to anybody so it can maybe be included in the next update?


I believe you should fork Therion's github project, create a branch in
your fork just for these updates, commit your changes there and them
make a push request to Therion original repository.

Regards,

Rodrigo


Thank you!

Best regards,

Francesco Bellamoli

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] FYI Therion explorer name and explored length counting insight

2020-11-28 Thread Benedikt Hallinger
Thank you very much for sharing!

> Am 29.11.2020 um 06:15 schrieb Bruce Mutton :
> 
> 
> This is just an ‘I should have known better’ story, in case you are 
> interested…
>  
> Learnings about map output statistics (that are or probably should have been 
> self-evident):
> This is for a cave where some plan scraps were drawn on the original 
> centreline and were retained in the final map, when the entire original 
> survey was made duplicate due to a subsequent more comprehensive survey that 
> was flagged ‘not-duplicate’. For the extended elevation scraps, these were 
> all drawn on the subsequent ‘not-duplicate’ survey.
> If a whole centreline is made ‘flags duplicate’ then the explorers names 
> appear in the list, but not the length that they explored (it is shown as 
> zero).  You must (also) add the explorers to the corresponding 
> ‘not-duplicated’ centreline to have their explored length credited!
> Only the statistics for the centrelines that are (partly) included in scraps 
> that are output are presented.
>  
> For this plan map, where the duplicated centrelines are actually the ones for 
> which the scraps are exported, the ‘not-duplicate’ centrelines did not have 
> the explorer’s names entered (repeated) and so their names are recorded, but 
> their survey length is not.  Lesson: Always record the original explorers in 
> subsequent survey centrelines.  This behaviour is nice because it alerts the 
> author to a problem with their data entry.
> 
>  
> For this extended map, where the ‘not-duplicate’ surveys have scraps 
> exported, but the duplicate surveys do not, the ‘duplicate’ explorers names 
> are not presented.  This is appropriate behaviour.
> But why is there a surveyor whose name appears with a zero length?  I think 
> it is because, for the entire ‘not-duplicate’ survey, I only contributed to 
> one survey leg (and it is in its very own centreline) and this leg is a 
> surface leg connecting the subsequent ‘not-duplicate’ survey to the original 
> ‘duplicate’ survey.  So my name is recorded as a surveyor, but I have no 
> ‘cave length’ and Therion records zero.  Possibly this is not ideal 
> behaviour, but it would seem inconsistent to change it.
> 
> Here is part of the html survey-list for the cave, with the statistics 
> discussed above highlighted.
> 
>  
> I then thought that if I associated the cave survey with the plan and the 
> elevation maps,
> 
> the statistics might have been better (a feature that I was involved in 
> requesting if I recall correctly).  They are.
> For the plan, there is no change (I still need to add the original explorers 
> to the ‘not-duplicate’ centrelines).
> 
>  
> And for the extended elevation, the duplicate zero length explorers names are 
> brought in, as have the surveyors for the centrelines for which there are no 
> scraps.  It matches the plan statistics.  Perfect (once I fix my centreline 
> metadata as mentioned above).
> 
>  
> Bruce
>  
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Vertical scalebar created by Juraj Halama added to wiki

2020-11-26 Thread Benedikt Hallinger

Cool, do you have a link? :)

Am 2020-11-26 11:55, schrieb Martin Sluka via Therion:

Vertical scalebar created by Juraj Halama added to wiki

Martin Sluka
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Colorizing sections of centerline

2020-11-15 Thread Benedikt Hallinger
No idea, but i usually just use the generated .3d file and aven at this stage.
Aven can also generate screenshots for printing, and can color the centerline 
based on various metrics.

> Am 15.11.2020 um 12:48 schrieb Alvaro Aguilera :
> 
> Hello everyone,
> 
> is there a way to change the color of different sections of the centerline?
> 
> I'm at the stickmap-stage of the survey and it would be really helpful to put 
> some colors to it.
> 
> Regards
> Alvaro
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Connection of Really straight mine level to surveyed passage

2020-11-15 Thread Benedikt Hallinger
Another option would be to get the coordinates of the linking mine station and 
fixing it, and just giving that station a „perfect“ Standards deviation (isn’t 
that default if not given?)

> Am 14.11.2020 um 21:29 schrieb Ben Cooper :
> 
> 
> Hi Alistair
> I would definitely link all the survey centrelines. The implication is that 
> you have some errors in the survey, but you know that the straight mine level 
> needs to be straight so the error isn’t there. One thing you could try is to 
> set the SD for the level to be very low, and the SD for the rest of the cave 
> to be quite high. When Therion distributes the error, most of this should go 
> to the survey sections either the highest SD, and the level should be less 
> distorted. 
> Best regards 
> Ben
> 
> 
> Sent from my iPhone
> 
>>> On 14 Nov 2020, at 11:49, alastair gott  wrote:
>>> 
>> 
>> HI Therion people,
>> 
>> I'm helping with a project we've got a cave/mine system with a really 
>> straight mine level for one of the entrances, which we have the centreline 
>> data for (but no sketches to show where the points are).
>> 
>> When the system was joined up together with all the entrances there was a 
>> kink in the mine level. so to counteract this, I removed some of the unknown 
>> survey points in the centre of the level and hung the survey on some points 
>> at the beginning and end of the level.
>> 
>> I now want to add in a section of cave in the centre of the level. I have 
>> connected this quite well in a map at a lower level with just the one 
>> entrance coordinates in it, but when I run the full map with all the 
>> entrances in, the model then tries to remove the loop error by doing it's 
>> statisical wizardry.
>> 
>> Unfortunately in doing so, it shifts the start of the level (the entrance) 
>> to the east. and then leaves the section of cave out unconnected.
>> 
>> If anyone can help, then the config for the full system is here: 
>> http://www.cave-registry.org.uk/svn/PeakDistrict/Castleton/peak_speedwell_model/
>> 
>> This is what I get:
>> 
>> 
>> 
>> 
>> the config for the one entrance coordinate is here: 
>> http://www.cave-registry.org.uk/svn/PeakDistrict/Castleton/peak_speedwell_model/speedwell_mine/Speedwell_mine_thconfig.thc
>> 
>> and these are the two selects if you want to run it at the lower level:
>> select bottomless_pit.speedwell_mine
>> select oakden_level.speedwell_mine
>> This is what I want:
>> 
>> 
>> 
>> 
>> 
>> If I add in a survey point to hook it to, then I get this:
>> 
>> 
>> 
>> Rather than this:
>> 
>> 
>> 
>> Adding in more survey points further down the passage to the south only 
>> increases the amount of distortion in a small space of passage. as there are 
>> three loop closures at the bottom of the picture [just below the red circle) 
>> which the model is running (i've just not included the maps on the drawing 
>> for clarity).
>> 
>> 
>> Regards,
>> Alastair Gott.
>> 
>> alastairg...@hotmail.com,
>> M: 07931779380.
>> ___
>> Therion mailing list
>> Therion@speleo.sk
>> https://mailman.speleo.sk/listinfo/therion
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Symbol assign - use metapost def instead

2020-11-02 Thread Benedikt Hallinger

I just did that with the AUT symbol set and it looks good:

--- snip 
layout 
...

code metapost
def l_wall_underlying_UIS (expr Path) = 
l_wall_bedrock_UIS (Path); enddef;
def l_wall_presumed_UIS (expr Path) = l_wall_bedrock_UIS 
(Path); enddef;
def l_wall_pit_AUT (expr Path) = l_wall_bedrock_UIS 
(Path); enddef;
def l_wall_sand_AUT (expr Path) = l_wall_bedrock_UIS 
(Path); enddef;
def l_wall_clay_AUT (expr Path) = l_wall_bedrock_UIS 
(Path); enddef;
def l_wall_pebbles_AUT (expr Path) = l_wall_bedrock_UIS 
(Path); enddef;
def l_wall_debris_AUT (expr Path) = l_wall_bedrock_UIS 
(Path); enddef;
def l_wall_blocks_AUT (expr Path) = l_wall_bedrock_UIS 
(Path); enddef;
def l_wall_ice_AUT (expr Path) = l_wall_bedrock_UIS 
(Path); enddef;
def l_wall_underlying_AUT (expr Path) = 
l_wall_bedrock_UIS (Path); enddef;
def l_wall_overlying_AUT (expr Path) = 
l_wall_bedrock_UIS (Path); enddef;
def l_wall_moonmilk_AUT (expr Path) = l_wall_bedrock_UIS 
(Path); enddef;
def l_wall_flowstone_AUT (expr Path) = 
l_wall_bedrock_UIS (Path); enddef;

endcode

...
endlayout
--- snap --


Am 2020-11-02 9:25, schrieb Bruce Mutton:

I have done exactly that, but with conjectural water to be shown with
the permanent water symbol.
Need to use a little metapost in your layout...

  #replace conjectural waterflow symbol with permanent symbol to
improve visibility
code metapost
def l_waterflow_conjectural (expr Path) =
  l_waterflow_permanent_UIS (Path);
enddef;
endcode

You need to do a similar thing with the definition of your debris and
presumed wall lines to show instead as bedrock.
Bruce

-Original Message-
From: Therion  On Behalf Of Pavel Herich
Sent: Monday, 2 November 2020 20:27
To: List for Therion users 
Subject: [Therion] Symbol assign

Hi,
when exporting maps to a large scale, I´d like to assign wall:debris,
wall:presumed etc. to just "wall". "Symbol-assign line wall:debris
wall:bedrock" in config file doesn´t work, any idea?
Thank you
Pavel
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Symbol assign

2020-11-01 Thread Benedikt Hallinger
No idea, but i second the reques - that would be utterly useful for me 
too!


Am 2020-11-02 8:26, schrieb Pavel Herich:

Hi,
when exporting maps to a large scale, I´d like to assign wall:debris,
wall:presumed etc. to just "wall". "Symbol-assign line wall:debris
wall:bedrock" in config file doesn´t work, any idea?
Thank you
Pavel
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Creating PDF/A map files

2020-10-22 Thread Benedikt Hallinger

Hi,
instalation of veraPDF was straightforward.

For a test run i get this:
failedChecks="1846">

This will be a long road.

But your idea is quite good, as it will preserve valuable work.
OTOH the PDFs are just results, what is really valuable would be the 
source files. And they are pretty good to archive already, as they are 
just text files!
Therion should be fine to run a long time into the future, hopefully. 
And as its OpenSource, there are no constraints whatsoever to fix bugs 
in the future to make it work again...



Am 2020-10-22 15:17, schrieb Bill Gee:

Hello everyone -

I propose a new feature for Therion. This will probably take some
work, and I am sure there will be discussion about how to implement
it.

It seems to me that the maps we produce with Therion are likely going
to be stored for a very long time, perhaps running into multiple tens
of years. As we all know, computer technology over that amount of time
will change drastically. Just think about the contrast in both
hardware and software in the last 25 years - from Windows 95 running
on 486dx processors to Linux and Windows 10 running on i7 and i9
processors.

I think we have some obligation to make sure the cave maps we generate
are still usable many years from now. Saving them in PDF format is a
large - but incomplete - step in that direction.

The new feature I propose is to modify the PDF creation code so that
it produces files that are PDF/A version 1b (or possibly version 2)
compliant.

https://en.wikipedia.org/wiki/PDF/A [1]

I have checked all of the PDF files I created in Therion, and none of
them are flagged as PDF/A compliant. It is possible that they are, in
fact, compliant and simply do not have the necessary flag. The experts
can check that against the PDF/A specifications.

Existing PDF documents can be checked for PDF/A compliance with a
command-line tool called "verapdf". The web site for that tool is

https://openpreservation.org/products/verapdf/ [2]

It is possible to use GhostScript to transform an existing PDF into a
PDF/A file. The command line is daunting.

https://www.mcbsys.com/blog/2018/10/batch-convert-pdf-to-pdf-a-2018-edition/
[3]

I tried the GhostScript conversion on one of my Therion maps.
Immediately at startup it produced this message three times:

"GPL Ghostscript 9.53.3: UTF16BE text string detected in DOCINFO
cannot be represented in XMP for PDF/A1, reverting to normal PDF
output"

The process continued running and took about 10 minutes. The resulting
file failed verapdf analysis. It also increased the file size from 4.3
megabytes to over 52 megabytes! The output file displayed correctly in
Okular.

I do not have any idea how Therion produces PDF files. It probably
uses some combination of TeX and GhostScript to get it done. The new
feature may be as simple as adding some additional parameters to the
command lines that call the external programs.

Let the discussion begin! :-)

--

Bill Gee



Links:
--
[1] https://en.wikipedia.org/wiki/PDF/A
[2] https://openpreservation.org/products/verapdf/
[3] 
https://www.mcbsys.com/blog/2018/10/batch-convert-pdf-to-pdf-a-2018-edition/

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Survex (loop closure) related fixes

2020-10-14 Thread Benedikt Hallinger
I just made a new issue ticket: 
https://github.com/therion/therion/issues/278



Am 2020-10-14 22:53, schrieb Benedikt Hallinger:

Hi there,
i performed a git bisect (the very first in my lifetime, and that is
really a nice and easy tool to search such things!!!).

The commits at and before c7d41d9 compiled the cave sucessfully 10 of 
10 times.


1c1fcf14e4eaf6e0bb89da513702ad9b89204ed8 is the first bad commit
commit 1c1fcf14e4eaf6e0bb89da513702ad9b89204ed8
Author: mbudaj 
Date:   Wed Aug 19 07:25:53 2020 +0200

dynamically load EPSG/ESRI labels in Proj>=6

https://github.com/therion/therion/commit/1c1fcf14e4eaf6e0bb89da513702ad9b89204ed8

This compiles unstable like described before.



Am 2020-10-14 22:32, schrieb Wookey:

On 2020-10-14 22:05 +0200, Benedikt Hallinger wrote:

OK, now i got something.

Guess what - one of about 5 compiles runs trough.
This leads me to think that there is a race condition or something 
else

somewhere, overwriting memory of the to-be-checked string.
I'm pretty sure now that this is not a problem with the dataset per 
se, but

some memory issue of the compiled therion program.

The following pattern resulted in several runs with 5.5.2 (n=failed, 
y=ok):

nnnynnynnynynynynnny


Oh dear. This could be fun to track down

Better check 5.5.1 always works, not just more often. But if it does
then careful examination of what changed is in order. Maybe send some
others the dataset to see who can reproduce (windows/linux/macOS)?

Wookey
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Survex (loop closure) related fixes

2020-10-14 Thread Benedikt Hallinger

Hi there,
i performed a git bisect (the very first in my lifetime, and that is 
really a nice and easy tool to search such things!!!).


The commits at and before c7d41d9 compiled the cave sucessfully 10 of 10 
times.


1c1fcf14e4eaf6e0bb89da513702ad9b89204ed8 is the first bad commit
commit 1c1fcf14e4eaf6e0bb89da513702ad9b89204ed8
Author: mbudaj 
Date:   Wed Aug 19 07:25:53 2020 +0200

dynamically load EPSG/ESRI labels in Proj>=6

https://github.com/therion/therion/commit/1c1fcf14e4eaf6e0bb89da513702ad9b89204ed8

This compiles unstable like described before.



Am 2020-10-14 22:32, schrieb Wookey:

On 2020-10-14 22:05 +0200, Benedikt Hallinger wrote:

OK, now i got something.

Guess what - one of about 5 compiles runs trough.
This leads me to think that there is a race condition or something 
else

somewhere, overwriting memory of the to-be-checked string.
I'm pretty sure now that this is not a problem with the dataset per 
se, but

some memory issue of the compiled therion program.

The following pattern resulted in several runs with 5.5.2 (n=failed, 
y=ok):

nnnynnynnynynynynnny


Oh dear. This could be fun to track down

Better check 5.5.1 always works, not just more often. But if it does
then careful examination of what changed is in order. Maybe send some
others the dataset to see who can reproduce (windows/linux/macOS)?

Wookey
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Survex (loop closure) related fixes

2020-10-14 Thread Benedikt Hallinger

OK, now i got something.

Guess what - one of about 5 compiles runs trough.
This leads me to think that there is a race condition or something else 
somewhere, overwriting memory of the to-be-checked string.
I'm pretty sure now that this is not a problem with the dataset per se, 
but some memory issue of the compiled therion program.


The following pattern resulted in several runs with 5.5.2 (n=failed, 
y=ok):

nnnynnynnynynynynnny




Am 2020-10-14 21:53, schrieb Martin Sluka via Therion:

I use BBEdit on MacOSX and it has all features you mentioned.

Martin

14. 10. 2020 v 21:17, Tarquin Wilton-Jones via Therion 
:


On 14/10/2020 20:08, Martin Sluka via Therion wrote:
What about multifile search for”P]” in text files? It is quite 
strange combination of characters and they are part of ASCII set.


If you have an editor that is working in the same character set as
Therion, that could work. Definitely worth a try.

I suspect the fault relates to character set conversion though. Such 
as

an editor working in 8859-1, and Therion trying to interpret it in
UTF-8. Most basic text editors don't let you control character set, 
and

just work in the system default (Windows-1252 on English-based Windows
systems). Even if they do, most users are not aware of what it all
means, and just stick with the default.
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Survex (loop closure) related fixes

2020-10-14 Thread Benedikt Hallinger

I sent Martin a dataset to investigate.
Hopefully he can spot something...


Am 2020-10-14 21:40, schrieb Benedikt Hallinger:

Hello all, thanks for all the hints.

What about multifile search for”P]” in text files? It is quite strange 
combination of characters and they are part of ASCII set.

I had that in mind, but i don't think its the problem here. If it
would, 5.5.1 should fail too...


What about multifile search for”P]”

With every run the string changes. I have seen that before with C++
code, that was when i tried to put out a memory adress instead of the
actual string. Maybe the passed string is already memory garbage at
this point?


QA folks start grinning. Generic instructions below:

Uh, then i will have a grey beard finishing this. We talk about 130km
of cave in way over 600 files here.


I also commented the the error line in the source code that bails out
here, and everything (therion, but also the map) compiles just fine as
it should. Also the cartographers names print nicely.


Nonewithstanding i had a idea i went trough. A part of the cave is
done using an inkscape plugin, which converts the svg data into th2
files. That usually goes good, and did to therion 5.5.1.

I also was able to isolate a scrap line causing the problem (excerpt 
attached).

However, if i craft a very simple thconfig, it compiles fine; and the
isolated line looks not suspicious at all for me!

The problem occurs only if i try to render the whole cave (in a very
big scale 1:5000); if i craft a very simple thconfig and source only
the passage th file, it goes OK.
Could it be that somewhere some string buffer runs over when gathering
all the cartographers?
or that something else messes stuff up memory-wise, because the
dataset is so big already?

I'm out of ideas.


Am 2020-10-14 20:34, schrieb Benedikt Hallinger:

Hey Martin,
thanks for responding.
The exact same dataset compiles well with 5.5.1.
As far as i know, no special characters are used here.

As its rather huge, and i have no idea how to reduce the problem. It
surely must be somewhere in the .th2 files "author", since that is
probably the only place where this gets gathered from, isn't it?

I enhanced the thtexfonts.cxx on line 247 to print out the offending
string (if you want i make a PR for that) that now shows something
looking like garbage:
  ./therion: error -- Invalid utf-8 string! (offending string: 
'P]���U')



I probably need to wade trough the data manually.


Am 2020-10-14 20:04, schrieb Martin Budaj:

On Wed, Oct 14, 2020 at 10:38 AM Benedikt Hallinger
 wrote:


When trying to compile a specific plan map view PDF i get an error
about
UTF8. The compile runs fine with release-therion 5.5.1, however!
(i don't know if this is related)


Hi, there was no change in the processing of utf-8 strings between
5.5.1 and 5.5.2. Could you check the same data set is used by those
versions?

You should get this error if you use a unicode character outside of
the BMP (see
https://en.wikipedia.org/wiki/Plane_(Unicode)#Basic_Multilingual_Plane).
Do you such exotic characters?

Sending a minimal data sample would be helpful.

M.
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Survex (loop closure) related fixes

2020-10-14 Thread Benedikt Hallinger

Hello all, thanks for all the hints.

What about multifile search for”P]” in text files? It is quite strange 
combination of characters and they are part of ASCII set.
I had that in mind, but i don't think its the problem here. If it would, 
5.5.1 should fail too...



What about multifile search for”P]”
With every run the string changes. I have seen that before with C++ 
code, that was when i tried to put out a memory adress instead of the 
actual string. Maybe the passed string is already memory garbage at this 
point?



QA folks start grinning. Generic instructions below:
Uh, then i will have a grey beard finishing this. We talk about 130km of 
cave in way over 600 files here.



I also commented the the error line in the source code that bails out 
here, and everything (therion, but also the map) compiles just fine as 
it should. Also the cartographers names print nicely.



Nonewithstanding i had a idea i went trough. A part of the cave is done 
using an inkscape plugin, which converts the svg data into th2 files. 
That usually goes good, and did to therion 5.5.1.


I also was able to isolate a scrap line causing the problem (excerpt 
attached).
However, if i craft a very simple thconfig, it compiles fine; and the 
isolated line looks not suspicious at all for me!


The problem occurs only if i try to render the whole cave (in a very big 
scale 1:5000); if i craft a very simple thconfig and source only the 
passage th file, it goes OK.
Could it be that somewhere some string buffer runs over when gathering 
all the cartographers?
or that something else messes stuff up memory-wise, because the dataset 
is so big already?


I'm out of ideas.


Am 2020-10-14 20:34, schrieb Benedikt Hallinger:

Hey Martin,
thanks for responding.
The exact same dataset compiles well with 5.5.1.
As far as i know, no special characters are used here.

As its rather huge, and i have no idea how to reduce the problem. It
surely must be somewhere in the .th2 files "author", since that is
probably the only place where this gets gathered from, isn't it?

I enhanced the thtexfonts.cxx on line 247 to print out the offending
string (if you want i make a PR for that) that now shows something
looking like garbage:
  ./therion: error -- Invalid utf-8 string! (offending string: 
'P]���U')



I probably need to wade trough the data manually.


Am 2020-10-14 20:04, schrieb Martin Budaj:

On Wed, Oct 14, 2020 at 10:38 AM Benedikt Hallinger
 wrote:


When trying to compile a specific plan map view PDF i get an error
about
UTF8. The compile runs fine with release-therion 5.5.1, however!
(i don't know if this is related)


Hi, there was no change in the processing of utf-8 strings between
5.5.1 and 5.5.2. Could you check the same data set is used by those
versions?

You should get this error if you use a unicode character outside of
the BMP (see
https://en.wikipedia.org/wiki/Plane_(Unicode)#Basic_Multilingual_Plane).
Do you such exotic characters?

Sending a minimal data sample would be helpful.

M.
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therionencoding  utf-8
##XTHERION## xth_me_area_adjust 0 0 1432.044359 1455.405165
##XTHERION## xth_me_area_zoom_to 100


# THIS HAS OFFENDING CHARACTERS:
scrap 237-plan1.3 -scale [0 0 90 0 0 0 500 0 inch] -projection plan -author 
2020.03.22 "Foo Bar"

# THIS DOES WORK:
#scrap 237-plan1.3 -scale [0 0 90 0 0 0 500 0 inch] -projection plan


line wall -subtype debris
  698.1766 498.9593
  698.9107 510.1675 698.4598 521.3301 693.7274 532.328
endline

point 1350.6446 56.0884 u:mappe -attr text 253
point 1017.9026 158.2627 passage-height -value 16
point 1264.195 71.1864 passage-height -value 12
point 905.4025 90.8898 passage-height -value 4
point 674.3731 473.9263 passage-height -value 1.1
point 956.171 212.2135 continuation -text [Schlot]
point 1058.3538 248.9031 continuation -text [Schlot]
point 742.8787 178.1511 altitude -align r
point 1231.4015 34.8879 altitude -align l
point 1103.6943 242.364 altitude -align r
point 710.4934 492.3343 altitude -align r
point 1353.6321 105.8449 station-name -scale xs
point 1237.7953 57.0631 station-name -scale xs
point 998.0274 167.6244 station-name -scale xs
point 676.8842 539.3195 station-name -scale xs
point 700.5987 294.6161 station-name -scale xs
point 729.1645 393.9866 label -text [Klamm] -align r -scale s
line border 
  1349.3419 95.0398
  1350.8979 92.9743 1351.8803 90.4498 1351.3281 86.6977
endline

point 1158.2586 159.375 debris -orientation 336.025125
point 967.0364 196.1817 height -value "+"
point 1065.6624 231.3641 height -value "+"
point 776.7726 142.1957 gradient -scale xs -orientation 258.18624432
line border -close on -id 237-plan1.3_debris_1 -visibility off
  684.8291 528.1967
  675.2952 519.2984
  684.1935

Re: [Therion] Survex (loop closure) related fixes

2020-10-14 Thread Benedikt Hallinger

Hey Martin,
thanks for responding.
The exact same dataset compiles well with 5.5.1.
As far as i know, no special characters are used here.

As its rather huge, and i have no idea how to reduce the problem. It 
surely must be somewhere in the .th2 files "author", since that is 
probably the only place where this gets gathered from, isn't it?


I enhanced the thtexfonts.cxx on line 247 to print out the offending 
string (if you want i make a PR for that) that now shows something 
looking like garbage:

  ./therion: error -- Invalid utf-8 string! (offending string: 'P]���U')


I probably need to wade trough the data manually.


Am 2020-10-14 20:04, schrieb Martin Budaj:

On Wed, Oct 14, 2020 at 10:38 AM Benedikt Hallinger
 wrote:


When trying to compile a specific plan map view PDF i get an error
about
UTF8. The compile runs fine with release-therion 5.5.1, however!
(i don't know if this is related)


Hi, there was no change in the processing of utf-8 strings between
5.5.1 and 5.5.2. Could you check the same data set is used by those
versions?

You should get this error if you use a unicode character outside of
the BMP (see
https://en.wikipedia.org/wiki/Plane_(Unicode)#Basic_Multilingual_Plane).
Do you such exotic characters?

Sending a minimal data sample would be helpful.

M.
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Survex (loop closure) related fixes

2020-10-14 Thread Benedikt Hallinger

I experimented a little bit more.

In the thconfig file I set some header data.
statistics explo off
statistics topo  off
statistics carto off
statistics copyright all

If i comment out the line
#statistics carto off
the compilation works again (then showing the people of course).
The same is true with "statistics carto all".

Why does turning off the carto yield invalid UTF8 data?




Am 2020-10-14 10:38, schrieb Benedikt Hallinger:

I tried to compile the model of the Hirlatz cave with it and it looks
good, from a big picture view.
The passages shifted sometimes slightly, as expected.

When trying to compile a specific plan map view PDF i get an error
about UTF8. The compile runs fine with release-therion 5.5.1, however!
(i don't know if this is related)


therion 5.5.2+4683494 (2020-10-13)
cavern - Survex 1.2.42
initialization file: therion.ini
reading ... done
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020/Debian)
(preloaded format=pdftex)
 restricted \write18 enabled.
entering extended mode
(./fonttest.tex
checking optional fonts csr10 csti10 csbx10 csss10 csssi10 ... NOT 
INSTALLED

This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020/Debian)
(preloaded format=pdftex)
 restricted \write18 enabled.
entering extended mode
(./fonttest.tex
checking optional fonts cmcyr10 cmcti10 cmcbx10 cmcss10 cmcssi10 ...
NOT INSTALLED
configuration file:
../../Dokumente/cave/HVHO/svn/Hirlatzhoehle/therion/plan.DOP.map.thconfig
reading ... done
reading source files ... done
preprocessing database ... done
./therion: warning -- year 1951 magnetic declination used for undated 
surveys

undated surveys:
155.Wilder_Westen.Hirlatzhoehle
323.Westen.Hirlatzhoehle
326.Hochdonnerbach.Hirlatzhoehle
scanning centreline tree ... done
searching for centerline loops ... done
calculating station coordinates ... done
average loop error: 1.98%
processing survey data ... done
calculating basic statistics ... done
processing extended elevation ... done
processing references ... done
selecting export objects ... done
processing projection plan ... done
average distortion: 3.21%
writing
../../Dokumente/cave/HVHO/svn/Hirlatzhoehle/therion/../Hirlatz.plan.DOP.map.pdf
...
./therion: error -- Invalid utf-8 string!



Am 2020-10-14 10:02, schrieb Tarquin Wilton-Jones via Therion:

Hi folks,

Stacho fixed these "when using Survex loop closure" bugs in 
yesterday's

development release:

https://github.com/therion/therion/issues/269 Therion miscalculates
fixes in multiple centreline blocks when using Survex loop closure

https://github.com/therion/therion/issues/270 Therion cannot have
exactly 2 fixes for a station when using Survex loop closure

And this Survex compatibility bug:

https://github.com/therion/therion/issues/263 Scale value should 
default

to 1 when omitted from "calibrate" commands

I have checked and verified the fixes, and my surveys still look 
right.

But could someone with a bigger dataset check that it didn't break
anything else when using Survex loop closures. That particular fix 
looks
like the kind that could create regressions. It only improved things 
for

me though :)

Yes, your cave entrance locations will change if you ever ran into 
#269

without realising - they are supposed to. And yes, you might find some
parts of the cave change size if you ever hit the calibrate statement 
bug.


Cheers,

Tarquin
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Survex (loop closure) related fixes

2020-10-14 Thread Benedikt Hallinger
I tried to compile the model of the Hirlatz cave with it and it looks 
good, from a big picture view.

The passages shifted sometimes slightly, as expected.

When trying to compile a specific plan map view PDF i get an error about 
UTF8. The compile runs fine with release-therion 5.5.1, however!

(i don't know if this is related)


therion 5.5.2+4683494 (2020-10-13)
cavern - Survex 1.2.42
initialization file: therion.ini
reading ... done
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020/Debian) 
(preloaded format=pdftex)

 restricted \write18 enabled.
entering extended mode
(./fonttest.tex
checking optional fonts csr10 csti10 csbx10 csss10 csssi10 ... NOT 
INSTALLED
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020/Debian) 
(preloaded format=pdftex)

 restricted \write18 enabled.
entering extended mode
(./fonttest.tex
checking optional fonts cmcyr10 cmcti10 cmcbx10 cmcss10 cmcssi10 ... NOT 
INSTALLED
configuration file: 
../../Dokumente/cave/HVHO/svn/Hirlatzhoehle/therion/plan.DOP.map.thconfig

reading ... done
reading source files ... done
preprocessing database ... done
./therion: warning -- year 1951 magnetic declination used for undated 
surveys

undated surveys:
155.Wilder_Westen.Hirlatzhoehle
323.Westen.Hirlatzhoehle
326.Hochdonnerbach.Hirlatzhoehle
scanning centreline tree ... done
searching for centerline loops ... done
calculating station coordinates ... done
average loop error: 1.98%
processing survey data ... done
calculating basic statistics ... done
processing extended elevation ... done
processing references ... done
selecting export objects ... done
processing projection plan ... done
average distortion: 3.21%
writing 
../../Dokumente/cave/HVHO/svn/Hirlatzhoehle/therion/../Hirlatz.plan.DOP.map.pdf 
...

./therion: error -- Invalid utf-8 string!



Am 2020-10-14 10:02, schrieb Tarquin Wilton-Jones via Therion:

Hi folks,

Stacho fixed these "when using Survex loop closure" bugs in yesterday's
development release:

https://github.com/therion/therion/issues/269 Therion miscalculates
fixes in multiple centreline blocks when using Survex loop closure

https://github.com/therion/therion/issues/270 Therion cannot have
exactly 2 fixes for a station when using Survex loop closure

And this Survex compatibility bug:

https://github.com/therion/therion/issues/263 Scale value should 
default

to 1 when omitted from "calibrate" commands

I have checked and verified the fixes, and my surveys still look right.
But could someone with a bigger dataset check that it didn't break
anything else when using Survex loop closures. That particular fix 
looks
like the kind that could create regressions. It only improved things 
for

me though :)

Yes, your cave entrance locations will change if you ever ran into #269
without realising - they are supposed to. And yes, you might find some
parts of the cave change size if you ever hit the calibrate statement 
bug.


Cheers,

Tarquin
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Therion uses wrong declination for surveys 'in the future'

2020-10-06 Thread Benedikt Hallinger
Couldn't this be just some data file in the therion installation 
directory?
This could be replaced by any means (like copying yourself, for instance 
and fallback). An online updater would be cool, tough.


Am 2020-10-06 3:34, schrieb Wookey:

On 2020-10-05 23:54 +0200, Matthias Keller wrote:

   Exactly this.

   Unfortunately, even the current Therion 5.5.1 doesn't have a more
   meaningful (and correct) message than "unable to determine magnetic
   declination for undated surveys"


I thought this might be a proj confusing error message, but it is 
therion's.



   I would propose:

1. If a survey is dated but is newer than available correction 
data,

   build should fail with a message like:
   "Error determining magnetic declination for survey  with 
date
   . Please specify the declination explicitly using for 
example

   'declination 3 deg'"
   instead of the (completely wrong)
   "unable to determine magnetic declination for undated surveys"
2. If at least one of the imported (and thus joined) surveys has 
magnetic
   data but at least one does not (or cannot be determined), an 
error
   shall be thrown as well, because mixing corrected and 
uncorrected
   surveys is just plain wrong and causes a lot of confusion (as 
it has
   happened to me). The same error message shall be displayed and 
the

   build fails.


This does seem reasonable behaviour. And I agree the error message is
wrongly worded or issued here.

I just had a look at the code that produces this error but it's rather
confusing. A bitmap is used to record what declination data was used
and if bits 1 and 3 are set you get the above error. I think bit 2 is
'used igrf model to get delination' and bit 3 is 'used defined
declination', and bit 3 is 'didn't use any', but I'm not sure and I
don't see why two bits would be set. I'll leave it to Martin/Stacho to
work out how the logic should run here.



   Is this the right place to request that or shall I open an issue on
   github?


I think this list is the canonical place to discuss such things.

   I really find this issue pressing, because I just cannot imagine, 
that
   this doesn't happen to everyone here from time to time - keeping 
therion
   up to date is not the same cycle as adding new surveys, and 
suddenly you

   fall out of the prediction data.


This is really an issue of the geomag model. It does work some way
into the future, but there is a cutoff. Looks like it does 10 years
into the future as the latest data in the therion source (igrf12) ends
in 2015 and the previos igrf11 (used in therion 5.4.4) ended in
2010. igrf13 (with data to 2020) was released in December 2019
https://www.ngdc.noaa.gov/IAGA/vmod/coeffs/igrf13coeffs.txt

So clearly this will arise anytime you have survey data 10 years newer
than the model in the therion you are running, which as they are only
released every 5 years and therion may take a year or two to update
and the installed one may be a few years old, is quite likely to
happen from time to time, especially in years ending with 0 or 5.


   btw, is there any way to update the data in an existing therion
   installation? Or is the only way the update to a (hopefully 
existing) new

   version?


There could be - the files are available online so therion could use
the currently-installed version of the file. But currently the igrf
coefficients file is compiled-in as thgeomagdata.h This means therion
can always find the data, but it's not updateable without
recompiling. I could fix this for linux relatively easily, but it's
harder on Windows. (and it was making things work on windows that
caused therion to compile-in all the stuff it needed from subsystems,
many years ago). Ideally it would compile one in but have the ability
to read a newer file if provided. But then someone has to write a
parser. We could also try a little harder not to get 10 years behind
again. (5.4.4 was released in May 2019 with a model that expired in
mid 2020, when the 2025 model had been available since 2015 (and was
included with the next therion release in May 2020). Not sure why the
update was not to 2030 as that was available from Dec 2019.)


Wookey
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Therion uses wrong declination for surveys 'in the future'

2020-10-05 Thread Benedikt Hallinger
Falling hard with an appropriate error message would be good: it’s obvious then 
that the available data is invalid, and why. And the message should include the 
hint to the declination command to fix this.

> Am 05.10.2020 um 20:40 schrieb Bruce Mutton :
> 
> 
> Hi Matt
> I think these issues have been raised previously.
> The error message for dates later than those included in the Therion model 
> was inaccurate, as you point out.  I ‘think’ that in recent versions this may 
> have been replaced with a more meaningful message.
>  
> And then the question of whether it is better for Therion to extrapolate 
> future declinations, or set them to zero?
> Shades of failing gracefully or abruptly, I guess.  I could take either side, 
> but I think my preference would be for Therion to set declinations beyond 
> those modelled to zero.  This way it is more likely that users will detect 
> the problem (as you have), and either upgrade to a more recent version of 
> Therion, or manually set the declination for each affected survey, using the 
> declination statement.
>  
> Bruce
>  
> From: Therion  On Behalf Of Matthias Keller
> Sent: Monday, 5 October 2020 21:40
> To: therion@speleo.sk
> Subject: [Therion] Therion uses wrong declination for surveys 'in the future'
>  
> Hi
> 
> I just had the following problem: A current survey (with survey dates 
> 2020.06.27 and 2020.09.19) was compiled using Therion 5.4.4 (from 2019). I 
> got the following warning during compilation:
> 
> warning -- unable to determine magnetic declination for undated surveys
> 
> However, firstly: this warning is wrong, as all surveys are dated correctly.
> 
> However I was stunned by some large loop errors in the newest surveys (>60cm 
> in only 10 legs). Then, just by some other impulse I updated therion to 5.5.1 
> and suddenly, those errors went down to <10cm and the generated models looked 
> differently. Also, the above error message was not present anymore.
> 
> So i experimented and just added "declination 3 deg" to the two new surveys 
> (from June and September) and suddenly, the output generated by 5.4.4 looked 
> pretty much as the one from 5.5.1
> 
> It appears that, when therion cannot determine the magnetic declination of a 
> survey (with valid date!), it finally just assumes 0. The problem seems to 
> be, that the declination data stored in 5.4.4 didn't let therion determine a 
> possible declination for 2020.06.27 and 2020.09.19 so it just assumed 0. I 
> would have expected therion to at least consider the latest known declination 
> which would result to around 3° (in Switzerland).
> 
> Is this a known issue? It just means that whenever you open a survey in some 
> version being 'too old', it will kill your plans...
> 
> BTW, Therion 5.4.4 seems to have *some* data for 2020 at least, as it seems:
> 
> geomag declinations (deg):
>   2019.1.1  2.9201
>   2020.1.1  3.0503
> 
> but the only surveys from 2020 are the ones from June 2020 and September 
> 2020, and both were assigned a declination of 0° instead of about 3°. I can 
> verify that by adding the declination parameter with "0 deg" to those surveys 
> and the output is identical to the one without this parameter.
> 
> Thanks
> 
> Matt
> 
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] maps off solves unexpected scrap stacking order where no maps are defined

2020-09-27 Thread Benedikt Hallinger
Wow-that surely is not easy to figure out i think.
But at least you have a dataset to reproduce this!

My naive guess is that when no Maps are defined and maps-off Not in effect, 
that sometimes the order of definition plays a role too?

Btw, i love maps-off and that was a feature i was wanting a long time. When i 
finally requested it, it got quickly implemented, and i am very grateful for 
that!

> Am 27.09.2020 um 10:28 schrieb Bruce Mutton :
> 
> 
> This is just a FYI in case anyone is interested.
> A problem solved, but a mystery not solved.
>  
> On and off through 2019 there were discussions about how to predict or debug 
> scrap stacking order.
> This message by Tarquin covers the expected behaviour fairly comprehensively. 
>  https://www.mail-archive.com/therion@speleo.sk/msg07925.html
>  
> That is all very well, and 99% of the time my projects stack scraps the way I 
> expect.  Except that I have one large project where lower passage scraps 
> stack on top of upper level scraps, in a few locations only, in the scenario 
> where no maps defined whatsoever (with the intention that scraps therefore 
> stack according to average altitude).  Other scenarios using the same source 
> data, where maps are defined and selected, all plot as expected according to 
> the map structures.  But for large overview maps I need to plot all scraps 
> without any map structure, and I’d like them to stack correctly.
>  
> The offending scraps were drawn many years ago, and were all much longer and 
> encompassing much greater passage height variations than I would adopt these 
> days.  I just assumed that the average heights that Therion calculated were 
> somehow not collated in the stacking order that I expected.  Anyway I 
> eventually found the time to check the scrap and heights reported in 
> therion.log.  To my slight surprise I found that in fact the average heights 
> that Therion calculated were in exactly the order I expected.  So why was 
> Therion not stacking the scraps in the expected order?  My anticipated 
> solution of breaking the scraps into pieces to make them behave properly no 
> longer seemed likely to make any difference.
>  
> Since it was implemented, I have been making use of the ‘maps off’ to disable 
> previews and offsets, as a more refined way of achieving a particular output 
> than just ‘not defining’ any maps in a particular thconfig.
> https://www.mail-archive.com/therion@speleo.sk/msg07571.html
>  
> In desperation I thought I’d try adding ‘maps off’ to the thconfig above, 
> where no maps were defined.  It should, I expected, make no difference at all.
> And in one easy step, all of the scraps now plot in the correct stacking 
> order!
> So why does ‘maps off’ make scraps plot in the correct order when there are 
> no maps defined?
>  
> Bruce
>  
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Command extend

2020-09-06 Thread Benedikt Hallinger
Yes, you are right.

> Am 06.09.2020 um 12:58 schrieb Markus Boldt :
> 
> 
> Hi all,
> the command „extend“ comes in the loop centerline / endcenterline in the 
> TH-File – right?
> Best
> Markus
>  
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] epsg:3794 - PROJ4 library: -1 (no arguments in initialization list)

2020-06-29 Thread Benedikt Hallinger

Hi there, we had a similar error a while ago.
Reason was that proj lib was upgraded and therion was not compatible 
with that at the time, but that was fixed already for some time now.


Which therion version are you using?


Am 2020-06-29 23:00, schrieb Rhys Tyers:

Hello,

I'm trying to compile a therion config and am getting the following
error:

therion: error -- PROJ4 library: -1 (no arguments in initialization
list)

The repo and file I'm attempting to compile:

https://github.com/tr1813/migresurvey/blob/master/data/_config/overview/system_migovec.thconfig

This works for for someone on OSX and another on Windows but not for
me on Ubuntu 20.04. I tried searching for the error but there wasn't
anything enlightening.

It compiles if I comment out "epsg:3794" so I'm guessing perhaps my
version of the proj library does not have this coordinate system?
Could I build a more up to date version?

Can anyone point me in the right direction?

Thanks,
Rhys
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] LOX: Measure distance from station to surface

2020-06-16 Thread Benedikt Hallinger
Hello,
i just uploaded an updated version of the 1.0 release, which now contains also 
a Windows .exe binary in the release tar.gz archive.
:)

> Am 31.03.2020 um 12:59 schrieb Benedikt Hallinger :
> 
> Hi there,
> i released version 1.0 of therionsurface2survex 
> (https://github.com/hbeni/therionsurface2survex)
> and now the problem with this is, that the name is not fitting anymore...
> 
> Version 1.0 can:
> - read GDAL ASCII grids directly [1]
> - read therion "surface" blocks
> - write survex .swx files containing the mesh
> - write therion source files containing the mesh (flags surface) [2]
> 
> 
> [1] i niticed that those files do not contain information about the 
> coordinate-system used, so you need to add this manually afterwards. Question 
> to all of you: would you expect an option that the tool adds it itself?
> [2] would be my preferred way because it allows better control about further 
> usage, also integration is more straightforward.
> 
> 
> Am 2020-03-28 1:21, schrieb Benedikt Hallinger:
>> Thanks, but i'm not into python :)
>> Am 2020-03-28 1:18, schrieb Philippe Vernant:
>>> Hi,
>>> There is an easy way to extract coordinates from the therion sql
>>> export. Then using a shell script and GMT could provide the depth of
>>> each point below the surface. I know that there is now a GMT library
>>> under Python, if they have implemented the function in the library,
>>> everything could be wrapped up in a single python script.
>>> Cheers,
>>> Phil
>>>> On 28 Mar 2020, at 00:28, Benedikt Hallinger  wrote:
>>>> cavern had eaten itself, but after pushing ctrl-c in the shell running 
>>>> therion, the 3d  file was written successfully and the output was nice.
>>>> I enhanced the therion wiki a little with a link to the tool.
>>>> Sorry, i have no clue how to cross compile this for windows.
>>>> Am 2020-03-27 23:51, schrieb Benedikt Hallinger:
>>>>> Hi there,
>>>>> i just wrote a small tool to do the conversion from a therion surface
>>>>> mesh into survex format:
>>>>> https://github.com/hbeni/therionsurface2survex
>>>>> It would be nice if some C++ programmers can look over the code as
>>>>> this is my first c++ endeavour.
>>>>> The program basically parses the therion source file and generates
>>>>> *fix commands out of it together with nosurvey-centerline connecting
>>>>> the stations to a mesh.
>>>>> The resulting .swx file then can be put trough survex' cavern program
>>>>> to generate a 3d file of the mesh.
>>>>> That can be easily combined with a 3d file of the cave generated from
>>>>> therion (using the import statements). For ease of use provided a
>>>>> basic example for combining in the readme. A sample to parse a mesh is
>>>>> in the projects example/ folder, however i also tested it positive
>>>>> with the rabbit cave example.
>>>>> With my dataset the calculation seems to take a little longer
>>>>> there are 388.800 fixe stations in the surface mesh giving a 31M
>>>>> swx-file in total.
>>>>> I hope this will finish somtime (running already for 25 minutes) but
>>>>> maybe i overloaded cavern with this.
>>>>> Otherwise i probably need to turn down the grid resolution (currently
>>>>> 10m grid size).
>>>>> Am 2020-03-26 23:23, schrieb Tarquin Wilton-Jones:
>>>>>>> However, my aven does not enable me to avtivate it in the view menu, its
>>>>>>> disabled (greyed out), i assume because i do not have surface data in
>>>>>>> the file?
>>>>>> Sounds like it. It works based on legs that have:
>>>>>> flags surface
>>>>>> 1 2 9.8 123 0
>>>>>> flags not surface
>>>>>> Or if you have used TerrainTool to export it as a grid, it will have
>>>>>> added that for you.
>>>>>> This has been very easy for us in our projects because we either knew
>>>>>> exactly which line to follow on the surface beforehand, or we surveyed
>>>>>> the cave first then surveyed over the surface afterwards, staying above
>>>>>> the passage so we could have a useful measure of the surface above the 
>>>>>> cave.
>>>>>> In more complex caves, I rely on TerrainTool to cover the surface.
>>>>>> Looking forward to being able to use the new more accurate NASADEM so
>>>>>> that the measurements are actually accurate.
>>>> ___
>>>> Therion mailing list
>>>> Therion@speleo.sk
>>>> https://mailman.speleo.sk/listinfo/therion
>>> ___
>>> Therion mailing list
>>> Therion@speleo.sk
>>> https://mailman.speleo.sk/listinfo/therion
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] North arrow and magnetic declination

2020-05-27 Thread Benedikt Hallinger
It is map compile time and it shows the declination for the day of map 
compilation:


As i understood, when compiling the map all directions are converted to 
geographic north, because the station positions are georeferenced to the 
coorindates. There, the date of the survey is taken into account to get 
the corrected coordinates based on the magnetic model and the 
location/survey date.


Aligning the map to geographic north and putting out the magnetic north 
is just an info "today the declination is this-and-that degrees".
Aligning the map to magnethic north makes that info crucial to be able 
to calculate geographic north.



Am 2020-05-27 22:28, schrieb Bruce Mutton:

Hi Bill

I played with Dirk's north arrow back in 2018, making my own
adjustments, and came to the conclusion that the magnetic north
reported is that at the date of map compilation.   Looking at my
comments in my metapost I am not absolutely convinced however.
Regardless, the reporting of a magnetic north direction needs to be
accompanied by the date and location to avoid confusion.  Dirk's north
arrow, and my variation, both report the date, so we have that
covered, and Therion uses the 'centre' of the map as the location.

It is somewhat relevant in New Zealand.  The magnetic deviation is
approximately 20 degrees and has varied 2 or 3 degrees over my
lifetime, and it varies by a similar amount across our caving regions.
 There are surveys that span three decades.

The only time I have encountered a problem with plan maps in Therion
related to magnetic deviation is when a recent survey is added, and
the compiling software version pre-dates that survey (geomagnetic
model cuts out prior to the survey date).  In this circumstance
Therion sets the magnetic deviation to zero and does not report the
error, or reports it as something unrelated.

Bruce

From: Therion  On Behalf Of Bill Gee
Sent: Thursday, 28 May 2020 01:51
To: Therion Mail List 
Subject: [Therion] North arrow and magnetic declination

Hello everyone -

I was looking at some of the sample code on the wiki for alternate
north arrows. At least two of them display both geographic north and
magnetic north. Those are northarrow4 and northarrow4a, both by Dirk
Peinelt.

My question is this: What date is used when calculating the offset
angle for the magnetic north arrow?

This is especially relevant for caves that have been surveyed over a
period of years. The declination changes from year to year, and
sometimes more often than that. There are at least four possibilities:

1) The date of the first survey.

2) The date of the most recent survey.

3) A date about half-way between the first and last surveys. This
assumes that the declination change is somewhat linear over time.

4) The date the map is compiled.

Does anyone know which date is used?

For me this is mostly academic. I am just curious! I have never used a
north arrow that shows both geographic and magnetic north. Most of the
maps I make are for caves in Missouri. The magnetic declination is
less than 1 degree. It is almost irrelevant here.

Thanks!

--

Bill Gee
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] new Therion 5.5.0

2020-05-01 Thread Benedikt Hallinger
Thanks for clarifying, i could imagine this is good for version control 
too :)


Am 2020-05-01 23:30, schrieb Olly Betts:

On Fri, May 01, 2020 at 09:22:31PM +0200, Benedikt Hallinger wrote:

what does --reproducible-output exactly do?
i cannot derive this from the thbook. What does reproducible mean?


It means that the output is exactly (bit-for-bit) determined by the
input.  For example, Therion uses pseudo-random numbers for drawing 
some

symbols so we need to seed the random number generator the same way to
get a reproducible output.

For normal Therion use, non-reproducible output probably doesn't matter
(though sometimes you might prefer that the rocks don't move just
because you regenerated the PDF), but it's very useful for getting
Therion packages to build reproducibly because Therion itself is used 
to

generate output for the examples as part of the build.

There's been a move over the last few years to make Free and Open
Source Software build reproducibly - for example, the majority of
packages in Debian now do:

https://tests.reproducible-builds.org/debian/unstable/amd64/stats_pkg_state.png

If you're wondering why that's a good thing, some motivations are
covered here:

https://reproducible-builds.org/

Cheers,
Olly

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] new Therion 5.5.0

2020-05-01 Thread Benedikt Hallinger

Cool, thanks!

what does --reproducible-output exactly do?
i cannot derive this from the thbook. What does reproducible mean?

Am 2020-05-01 10:32, schrieb Therion:

Hi, there is a new release 5.5.0 of Therion.
Release notes:

v5.5.0  Therion 5.5.0 (2020-05-01):

therion:
 * maps-offset  feature in thconfig file to disable maps 
drawn

   in offset [#159]
 * maps  feature in thconfig file to produce map just from 
scraps,

   ignoring the maps definition
 * log extend feature in thconfig to log extended elevation 
construction

 * added point mudcrack (thanks to Rodrigo Severo)
 * added an extensive SBE symbol set (thanks to Rodrigo Severo)
 * geomag data updated up to 2025
 * added support for reproducible generation of PDF and SVG output
   (command-line option --reproducible-output)
 * make thbook.pdf build reproducible (derive the created/modified 
dates

   of the PDF file from the commit date)
 * improved support for Proj 6.0 and 7.0 (see proj-auto init file 
option)

 * Catch2 unit testing library and Proj test cases added
 * all python scripts use Python 3 now
 * added Serbian (thanks to Ivana Miskovic) and Slovenian [PR#142]
translations
 * updated Portuguese translation [PR#170,220]
 * thbook improvements by Benedikt Hallinger [PR#161,162]
 * bugs fixed
   - spelling in some thbook chapters
   - html and kml output [PR#145,150]
   - extend ingore  fixed
   - Survex 3D output is missing the nodes on the end of anonymous
 splay legs [#157]
   - a_blocks_AUT missing semi-colon [#126]

xtherion:
 * add thconfig* to selectable config file list [PR#168]
 * bugs fixed:
   - Windows xtherion window geometry bugfix

loch:
 * bugs fixed:
   - MacOS X compilation [PR#144]
   - multiple minor fixes
   - Linux off-screen rendering bugfix

Best regards,
Therion team
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Therion does not write valid colour by horizontal or vertical error data to 3d output

2020-04-26 Thread Benedikt Hallinger
What is the expected data therion should write instead?

> Am 26.04.2020 um 07:00 schrieb Bruce Mutton :
> 
> 
> A while back Survex 1.43 improved the ability of Aven to visualise loop 
> misclosures.
> Not only can it colour by error, it can now colour by horizontal or vertical 
> loop error.
>  
> Unfortunately, the 3d files produced by Therion do not properly write the 
> data.
> A brief discussion here 
> https://github.com/ojwb/survex/commit/fe8a1b478b91bd977a4b21be49af25724b16c692
>  that identifies the problem.
> Olly suggests the problem is:
> -Therion writes 0 for all the horz and vert error values where Survex is 
> being used for data processing.
> -Therion equates the horz and vertical error to the total error where Therion 
> does its own data processing.
>  
> For users who want a work around, there is one described in the last line of 
> the thread linked above.
>  
> Bruce
>  
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Hatching profiles and extended elevations

2020-04-18 Thread Benedikt Hallinger

Hello,
for the hatches:
maybe you could do a custom area symbol and use it with "clip off" 
option. I don't know if this is supported, but it might work. You could 
try it with some other area first...


And the section arrows are easy by a line option (see thbook p. 29):
"direction  ▷ can be used only with the 
section type.
It indicates where to put a direction arrow on the section line. None is 
default."



Am 2020-04-18 22:06, schrieb Roger Schuster:

Hello cavers,

at least in Germany it is/was usual to add hatching to extended
elevations and profiles (cross sections) like in the following
example:

I guess it will be difficult to do this in Therion because the
hatching is outside of the passage and will be clipped but anyway: Is
there a way to achieve this?

Is it possible to add an arrow to lines of type section indicating the
viewing direction like in this example:

Thank you!

Best regards,

Roger
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Sketches on doesn't work / legacy survey

2020-04-15 Thread Benedikt Hallinger

What Tarquin said:
You can use "symbol-hide group cave-centerline" to hide all centerline 
relevant symbols.


Am 2020-04-15 20:19, schrieb Tarquin Wilton-Jones via Therion:

symbol-hide line centerline does *not *work (unknown symbol


centreline is not a valid line type, so you cannot use the keyword
"line" with it. (That is to say, it's not a type of line that you can
select from the dropdown when you are creating a line in XTherion.)

The line is called "survey" (with subtypes survey:cave and
survey:surface that you can select in XTherion), and Therion
automatically generates lines of that type when you ask it to render a
PDF. It also draws stations (subtypes painted, fixed, temporary,
natural). These are all grouped together as "cave-centreline" when
inside a cave (flags not surface) and surface-centreline (flags
surface), and those two groups are grouped into "centreline".

group centreline
|-group cave-centerline
| |-line survey
| | `-line survey:cave
| `-point station
|   |-point station:fixed
|   |-point station:natural
|   |-point station:painted
|   `-point station:temporary
`-group surface-centerline
  |-line survey
  | `-line survey:surface
  `-point station
|-point station:fixed
|-point station:natural
|-point station:painted
`-point station:temporary

And yes, that does mean that you cannot selectively hide just the
stations that are on the surface. But you can hide the parent group, 
and

then unhide the other things you want to appear...

symbol-hide group surface-centerline
symbol-show line survey:surface

I have not tested if this would actually work, but I think it should.
Have fun, and see what happens.

Hope this makes sense.
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Question for lox generating strange spikes at passage end

2020-04-14 Thread Benedikt Hallinger
Hello,
i fiddled more with the data, but to no avail.
It seems its something in lochs extrapolation code using misaligned data or 
something...

Is this reproducible at your setup?

> Am 31.03.2020 um 18:26 schrieb Benedikt Hallinger :
> 
> Hello,
> in a dataset i get a strange behavior regarding the loch model at passage 
> ends:
> 
> At station 1.10 a weird spike is produced in the loch model, that should not 
> be there.
> If one comments out some branch that is not located near 1.10, the problem 
> goes away.
> 
> What causes these spikes?
> 
> Attached a test set with comented section, thus producing correct ending of 
> the tunnel.
> Also, an image showing the problem (left: wrong spike, right: correct result 
> with the branch commented)
> 
> 
> Thanks alot,
> Beni
> 
> 
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Command line Therion on Windows

2020-04-05 Thread Benedikt Hallinger
Maybe TCL does it automatically since its platform independent, c is usually 
not (directly). Xtherion compiled is a tcl program.

> Am 05.04.2020 um 11:36 schrieb Rhys Tyers :
> 
> 
> I agree, but also when compiling in XTherion it does work so there is some 
> magic happening in XTherion. I tried to have a look through the Therion 
> source to see what the difference is between how XTherion parses file paths 
> and how Therion command line parses file paths but I am not a C developer (or 
> anything close) and could not work it out.
> 
>> On Sat, 4 Apr 2020 at 23:45, Benedikt Hallinger  wrote:
>> Wed had a similar problem and resorted to make everywhere unix slashes.
>> It would be cool if therion would parse that to backslash reference on 
>> windows when parsing filepaths.
>> 
>> Am 2020-04-05 0:16, schrieb Rhys Tyers:
>> > I think so. If I change the first file path to have backslashes then
>> > the error is about the second file path in the config, and so on.
>> > 
>> > On Sat, 4 Apr 2020, 23:14 Philippe Vernant, 
>> > wrote:
>> > 
>> >> Hi Rhys,
>> >> 
>> >> Are you sure that is is not the end of the line rather than the
>> >> slashes ?
>> >> 
>> >> Phil
>> >> 
>> >>> On 4 Apr 2020, at 11:00, Rhys Tyers  wrote:
>> >>> 
>> >>> Hello,
>> >>> 
>> >>> I have therion data repo that has been mainly worked on by
>> >>> linux/mac users. Now I'm trying to work on it in Windows. Using
>> >>> the xtherion gui works fine, but if I try to use the therion.exe
>> >>> directly on the command line (like I would in linux) then it fails
>> >>> because all the file paths have forward slashes rather than back
>> >>> slashes.
>> >>> 
>> >>> Is there a way to get command line therion to run on files with
>> >>> linux style file paths? I assume there must be because xtherion
>> >>> manages it somehow.
>> >>> 
>> >>> Thanks,
>> >>> Rhys ___
>> >>> Therion mailing list
>> >>> Therion@speleo.sk
>> >>> https://mailman.speleo.sk/listinfo/therion
>> >> 
>> >> ___
>> >> Therion mailing list
>> >> Therion@speleo.sk
>> >> https://mailman.speleo.sk/listinfo/therion
>> > ___
>> > Therion mailing list
>> > Therion@speleo.sk
>> > https://mailman.speleo.sk/listinfo/therion
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Command line Therion on Windows

2020-04-04 Thread Benedikt Hallinger

Wed had a similar problem and resorted to make everywhere unix slashes.
It would be cool if therion would parse that to backslash reference on 
windows when parsing filepaths.


Am 2020-04-05 0:16, schrieb Rhys Tyers:

I think so. If I change the first file path to have backslashes then
the error is about the second file path in the config, and so on.

On Sat, 4 Apr 2020, 23:14 Philippe Vernant, 
wrote:


Hi Rhys,

Are you sure that is is not the end of the line rather than the
slashes ?

Phil


On 4 Apr 2020, at 11:00, Rhys Tyers  wrote:

Hello,

I have therion data repo that has been mainly worked on by
linux/mac users. Now I'm trying to work on it in Windows. Using
the xtherion gui works fine, but if I try to use the therion.exe
directly on the command line (like I would in linux) then it fails
because all the file paths have forward slashes rather than back
slashes.

Is there a way to get command line therion to run on files with
linux style file paths? I assume there must be because xtherion
manages it somehow.

Thanks,
Rhys ___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


[Therion] Question for lox generating strange spikes at passage end

2020-03-31 Thread Benedikt Hallinger

Hello,
in a dataset i get a strange behavior regarding the loch model at 
passage ends:


At station 1.10 a weird spike is produced in the loch model, that should 
not be there.
If one comments out some branch that is not located near 1.10, the 
problem goes away.


What causes these spikes?

Attached a test set with comented section, thus producing correct ending 
of the tunnel.
Also, an image showing the problem (left: wrong spike, right: correct 
result with the branch commented)



Thanks alot,
Beni

test.tar.gz
Description: GNU Zip compressed data
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] LOX: Measure distance from station to surface

2020-03-31 Thread Benedikt Hallinger

Hi there,
i released version 1.0 of therionsurface2survex 
(https://github.com/hbeni/therionsurface2survex)
and now the problem with this is, that the name is not fitting 
anymore...


Version 1.0 can:
- read GDAL ASCII grids directly [1]
- read therion "surface" blocks
- write survex .swx files containing the mesh
- write therion source files containing the mesh (flags surface) [2]


[1] i niticed that those files do not contain information about the 
coordinate-system used, so you need to add this manually afterwards. 
Question to all of you: would you expect an option that the tool adds it 
itself?
[2] would be my preferred way because it allows better control about 
further usage, also integration is more straightforward.



Am 2020-03-28 1:21, schrieb Benedikt Hallinger:

Thanks, but i'm not into python :)


Am 2020-03-28 1:18, schrieb Philippe Vernant:

Hi,

There is an easy way to extract coordinates from the therion sql
export. Then using a shell script and GMT could provide the depth of
each point below the surface. I know that there is now a GMT library
under Python, if they have implemented the function in the library,
everything could be wrapped up in a single python script.

Cheers,
Phil


On 28 Mar 2020, at 00:28, Benedikt Hallinger  
wrote:


cavern had eaten itself, but after pushing ctrl-c in the shell 
running therion, the 3d  file was written successfully and the output 
was nice.


I enhanced the therion wiki a little with a link to the tool.

Sorry, i have no clue how to cross compile this for windows.


Am 2020-03-27 23:51, schrieb Benedikt Hallinger:

Hi there,
i just wrote a small tool to do the conversion from a therion 
surface

mesh into survex format:
https://github.com/hbeni/therionsurface2survex
It would be nice if some C++ programmers can look over the code as
this is my first c++ endeavour.
The program basically parses the therion source file and generates
*fix commands out of it together with nosurvey-centerline connecting
the stations to a mesh.
The resulting .swx file then can be put trough survex' cavern 
program

to generate a 3d file of the mesh.
That can be easily combined with a 3d file of the cave generated 
from

therion (using the import statements). For ease of use provided a
basic example for combining in the readme. A sample to parse a mesh 
is

in the projects example/ folder, however i also tested it positive
with the rabbit cave example.
With my dataset the calculation seems to take a little longer
there are 388.800 fixe stations in the surface mesh giving a 31M
swx-file in total.
I hope this will finish somtime (running already for 25 minutes) but
maybe i overloaded cavern with this.
Otherwise i probably need to turn down the grid resolution 
(currently

10m grid size).
Am 2020-03-26 23:23, schrieb Tarquin Wilton-Jones:
However, my aven does not enable me to avtivate it in the view 
menu, its
disabled (greyed out), i assume because i do not have surface data 
in

the file?

Sounds like it. It works based on legs that have:
flags surface
1 2 9.8 123 0
flags not surface
Or if you have used TerrainTool to export it as a grid, it will 
have

added that for you.
This has been very easy for us in our projects because we either 
knew
exactly which line to follow on the surface beforehand, or we 
surveyed
the cave first then surveyed over the surface afterwards, staying 
above
the passage so we could have a useful measure of the surface above 
the cave.

In more complex caves, I rely on TerrainTool to cover the surface.
Looking forward to being able to use the new more accurate NASADEM 
so

that the measurements are actually accurate.

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] LOX: Measure distance from station to surface

2020-03-27 Thread Benedikt Hallinger

Thanks, but i'm not into python :)


Am 2020-03-28 1:18, schrieb Philippe Vernant:

Hi,

There is an easy way to extract coordinates from the therion sql
export. Then using a shell script and GMT could provide the depth of
each point below the surface. I know that there is now a GMT library
under Python, if they have implemented the function in the library,
everything could be wrapped up in a single python script.

Cheers,
Phil


On 28 Mar 2020, at 00:28, Benedikt Hallinger  
wrote:


cavern had eaten itself, but after pushing ctrl-c in the shell running 
therion, the 3d  file was written successfully and the output was 
nice.


I enhanced the therion wiki a little with a link to the tool.

Sorry, i have no clue how to cross compile this for windows.


Am 2020-03-27 23:51, schrieb Benedikt Hallinger:

Hi there,
i just wrote a small tool to do the conversion from a therion surface
mesh into survex format:
https://github.com/hbeni/therionsurface2survex
It would be nice if some C++ programmers can look over the code as
this is my first c++ endeavour.
The program basically parses the therion source file and generates
*fix commands out of it together with nosurvey-centerline connecting
the stations to a mesh.
The resulting .swx file then can be put trough survex' cavern program
to generate a 3d file of the mesh.
That can be easily combined with a 3d file of the cave generated from
therion (using the import statements). For ease of use provided a
basic example for combining in the readme. A sample to parse a mesh 
is

in the projects example/ folder, however i also tested it positive
with the rabbit cave example.
With my dataset the calculation seems to take a little longer
there are 388.800 fixe stations in the surface mesh giving a 31M
swx-file in total.
I hope this will finish somtime (running already for 25 minutes) but
maybe i overloaded cavern with this.
Otherwise i probably need to turn down the grid resolution (currently
10m grid size).
Am 2020-03-26 23:23, schrieb Tarquin Wilton-Jones:
However, my aven does not enable me to avtivate it in the view 
menu, its
disabled (greyed out), i assume because i do not have surface data 
in

the file?

Sounds like it. It works based on legs that have:
flags surface
1 2 9.8 123 0
flags not surface
Or if you have used TerrainTool to export it as a grid, it will have
added that for you.
This has been very easy for us in our projects because we either 
knew
exactly which line to follow on the surface beforehand, or we 
surveyed
the cave first then surveyed over the surface afterwards, staying 
above
the passage so we could have a useful measure of the surface above 
the cave.

In more complex caves, I rely on TerrainTool to cover the surface.
Looking forward to being able to use the new more accurate NASADEM 
so

that the measurements are actually accurate.

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] LOX: Measure distance from station to surface

2020-03-27 Thread Benedikt Hallinger
cavern had eaten itself, but after pushing ctrl-c in the shell running 
therion, the 3d  file was written successfully and the output was nice.


I enhanced the therion wiki a little with a link to the tool.

Sorry, i have no clue how to cross compile this for windows.


Am 2020-03-27 23:51, schrieb Benedikt Hallinger:

Hi there,
i just wrote a small tool to do the conversion from a therion surface
mesh into survex format:
https://github.com/hbeni/therionsurface2survex

It would be nice if some C++ programmers can look over the code as
this is my first c++ endeavour.

The program basically parses the therion source file and generates
*fix commands out of it together with nosurvey-centerline connecting
the stations to a mesh.
The resulting .swx file then can be put trough survex' cavern program
to generate a 3d file of the mesh.
That can be easily combined with a 3d file of the cave generated from
therion (using the import statements). For ease of use provided a
basic example for combining in the readme. A sample to parse a mesh is
in the projects example/ folder, however i also tested it positive
with the rabbit cave example.

With my dataset the calculation seems to take a little longer
there are 388.800 fixe stations in the surface mesh giving a 31M
swx-file in total.
I hope this will finish somtime (running already for 25 minutes) but
maybe i overloaded cavern with this.
Otherwise i probably need to turn down the grid resolution (currently
10m grid size).



Am 2020-03-26 23:23, schrieb Tarquin Wilton-Jones:
However, my aven does not enable me to avtivate it in the view menu, 
its

disabled (greyed out), i assume because i do not have surface data in
the file?


Sounds like it. It works based on legs that have:

flags surface
1 2 9.8 123 0
flags not surface

Or if you have used TerrainTool to export it as a grid, it will have
added that for you.

This has been very easy for us in our projects because we either knew
exactly which line to follow on the surface beforehand, or we surveyed
the cave first then surveyed over the surface afterwards, staying 
above
the passage so we could have a useful measure of the surface above the 
cave.


In more complex caves, I rely on TerrainTool to cover the surface.
Looking forward to being able to use the new more accurate NASADEM so
that the measurements are actually accurate.

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] LOX: Measure distance from station to surface

2020-03-27 Thread Benedikt Hallinger

Hi there,
i just wrote a small tool to do the conversion from a therion surface 
mesh into survex format:

https://github.com/hbeni/therionsurface2survex

It would be nice if some C++ programmers can look over the code as this 
is my first c++ endeavour.


The program basically parses the therion source file and generates *fix 
commands out of it together with nosurvey-centerline connecting the 
stations to a mesh.
The resulting .swx file then can be put trough survex' cavern program to 
generate a 3d file of the mesh.
That can be easily combined with a 3d file of the cave generated from 
therion (using the import statements). For ease of use provided a basic 
example for combining in the readme. A sample to parse a mesh is in the 
projects example/ folder, however i also tested it positive with the 
rabbit cave example.


With my dataset the calculation seems to take a little longer there 
are 388.800 fixe stations in the surface mesh giving a 31M swx-file in 
total.
I hope this will finish somtime (running already for 25 minutes) but 
maybe i overloaded cavern with this.
Otherwise i probably need to turn down the grid resolution (currently 
10m grid size).




Am 2020-03-26 23:23, schrieb Tarquin Wilton-Jones:
However, my aven does not enable me to avtivate it in the view menu, 
its

disabled (greyed out), i assume because i do not have surface data in
the file?


Sounds like it. It works based on legs that have:

flags surface
1 2 9.8 123 0
flags not surface

Or if you have used TerrainTool to export it as a grid, it will have
added that for you.

This has been very easy for us in our projects because we either knew
exactly which line to follow on the surface beforehand, or we surveyed
the cave first then surveyed over the surface afterwards, staying above
the passage so we could have a useful measure of the surface above the 
cave.


In more complex caves, I rely on TerrainTool to cover the surface.
Looking forward to being able to use the new more accurate NASADEM so
that the measurements are actually accurate.

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] LOX: Measure distance from station to surface

2020-03-26 Thread Benedikt Hallinger

Yes i did. Thanks for that hint.
However, my aven does not enable me to avtivate it in the view menu, its 
disabled (greyed out), i assume because i do not have surface data in 
the file?

How do i tell therion to export this?


Am 2020-03-26 23:06, schrieb Tarquin Wilton-Jones:

enable surface in aven?
If i try to enable the surface legs, aven prompts me to open some 
file...


I assume you are trying to "file - open terrain" rather than "view -
surface survey legs".

Terrain is a different thing, which I have never used, and I don't 
think

you can select parts of it for use with measuring. I think though that
Survex's terrain is similar to the type of terrain used by Therion 
though.

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] LOX: Measure distance from station to surface

2020-03-26 Thread Benedikt Hallinger

Hello,
do i need some special options aside from "export model -o model.3d" to 
enable surface in aven?
If i try to enable the surface legs, aven prompts me to open some 
file...



Am 2020-03-26 22:49, schrieb Tarquin Wilton-Jones via Therion:
does anybody know how i can measure the distance from a given station 
to

the surface, when i have a surface model loaded?


I have always done this with Survex's Aven. Export 3D, open in Aven,
enable surface legs, click the station, hold mouse over the surface
legs. (I do this with either surface survey stations, or surface grid
that I prepared with TerrainTool.)

Aside:
If you use Survex rather than Therion to export this, the ends of the
splays become clickable points in Aven, so you can measure from your
highest splay. If you use a 3D exported by Therion, then you cannot
click on the splays. Therion does not add the control point at the end
of each splay (I have filed a bug for that).
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


[Therion] LOX: Measure distance from station to surface

2020-03-26 Thread Benedikt Hallinger

Hello,
does anybody know how i can measure the distance from a given station to 
the surface, when i have a surface model loaded?


Thanks,
Beni
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] New DEM data from NASA

2020-03-07 Thread Benedikt Hallinger

Here :)


Am 2020-03-07 14:27, schrieb Rodrigo Severo via Therion:

‐‐‐ Original Message ‐‐‐
On Friday, March 6, 2020 9:34 AM, Benedikt Hallinger 
 wrote:


... if it is needed, i can translate it to English. Just say so and i 
try to squeeze out some time...


It would certainly help a lot.

Regards,

Rodrigo
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion#!/bin/bash
#
# Commands to generate therion DEM data with GDAL tools out of austrian ALS data
#

# 0. Make source data available in temporary folder
mkdir tmp
unzip -o ../../srcdata/DOM/ALS_DGM/Oberösterreich-DGM_10M.zip -d tmp/


# 1. Generate heightmap (DEM) from ALS-data
# ===
# The source data is in EPSG:31255 with grid width 10m; our target is EPSG:31258 (BMN M31)
# Target size is boundingbox in EPSG:31258:
#  #xllcorner469000
#  #yllcorner263500
#  #xurcorner476700
#  #yurcorner268400
gdalwarp -t_srs EPSG:31258   -te 469500 263000 476700 268400  -tr 10 10 -dstnodata  -r cubic   -overwrite  tmp/DGM_10M.tif tmp/dem.tif
# ^tgt-coord-system  ^llx   ^lly   ^urx   ^ury^grid-width   ^nodata-value  ^interpolation ^overwrite tgt data if existing 

# Verify results (shows generated boundingbox):
# The results are not always exactly the requested box coordinates which is a result of the underlaying grid.
gdalinfo tmp/dem.tif |grep -A4 "Corner Coordinates" |grep "Lower Left"
gdalinfo tmp/dem.tif |grep -A4 "Corner Coordinates" |grep "Upper Right"
# Results in this case (which fits exactly):
#   Lower Left  (  469500.000,  263000.000)
#   Upper Right (  476700.000,  268400.000)
# => Result is DEM file in GEO-TIFF: tmp/dem.tif in EPSG:31258 with 10m-grid


# Lets build therion data with that (therion can't use the TIFF file directly,
# we need to convert into ASCII format):
gdal_translate -co DECIMAL_PRECISION=5 -of AAIGrid tmp/dem.tif tmp/dem.txt

# Now add therion header data.
# We will produce the grid file which can be used by therion.
# (The needed values for the "grid" command comes from inside the ASCII-grid file)
#   ncols720
#   nrows540
#   xllcorner469500.
#   yllcorner263000.
#   cellsize 10.
cat - tmp/dem.txt > hirlatz-dom-10mALS.grid < hirlatz-dop-1m_geoland-dom-10mALS.th <___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] New DEM data from NASA

2020-03-06 Thread Benedikt Hallinger
... if it is needed, i can translate it to English. Just say so and i try to 
squeeze out some time...

> Am 06.03.2020 um 13:13 schrieb Benedikt Hallinger :
> 
> 
> here it comes :)
> 
> It uses LIDAR data from austrian sourves, but should be able to be adapted 
> accordingly. I hoe it gives some hints.
> Feel free to modify and share!
> 
> 
> 
> 
> 
>>>> Am 06.03.2020 um 12:26 schrieb Wookey :
>>>>> 
>>>>>> On 2020-03-06 09:02 +0100, Benedikt Hallinger wrote:
>>>>>>> 
>>>>>>>> I have a (german commented) bash script doing this.
>>>>>>>>> 
>>>>>>>>>> Only thing is that it is hatdcoded fir a specific case, but it shows 
>>>>>>>>>> the commands imvolved.
>>>>>>>>>>> 
>>>>>>>>>>>> Should i post it to you?
>>>>>>>>>>>>> 
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Post it here. I doubt if Paweł is the only one interested.
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Wookey
>>>>>>>>>>>>> -- 
>>>>>>>>>>>>> Principal hats:  Linaro, Debian, Wookware, ARM
>>>>>>>>>>>>> http://wookware.org/
>>>>>>>>>>>>> ___
>>>>>>>>>>>>> Therion mailing list
>>>>>>>>>>>>> Therion@speleo.sk
>>>>>>>>>>>>> https://mailman.speleo.sk/listinfo/therion
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] New DEM data from NASA

2020-03-06 Thread Benedikt Hallinger
here it comes :)It uses LIDAR data from austrian sourves, but should be able to be adapted accordingly. I hoe it gives some hints.Feel free to modify and share!

generate.sh
Description: Binary data
Am 06.03.2020 um 12:26 schrieb Wookey :On 2020-03-06 09:02 +0100, Benedikt Hallinger wrote:I have a (german commented) bash script doing this.Only thing is that it is hatdcoded fir a specific case, but it shows the commands imvolved.Should i post it to you?Post it here. I doubt if Paweł is the only one interested.Wookey-- Principal hats:  Linaro, Debian, Wookware, ARMhttp://wookware.org/___Therion mailing listTherion@speleo.skhttps://mailman.speleo.sk/listinfo/therion___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] New DEM data from NASA

2020-03-06 Thread Benedikt Hallinger
I have a (german commented) bash script doing this.
Only thing is that it is hatdcoded fir a specific case, but it shows the 
commands imvolved.

Should i post it to you?

> Am 06.03.2020 um 08:31 schrieb Paweł Krawczyk via Therion :
> 
> On 06/03/2020 07:12, Benedikt Hallinger wrote:
>> Hello, could gdal be of use here?
>> At least it is what i use to process LIDAR data an i think i used it also to 
>> process aster+srtm data (including patching voids from the one with the 
>> other)
>> 
> If there's a reliable workflow to generate surface files for Therion using 
> gdal then I guess so.
> 
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] New DEM data from NASA

2020-03-05 Thread Benedikt Hallinger
Hello, could gdal be of use here?
At least it is what i use to process LIDAR data an i think i used it also to 
process aster+srtm data (including patching voids from the one with the other)

> Am 05.03.2020 um 23:48 schrieb Paweł Krawczyk via Therion :
> 
> 
> On 05/03/2020 20:39, Martin Sluka via Therion wrote:
>> https://www.gislounge.com/updated-global-elevation-data-released-by-nasa/
>> 
>> 
> With permission of the original author (Mike McCombe) and help of Wookey I 
> have recently started to refactor TerrainTool to use v3 ASTER files but seems 
> like we need to target the newest ones... Due to the complexity of the old 
> DEM file parser I'm considering using a dedicated GeoTiff library - anyone 
> has any experiences or suggestions?
> 
> We're talking about Java GUI app, right now repacked as Maven project, 
> sources can be found here:
> 
> https://git.sr.ht/~kravietz/TerrainTool
> 
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Need metapost wizard: new text label

2020-03-04 Thread Benedikt Hallinger

Hello again.
I freshly copy-pasted your examples and now it works.
I must have made something wrong like you described (therion 5.4.4 
(2019-05-01)).


Tanks!


Am 2020-03-04 15:08, schrieb Tarquin Wilton-Jones via Therion:

example code there does not work here for some reason (compile error).


Interesting ... I am using it myself and it works here. I wonder if
there is something odd in what the wiki outputs. Or maybe you copy &
pasted the "code metapost" inside an existing "code metapost" block. If
you have time to check, what's your error message?

Or alternatively, do you have a minimal survey where I can see the
failure myself?


0.001


I won't pretend to understand what that is all about. Very weird 
indeed.

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Need metapost wizard: new text label

2020-03-04 Thread Benedikt Hallinger

Hello Tarquin,

i tweaked and fiddled around and now have a version that correctly 
scales, rotates and aligns.
Your wiki page hint helped, but i already found it in the past... The 
example code there does not work here for some reason (compile error).


But anyhow, to answer your question regarding the "0.001" rotation 
parameter in the label calling:
if i use "0.0" or "0" or also "0.0001", it puts my label text in the 
center of the generated map with rotation of the scrap-rotation applied. 
I don't know why and found by try-and-error that this value works.



Here is the updated code:, enhanced with a nicer legend output:
---
# Symbol to denote assigned survey.
#   Option "-attr text " shows given text; otherwise current 
survey is shown.
#   Option "-attr bordersmooth " overrides edge smoothness (0 
for sharp edges)

#   Option "-attr bordermargin " overrides margin text/border
#   Option "-attr basescale " overrides basic text sizing 
factor (default text size)

def p_u_mappe(expr pos, theta, sc, al) =
  T:=identity aligned al rotated theta scaled sc shifted pos;
  begingroup;
% Basic config
bordersmooth:=4; % smoothness of box corners  (0=90° 
edges)

bordermargin:=5.0bp; % padding border->text
basescale:=1.0;  % basic scaling of default-sized text
if known(ATTR_bordersmooth): 
bordersmooth:=scantokens(ATTR_bordersmooth); fi;
if known(ATTR_bordermargin): 
bordermargin:=scantokens(ATTR_bordermargin); fi;
if known(ATTR_basescale):
basescale:=scantokens(ATTR_basescale);   fi;


% GET LABEL TEXT:
string txt;
if known(ATTR_text):
txt := ATTR_text;
else:
txt := ATTR__survey;
fi;

% DRAW LABEL:
lab:=thelabel(txt, (0.0,0.0));
pickup PenA;   % border thickness
interim bboxmargin:=bordermargin;  % padding border->text
q:=((bbox lab) smoothed bordersmooth) aligned al scaled (sc * 
basescale) rotated theta shifted pos;

draw q;
lab:=lab aligned al;
lab:=lab scaled (sc * basescale);
lab:=lab rotated theta;
lab:=lab shifted pos;
process_label(pos, 0.001);   % for some weird reason "0.0" does 
not work here and puts the label to map-center at scrap-rotation.


  endgroup;
enddef;
def p_u_mappe_legend =
begingroup;
save ATTR_text;
string ATTR_text;
ATTR_text:="028";
p_u_mappe((.5,.5) inscale, 0, 1.0, (0,0));
endgroup;
enddef;

---





Am 2020-03-01 22:23, schrieb Tarquin Wilton-Jones via Therion:

thelabel(txt, pos);


I notice in the main Therion Metapost, it uses
lab:=thelabel@#(txt, pos);
to make sure that it can respect alignment, which your code cannot.
Don't suppose you worked out how to pass the correct alignment value 
to

it, did you?


I have worked it out, see my thread "Metapost variable macro suffixes".
I will add it to my existing function which takes the point alignment
parameter and turns it into the right suffix in the "thelabel" call or
p_label call, whichever one ends up getting used.

Your code also didn't apply rotation to the ornamentation. You need
something like this:
draw ((bbox lab) smoothed 4) rotatedaround (pos,rotation);

Note that this applies the rotation around the point position, so
alignment and rotation at the same time is weird. This is the same with
regular labels though - Therion bug that Bruce is fond of :) - so at
least this is consistent with Therion itself.

Your code hardcoded rotation to a very specific 0.001 degrees, which 
was

weird. I assume you had intended to use 0 or a variable (my code uses
the rotation parameter of the point symbol).


interim bboxmargin:=6.5bp;    % padding border->text


Just checking, since I don't know the "interim" keyword very well ...
Doesn't it need to be inside a "begingroup/endgroup" pair, in order to
know when to stop applying the "interim" value to the internal
bboxmargin variable?

As far as I can tell, you are modifying the global value of it, so all
subsequent uses of that internal variable will end up with your 
padding.
At least until the next "endgroup" happens somewhere above your code 
in

the stack.


This was correct. You needed to use begingroup+endgroup or use a vardef
instead of a def (with vardef, it automatically applies a
begingroup+endgroup). Therion's Metapost uses both of these approaches
to avoid the problem.
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Metapost variable macro suffixes

2020-03-01 Thread Benedikt Hallinger
> This is such a weird programming language :)

It is...
And despite being plenty of documentation online, this one seems to be 
mastering me (and i usually love programming)

> Am 01.03.2020 um 21:05 schrieb Tarquin Wilton-Jones via Therion 
> :
> 
> I do seem to like answering my own questions.
> 
> 3 days searching for the solution and ...
> 
> if A = (-1,1): sfx:="ulft";
> elseif A = (0,1): sfx:="top";
> ...
> if Foo = "b"
>  thelabel.scantokens(sfx)(txt, pos);
>  ... other stuff ...
> else:
>  p_label.scantokens(sfx)(thetext,P,R,style);
> fi;
> 
> Yes, scantokens can be used inline, as a function-like call that returns
> an actual suffix token which becomes part of the macro's suffix when the
> macro is subsequently called.
> 
> This is such a weird programming language :)
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Need metapost wizard: new text label

2020-02-27 Thread Benedikt Hallinger
... maybe it would be a very good idea to write a subchapter into the thbook 
user symbol chapter?
That contains all those pitfalls for metapost-th-symbols novices like me

> Am 27.02.2020 um 09:56 schrieb Benedikt Hallinger :
> 
> Good morning, and thank you for your comments!
> Honestly, i have no clue what this all does, i just managed to copy paste 
> until it magically startet to work :)
> 
> If you want to upload it to the wiki, im honored and please modify to your 
> wills, especially to make it not break anything existing. Would be nice if 
> you could drop me a line if its ready :)
> (I fear fiddling around with it, as it already took me about five hours to 
> get this and i don’t want to break it again)
> 
> My intention for the usage was in bigger cave systems to show the adjacent 
> survey names (with preview below/above) so one can more easily navigate in 
> the data and see where to look next.
> 
> Btw, i found out that „symbol-hide point u:mysymbol“ does not seem to 
> recognize the symbol subtype and thus cannot hide it. Is this normal or am i 
> doing something wrong?
> 
>> Am 27.02.2020 um 09:02 schrieb Tarquin Wilton-Jones via Therion 
>> :
>> 
>> Nice one :)
>> 
>> All simple enough to understand (I might put it on the wiki with some
>> explanatory comments).
>> 
>>> thelabel(txt, pos); 
>> 
>> I notice in the main Therion Metapost, it uses
>> lab:=thelabel@#(txt, pos);
>> to make sure that it can respect alignment, which your code cannot.
>> Don't suppose you worked out how to pass the correct alignment value to
>> it, did you?
>> 
>>> interim bboxmargin:=6.5bp;% padding border->text
>> 
>> Just checking, since I don't know the "interim" keyword very well ...
>> Doesn't it need to be inside a "begingroup/endgroup" pair, in order to
>> know when to stop applying the "interim" value to the internal
>> bboxmargin variable?
>> 
>> As far as I can tell, you are modifying the global value of it, so all
>> subsequent uses of that internal variable will end up with your padding.
>> At least until the next "endgroup" happens somewhere above your code in
>> the stack.
>> 
>> (You are also trampling on any existing variables called lab, q or txt,
>> but this is normal for Therion's code for some reason. Personally, I
>> have started wrapping all of my symbol code in a group whenever it uses
>> variables, and then I save them in order to make a macro equivalent to a
>> "local" variable. This was needed in one case because I reused some
>> variable name with a different datatype, and caused Metapost to get upset.)
>> ___
>> Therion mailing list
>> Therion@speleo.sk
>> https://mailman.speleo.sk/listinfo/therion
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Need metapost wizard: new text label

2020-02-27 Thread Benedikt Hallinger
Good morning, and thank you for your comments!
Honestly, i have no clue what this all does, i just managed to copy paste until 
it magically startet to work :)

If you want to upload it to the wiki, im honored and please modify to your 
wills, especially to make it not break anything existing. Would be nice if you 
could drop me a line if its ready :)
(I fear fiddling around with it, as it already took me about five hours to get 
this and i don’t want to break it again)

My intention for the usage was in bigger cave systems to show the adjacent 
survey names (with preview below/above) so one can more easily navigate in the 
data and see where to look next.

Btw, i found out that „symbol-hide point u:mysymbol“ does not seem to recognize 
the symbol subtype and thus cannot hide it. Is this normal or am i doing 
something wrong?

> Am 27.02.2020 um 09:02 schrieb Tarquin Wilton-Jones via Therion 
> :
> 
> Nice one :)
> 
> All simple enough to understand (I might put it on the wiki with some
> explanatory comments).
> 
>> thelabel(txt, pos); 
> 
> I notice in the main Therion Metapost, it uses
> lab:=thelabel@#(txt, pos);
> to make sure that it can respect alignment, which your code cannot.
> Don't suppose you worked out how to pass the correct alignment value to
> it, did you?
> 
>> interim bboxmargin:=6.5bp;% padding border->text
> 
> Just checking, since I don't know the "interim" keyword very well ...
> Doesn't it need to be inside a "begingroup/endgroup" pair, in order to
> know when to stop applying the "interim" value to the internal
> bboxmargin variable?
> 
> As far as I can tell, you are modifying the global value of it, so all
> subsequent uses of that internal variable will end up with your padding.
> At least until the next "endgroup" happens somewhere above your code in
> the stack.
> 
> (You are also trampling on any existing variables called lab, q or txt,
> but this is normal for Therion's code for some reason. Personally, I
> have started wrapping all of my symbol code in a group whenever it uses
> variables, and then I save them in order to make a macro equivalent to a
> "local" variable. This was needed in one case because I reused some
> variable name with a different datatype, and caused Metapost to get upset.)
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Need metapost wizard: new text label

2020-02-26 Thread Benedikt Hallinger

Thank you very much!
indeed i was really close. Time to go to bed, hopefully my eyes can find 
the bed :)
It is also already mentioned correctly at the therion book. However, 
maybe it would be good to add  footnote at page 35 so this is made more 
obvious.


The working code below, in case someone tries to google it.

Attached also screenshots:
- in the legend the current survey name is printed
- in the map the "-attr text 1234" is honored.

point symbol in th2-file:   point u:mappe -attr text "1234"





# Symbol to denote assigned survey.
# If option -attr text  is given, it will be used; otherwise 
current survey is shown.

def p_u_mappe(expr pos, theta, sc, al) =
  T:=identity aligned al rotated theta scaled sc shifted pos;

  % GET LABEL TEXT:
  string txt;
  if known(ATTR_text):
txt := ATTR_text;
  else:
txt := ATTR__survey;
  fi;

  % DRAW LABEL:
  lab:=thelabel(txt, pos);
  process_label(pos, 0.001);


  % BORDER:
  pickup PenA;  % border thickness
  interim bboxmargin:=6.5bp;% padding border->text
  q:=((bbox lab) smoothed 4);   % smoothness of corners
  draw q;

enddef;





Am 2020-02-27 0:37, schrieb Tarquin Wilton-Jones via Therion:

Hi Benedikt,


  txt := "123";
  txt := ATTR__text;   % does not work. How do i get the value 
from


You are so nearly right.
Two underscores for Therion's built in properties. One underscore for
-attr properties.
ATTR_text

I have an example here:
https://therion.speleo.sk/wiki/metapost#rope_lengths

Regarding your main question, no I don't know how to create custom 
label

ornamentation (it looks like black magic to me). But you can see what I
have learned here:
https://therion.speleo.sk/wiki/metapost#adding_custom_styled_labels_at_any_point_linepoint

And then you need to look through the Metapost debugging output for:
vardef p_label@#(expr txt,pos,rot,mode) =

That is the code that actually draws labels with ornamentation. It then
calls functions like this: process_circledlabel

That in turn - after writing a label - uses some kind of bounding box
measuring to decide how to ornament it. Check out the function:
def write_circ_bbox expr q =

Good luck sir. If you work it out, please document it so we can all
learn how it all works. :)

Cheers,

Tarquin
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Need metapost wizard: new text label

2020-02-26 Thread Benedikt Hallinger

Hello,
meanwhile i tried to play more with this.
I'm nearly there, however i still have no clue how to read out the text 
attribute i attached to the symbol in the th2. "txt := ATTR__text;" 
throws metapost out the window.


The point is defined like this:
  point 234.0909090909091 626.3636363636364 u:mappe -attr text 1234


Layout i came up with so far (does not support 
scaling/alignment/rotation, but thats fine so far):




-
layout m

  # Symbol to denote assigned survey.
  # If option -attr text  is given, it will be used; otherwise 
current survey is shown.

  code metapost
def p_u_mappe(expr pos, theta, sc, al) =
  T:=identity aligned al rotated theta scaled sc shifted pos;

  % GET LABEL TEXT:
  string txt;
  txt := "123";
  %txt := ATTR__text;   % does not work. How do i get the value from 
' -attr text "345" '?

  if known(ATTR__text):
txt := ATTR_text;   % NEVER evaluates to TRUE!?!?
  else:
txt := ATTR__survey;
  fi;

  % DRAW LABEL:
  lab:=thelabel(txt, pos);
  process_label(pos, 0.001);


  % BORDER:
  pickup PenA;  % border thickness
  interim bboxmargin:=6.5bp;% padding border->text
  q:=((bbox lab) smoothed 4);   % smoothness of corners
  draw q;

enddef;

initsymbol("p_u_mappe");
  endcode
endlayout
-----


Am 2020-02-19 18:34, schrieb Benedikt Hallinger:

Hi there,
i need some new point symbol (text label). Its a simple text on white
color within a box with rounded corners, like the attached image.


My metapostskills are not good enough to get this to work...

For now i would be happy to have such a user point symbol.
It would be important that it scales well and react to xtherions
direction setting.

Optional it would be cool if the default symbol could show the current
survey identifier of the nearest station in the scrap and maybe also
the nearest next survey.
But this information could also be maintained manually for now.

Is there someone here for my rescue? :)
Thanks in advance,
Beni

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


  1   2   3   >