Re: [Therion] kml export is not working

2019-12-02 Thread Torsten Schnitter via Therion
Hello

I have stripped down all the data to the minimum.
You can find all attached in the zip file.

As far as I know you only need a geo reference within your survey network.
But you don't need to have a geo reference within your selected data for output.
Am I wrong with that?

Anyhow.
If you have a look at the "thconfig-survey.thc" file you can find some "DOES 
NOT WORK" and "DOES WORK" statements.
Beside this when not selecting anything it also does work with the kml export.
What also does NOT work is selecting all lines (wihat should be the same as 
selecting nothing).

When I do select the map "survey_southpassage_plan_m" it does work.
This map does have the same lines like the first part in the 
thconfig-survey.thc file which is not working.

May be there is something wrong in the select command?

regards,
Torsten

> Nick Bairstow  hat am 2. Dezember 2019 um 23:19 geschrieben:
> 
> 
> Just got there before me John. You are correct no coords but there is not 
> much else either. I can edit the kml and insert coords name and icon and the 
> file opens as expected but no centreline/splays or map outline in the case of 
> model output. Also, if you try to compile Therion and ask for kml output and 
> there are no coords in the .th then it fails with a warning.
> 
> I think there is something else going on and we need to see all the data.
> 
>  
> 
> From: Therion  On Behalf Of John Stevens
> Sent: 02 December 2019 21:38
> To: therion@speleo.sk
> Subject: Re: [Therion] kml export is not working
> 
>  
> 
> Looking at the kml file, I don't see the geo referenced points. By taking 
> just part of the system, have you cut out a fixed point for the kml. This is 
> a problem I have found when doing part of a system.
> 
>  
> 
>  
> 
>  
> 
> From: Torsten Schnitter via Therion
> 
> Sent: Monday, December 2, 2019 1:35 PM
> 
> To: therion@speleo.sk mailto:therion@speleo.sk
> 
> Cc: Torsten Schnitter
> 
> Subject: [Therion] kml export is not working
> 
>  
> 
> Hello
> 
> I have some problems with exporting a kml file and I wonder what I'm 
> doing wrong.
> I'm using Therion 5.4.4 (2019-05-01) on Windows 7.
> Aim is to just get the survey lines from a part of the cave system into a 
> kml file.
> 
> In the thconfig file I select several lines with the "select command".
> (I used to do this with double click on the data structure on the right 
> side from the compiler window)
> 
> Generating a pdf file with:
> export map -fmt pdf -proj plan -o 
> _Output\Reseau_de_lOuysse_southpassage_2019.pdf -layout layout_plan
> is doing exactly what I want to have.
> The result is just the survey data from a part of the complete cave 
> system.
> 
> But exporting a kml file with the same selected lines fails:
> export model -fmt kml -o _Output\Reseau_de_lOuysse_southpassage_2019.kml
> This file does not have any survey data in it.
> 
> Both files are attached.
> Does anybody have any idea what I'm doing wrong?
> 
> regards,
> Torsten
> 
> 
> -
> 
> ___
> Therion mailing list
> Therion@speleo.sk mailto: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] Colouring an elevation based on surveys that are not being displayed

2019-12-02 Thread Bill Gee
Hmmm...  OK, one more WILD idea:

Print the colored map as an atlas.  There are a lot of parameters that go into 
generating an atlas.  I suspect with some playing around you could get somewhat 
close to getting the portion of the cave you want on one page of the atlas.

>From there it is a simple matter to extract one page from a PDF file and make 
>it into a new file.

I was not anticipating that anyone but you would need ImageMagick.  I thought 
the use case was that you would generate and distribute the image files, and 
everyone else would simply admire your handiwork!  :-)

-- 
Bill Gee



On Monday, December 2, 2019 3:08:41 PM CST Tarquin Wilton-Jones via Therion 
wrote:
> > It is quite easy to turn a PDF into a JPG, especially on Linux. Once
> > that is done, then any decent photo editor can crop it. The legend will
> > be a problem. I suppose you could crop out two sections (the legend and
> > the cave portion you want) and paste them into a single image.
> 
> Thanks for the suggestion.
> 
> For me, this is all very easy indeed, and if it were only me that
> mattered, I would probably go down this route (as I have done with
> wkhtmltopdf to get a modified cavelist into a survey). Even removing the
> legend part is very easy with the various Therion options. But my
> intention is to be able to share my surveys, source and all (they are
> going to be one of the open source licences). Sadly, I cannot expect
> another user to have to install and configure ImageMagick, and make
> adjustments when adding new cave passage to a survey which shifts the
> positions of things.
> 
> This is why I am hoping for a solution that works entirely within
> Therion, if at all possible.
> 
> Still hoping for "altitude-relative caveMP@cave", which would be so much
> easier for both my use case, and the use cases that I can see others
> wanting :)
> ___
> 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] kml export is not working

2019-12-02 Thread Nick Bairstow
Just got there before me John. You are correct no coords but there is not much 
else either. I can edit the kml and insert coords name and icon and the file 
opens as expected but no centreline/splays or map outline in the case of model 
output. Also, if you try to compile Therion and ask for kml output and there 
are no coords in the .th then it fails with a warning.
I think there is something else going on and we need to see all the data.

From: Therion  On Behalf Of John Stevens
Sent: 02 December 2019 21:38
To: therion@speleo.sk
Subject: Re: [Therion] kml export is not working

Looking at the kml file, I don't see the geo referenced points. By taking just 
part of the system, have you cut out a fixed point for the kml. This is a 
problem I have found when doing part of a system.



From: Torsten Schnitter via Therion
Sent: Monday, December 2, 2019 1:35 PM
To: therion@speleo.sk
Cc: Torsten Schnitter
Subject: [Therion] kml export is not working


Hello

I have some problems with exporting a kml file and I wonder what I'm doing 
wrong.
I'm using Therion 5.4.4 (2019-05-01) on Windows 7.
Aim is to just get the survey lines from a part of the cave system into a kml 
file.

In the thconfig file I select several lines with the "select command".
(I used to do this with double click on the data structure on the right side 
from the compiler window)

Generating a pdf file with:
export map -fmt pdf -proj plan -o 
_Output\Reseau_de_lOuysse_southpassage_2019.pdf -layout layout_plan
is doing exactly what I want to have.
The result is just the survey data from a part of the complete cave system.

But exporting a kml file with the same selected lines fails:
export model -fmt kml -o _Output\Reseau_de_lOuysse_southpassage_2019.kml
This file does not have any survey data in it.

Both files are attached.
Does anybody have any idea what I'm doing wrong?

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] Maps-offset New development version

2019-12-02 Thread Stacho Mudrak
Hi Bruce,

obviously there was an error in the code, now it should work as expected.

Only selected maps are exported and maps offset can be turned off. Thanks
for finding out.

S.

On Sun, 1 Dec 2019 at 23:03, Bruce Mutton  wrote:

> Thanks Martin
>
> Something might be a bit off however.
>
> Is ‘maps’ and ‘maps-offset’ intended to work together or are they mutually
> exclusive?
>
>
>
> maps on
>
> maps-offset off
>
> select (one or more) *maps*
>
> This combination produces a pdf output as though only ‘maps off’ had been
> specified.  ie all scraps that exist are exported, not just those that have
> been selected.  I was expecting that just the scraps specified in the
> selected maps would be exported, so maybe this is a bug?
>
>
>
> maps on
>
> maps-offset on
>
> select (one or more) *maps*
>
> This combination produces an output that seems to match those that we
> would get prior to these features being developed, as is intended I presume.
>
>
>
> maps off
>
> maps-offset on
>
> select (one or more) *maps*
>
> I did not know what to expect with this combination as one would seem to
> contradict the other.  As far as I can tell, the maps off specification
> seems to have been ignored, or perhaps it is overridden by the ‘maps-offset
> on’.  I get the same map as if both features are ‘on’.
>
>
>
> If I swap the order in the above…
>
> maps-offset on
>
> maps off
>
> select (one or more) *maps*
>
> This produces a pdf that matches ‘maps off’, so I include the order is
> important, and the last one specified dominates.
>
>
>
> So at present, it seems that the ‘maps-offset’ feature duplicates almost
> exactly the ‘maps’ feature.  I presume this is not what is intended.
>
>
>
> Also the syntax description in the Therion Book for maps has been swapped
> with maps-offset, just to make it interesting perhaps. :)
>
>
>
> I wonder if the therion.log should report the state of the maps-offset
> flag, once it is working?
>
>
>
> Bruce
>
>
>
> *From:* Therion  *On Behalf Of *Martin Sluka
> via Therion
> *Sent:* Sunday, 1 December 2019 22:04
> *To:* Therion users List for 
> *Cc:* Martin Sluka 
> *Subject:* [Therion] New development version
>
>
>
> https://github.com/therion/therion/tree/802ad7c
>
>
> Add thconfig option to disable offsets
>
>
>
> 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] kml export is not working

2019-12-02 Thread John Stevens
Looking at the kml file, I don't see the geo referenced points. By taking just 
part of the system, have you cut out a fixed point for the kml. This is a 
problem I have found when doing part of a system.



From: Torsten Schnitter via Therion 
Sent: Monday, December 2, 2019 1:35 PM
To: therion@speleo.sk 
Cc: Torsten Schnitter 
Subject: [Therion] kml export is not working

Hello


I have some problems with exporting a kml file and I wonder what I'm doing 
wrong.
I'm using Therion 5.4.4 (2019-05-01) on Windows 7.
Aim is to just get the survey lines from a part of the cave system into a kml 
file.


In the thconfig file I select several lines with the "select command".
(I used to do this with double click on the data structure on the right side 
from the compiler window)


Generating a pdf file with:
export map -fmt pdf -proj plan -o 
_Output\Reseau_de_lOuysse_southpassage_2019.pdf -layout layout_plan
is doing exactly what I want to have.
The result is just the survey data from a part of the complete cave system.


But exporting a kml file with the same selected lines fails:
export model -fmt kml -o _Output\Reseau_de_lOuysse_southpassage_2019.kml
This file does not have any survey data in it.


Both files are attached.
Does anybody have any idea what I'm doing wrong?


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] Colouring an elevation based on surveys that are not being displayed

2019-12-02 Thread Tarquin Wilton-Jones via Therion
> Would the colours for the specific altitudes not be fixed if you used
> lookup?

They would, but the intention was that - rather than having to manually
select all the colours to get the perfect graduation of colours (which
you have to do if you use a lookup table), you could get Therion to
automatically take the height from a map, since it already knows those
heights, and knows exactly how to colour those parts.

I had thought about using lookups, but it feels very clunky as an
approach, since it means manually specifying the altitudes of the
highest and lowest points - manual knowledge of automatically calculated
data.

With a lookup, you need to know exactly the colours it will have
selected for each height that matters. Each time a new piece of passage
gets added to the top or bottom of the cave, which then changes all of
the automatic colouring within the cave, you will have to re-calculate
the lookup colours again for use with your subset maps.

With "altitude-relative caveMP@cave" this would all become automatic.
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Colouring an elevation based on surveys that are not being displayed

2019-12-02 Thread alastair gott
Hi Tarquin,

Might be really oversimplifying but didn't you write a wiki page about this 7 
months ago? https://therion.speleo.sk/wiki/colouringelevations

With the use of Lookup at the bottom of the page?

Would the colours for the specific altitudes not be fixed if you used lookup?


Regards,
Alastair Gott.

alastairg...@hotmail.com,
M: 07931779380.

From: Therion  on behalf of Tarquin Wilton-Jones via 
Therion 
Sent: 02 December 2019 21:08
To: therion@speleo.sk 
Cc: Tarquin Wilton-Jones 
Subject: Re: [Therion] Colouring an elevation based on surveys that are not 
being displayed

> It is quite easy to turn a PDF into a JPG, especially on Linux. Once
> that is done, then any decent photo editor can crop it. The legend will
> be a problem. I suppose you could crop out two sections (the legend and
> the cave portion you want) and paste them into a single image.

Thanks for the suggestion.

For me, this is all very easy indeed, and if it were only me that
mattered, I would probably go down this route (as I have done with
wkhtmltopdf to get a modified cavelist into a survey). Even removing the
legend part is very easy with the various Therion options. But my
intention is to be able to share my surveys, source and all (they are
going to be one of the open source licences). Sadly, I cannot expect
another user to have to install and configure ImageMagick, and make
adjustments when adding new cave passage to a survey which shifts the
positions of things.

This is why I am hoping for a solution that works entirely within
Therion, if at all possible.

Still hoping for "altitude-relative caveMP@cave", which would be so much
easier for both my use case, and the use cases that I can see others
wanting :)
___
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] Colouring an elevation based on surveys that are not being displayed

2019-12-02 Thread Tarquin Wilton-Jones via Therion
> It is quite easy to turn a PDF into a JPG, especially on Linux. Once
> that is done, then any decent photo editor can crop it. The legend will
> be a problem. I suppose you could crop out two sections (the legend and
> the cave portion you want) and paste them into a single image.

Thanks for the suggestion.

For me, this is all very easy indeed, and if it were only me that
mattered, I would probably go down this route (as I have done with
wkhtmltopdf to get a modified cavelist into a survey). Even removing the
legend part is very easy with the various Therion options. But my
intention is to be able to share my surveys, source and all (they are
going to be one of the open source licences). Sadly, I cannot expect
another user to have to install and configure ImageMagick, and make
adjustments when adding new cave passage to a survey which shifts the
positions of things.

This is why I am hoping for a solution that works entirely within
Therion, if at all possible.

Still hoping for "altitude-relative caveMP@cave", which would be so much
easier for both my use case, and the use cases that I can see others
wanting :)
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Colouring an elevation based on surveys that are not being displayed

2019-12-02 Thread Bill Gee
Regarding the map-image: As far as I know, Therion will not produce a JPG file. 
 However ...

It is quite easy to turn a PDF into a JPG, especially on Linux.  Once that is 
done, then any decent photo editor can crop it.  The legend will be a problem.  
I suppose you could crop out two sections (the legend and the cave portion you 
want) and paste them into a single image.

On Linux you need the ImageMagick package.  Most distributions include it as a 
base item.  With that you use the "convert" command:

convert -density 300 -rotate 90 infile.pdf outfile.jpg

-density sets the dots-per-inch in the output file.  -rotate rotates the image 
90 degrees before saving. 

Convert has hundreds of options  Spend some time with the man page.

There is a Windows version of ImageMagick.

-- 
Bill Gee



On Monday, December 2, 2019 2:12:57 PM CST Tarquin Wilton-Jones via Therion 
wrote:
> Hi folks,
> 
> When you colour a survey by depth (color map-fg altitude), it colours it
> based on the scraps that have been selected. This is normally useful.
> 
> When you produce an output with only one part of the survey (eg. a
> zoomed-in section of a more complex part of the survey), however, it
> would be more useful to be able to keep it the same colour as it was in
> the larger survey, so that a viewer can quickly see which part of the
> cave they are looking at, and see that the colours match. (My own
> use-case is different, but the solution would be the same.)
> 
> Is there, for example, a way to say this:
> 
> layout local
>   color map-fg altitude
> endlayout
> source "cave.th"
> select subsectio...@subsection.cave
> altitude-relative caveMP@cave
> export map -proj plan -layout plan -o "cave.pdf"
> 
> Alternatively, is there a way to add scraps belonging to the highest
> points and lowest points into the map, but not have them render, while
> still being used for altitude colouring (this seems like a hack rather
> than being a dedicated solution).
> 
> Alternatively (and I know this will seem a little out of place here, but
> it is an alternative solution for what I need), is there a way to import
> a map-image, and crop it to only include a portion of the image?
> 
> 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] Colouring an elevation based on surveys that are not being displayed

2019-12-02 Thread Tarquin Wilton-Jones via Therion
Hi folks,

When you colour a survey by depth (color map-fg altitude), it colours it
based on the scraps that have been selected. This is normally useful.

When you produce an output with only one part of the survey (eg. a
zoomed-in section of a more complex part of the survey), however, it
would be more useful to be able to keep it the same colour as it was in
the larger survey, so that a viewer can quickly see which part of the
cave they are looking at, and see that the colours match. (My own
use-case is different, but the solution would be the same.)

Is there, for example, a way to say this:

layout local
  color map-fg altitude
endlayout
source "cave.th"
select subsectio...@subsection.cave
altitude-relative caveMP@cave
export map -proj plan -layout plan -o "cave.pdf"

Alternatively, is there a way to add scraps belonging to the highest
points and lowest points into the map, but not have them render, while
still being used for altitude colouring (this seems like a hack rather
than being a dedicated solution).

Alternatively (and I know this will seem a little out of place here, but
it is an alternative solution for what I need), is there a way to import
a map-image, and crop it to only include a portion of the image?

Cheers!

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


Re: [Therion] kml export is not working

2019-12-02 Thread Nick Bairstow
I am using 5.4.4 as well but on Win 10
I use:
export model -o Output/PathToYourCave.kml

This works fine for me. Adding -fmt kml to the line also works. To be honest I 
am struggling to break it unless I do something very wrong. Do you get a 
warning when compiling? It is strange that you get an output but it seems to 
contains nothing. I have spent a short while attempting to mirror that with 
some of my data that but have failed.
Do you get the same result with export map -fmt kml?
Without seeing all your data all we can do is to try and break ours which is 
perhaps not the best way to find an answer.
Hopefully someone will have seen this behaviour before and know what is wrong.
I will try again later.

Nick


From: Therion [mailto:therion-boun...@speleo.sk] On Behalf Of Torsten Schnitter 
via Therion
Sent: 02 December 2019 13:35
To: therion@speleo.sk
Cc: Torsten Schnitter 
Subject: [Therion] kml export is not working


Hello

I have some problems with exporting a kml file and I wonder what I'm doing 
wrong.
I'm using Therion 5.4.4 (2019-05-01) on Windows 7.
Aim is to just get the survey lines from a part of the cave system into a kml 
file.

In the thconfig file I select several lines with the "select command".
(I used to do this with double click on the data structure on the right side 
from the compiler window)

Generating a pdf file with:
export map -fmt pdf -proj plan -o 
_Output\Reseau_de_lOuysse_southpassage_2019.pdf -layout layout_plan
is doing exactly what I want to have.
The result is just the survey data from a part of the complete cave system.

But exporting a kml file with the same selected lines fails:
export model -fmt kml -o _Output\Reseau_de_lOuysse_southpassage_2019.kml
This file does not have any survey data in it.

Both files are attached.
Does anybody have any idea what I'm doing wrong?

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


[Therion] kml export is not working

2019-12-02 Thread Torsten Schnitter via Therion
Hello

I have some problems with exporting a kml file and I wonder what I'm doing 
wrong.
I'm using Therion 5.4.4 (2019-05-01) on Windows 7.
Aim is to just get the survey lines from a part of the cave system into a kml 
file.

In the thconfig file I select several lines with the "select command".
(I used to do this with double click on the data structure on the right side 
from the compiler window)

Generating a pdf file with:
export map -fmt pdf -proj plan -o 
_Output\Reseau_de_lOuysse_southpassage_2019.pdf -layout layout_plan
is doing exactly what I want to have.
The result is just the survey data from a part of the complete cave system.

But exporting a kml file with the same selected lines fails:
export model -fmt kml -o _Output\Reseau_de_lOuysse_southpassage_2019.kml
This file does not have any survey data in it.

Both files are attached.
Does anybody have any idea what I'm doing wrong?

regards,
Torsten


Reseau_de_lOuysse_southpassage_2019.pdf
Description: Adobe PDF document


Reseau_de_lOuysse_southpassage_2019.kml
Description: application/vnd.google-earth.kml
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Breaking a loop at a specific station on extended elevation

2019-12-02 Thread Martin Sluka via Therion
Thank you!

Martin

> 2. 12. 2019 v 9:22, Tarquin Wilton-Jones via Therion :
> 
>> This would make an excellent mini topic on the wiki (in the existing
>> article on "extend").
> 
> 
> I have now added a new article, with details of the investigation:
> https://therion.speleo.sk/wiki/breakingextend
> 
> Because it uses a load of images, it was nicer to have it as a separate
> article, rather than litter the existing one. Bruce, please double check
> you are happy with how I linked it from your "extend" article.
> ___
> 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] Breaking a loop at a specific station on extended elevation

2019-12-02 Thread Tarquin Wilton-Jones via Therion
> This would make an excellent mini topic on the wiki (in the existing
> article on "extend").


I have now added a new article, with details of the investigation:
https://therion.speleo.sk/wiki/breakingextend

Because it uses a load of images, it was nicer to have it as a separate
article, rather than litter the existing one. Bruce, please double check
you are happy with how I linked it from your "extend" article.
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion