[Therion] Экспорт в KML - export cave-list html and kml

Bruce Mutton bruce at tomo.co.nz
Sun Jan 28 10:45:34 CET 2018


Thankyou Vlad, makes me feel like I’ve finally made it!  You’ve tricked me into starting a wiki post, in the FAQ page.

Right, your BTW made me think to look in the Therion Book (if all else fails, read the instructions).

Page 17 clears up the mystery of when Therion assumes a ‘cave’ if none is defined, but I think there are other cases.

 

All this looking at cave-list has made me realise I have been defining caves in the wrong place, the lowest level trip surveys.

I should be defining them in the next level up, the cave surveys – obvious really.

I will play with that for a bit, and I am hoping it does not change the behaviour.

 

Bruce

 

From: Therion [mailto:therion-bounces at speleo.sk] On Behalf Of ???????? ???????? via Therion
Sent: Sunday, 28 January 2018 7:54 PM
To: List for Therion users <therion at speleo.sk>
Cc: Владимир Георгиев <vld.georgiev at gmail.com>
Subject: Re: [Therion] Экспорт в KML - export cave-list html and kml

 

Bruce

Very good test and illustrations. You are my Therion guru :)

Using both markings seems to be a good way to separate the "cave" (main entrance marked on the survey command) from the secondary entrances (marked with station commands), and to switch the secondary ones on/off in the lists.


​Btw​, if you use -surveys off it hides the entrances, but only if you have defined a "cave main entrance" in the survey. If there is no main entrance, it still shows all the secondary ones defined with station.

 

Would you have the time to put your description and screenshots in the wiki? This is good information have.

Vlad

 

 

On Sun, Jan 28, 2018 at 4:45 AM, Bruce Mutton via Therion <therion at speleo.sk <mailto:therion at speleo.sk> > wrote:

Sorry С уважением, I may have taken over your post!

 

> I suspect the kml exports are not reporting the hierarchy however.

I was wrong, export cave-list -fmt kml does report the full hierarchy, and may even behave better than the html output.

But it is a bit complicated – I did some testing…

 

Using this general form of survey definition…

survey 01 -title “Some Cave name” -entrance 1  

#defining the entrance here as part of survey definition tells Therion ‘it is a cave’

  centerline
    cs lat-long
    fix 0 11:22:33.4 22:33:44.5 1234  # set the GPS coordinates and elevation of station 0
    station 3 "Some other entrance name" entrance  

      # Mark station 3 as another entrance of ‘Some Cave name’ cave, and display it’s name also 

    …

  endcenterline

endsurvey

 

And using these exports….

 

#html

export cave-list \

  -surveys on   \ # on = show survey, cave hierarchy, & entrances so long as location is on, 

                  # off = show caves only, not entrances, no hierarchy

  -location on \  # on = show cave coords, and entrance coordinates only if surveys are on

                  # off = no coordinates

   -output ./Output/RiwakaSystemCaves.html 

 

#kml

export cave-list \

  -surveys on   \ # on = show survey, cave & entrances hierarchy

                  # off = show caves only, not entrances, no hierarchy

  -location on \  # on|off = no difference

   -output ./Output/RiwakaSystemCaves.kml   

 

Some examples using variations of the above.  In outputs below there are four caves explicitly defined; H-Hawkes Cave, Hawkes Kairuru Middle Cave, Kairuru Cave, Kairuru 3030.  And one cave that Therion has deduced as it is implied by the survey structure; Ngarua cave, Takaka Hill.  (Unfortunately I have not been disciplined with naming, so apologies that it is confusing). 

 

“Kairuru 3030” is defined as a cave, and it has two entrances defined in the centrelines (that are therefore part of Kairuru 3030 Cave, which has three entrances in total).

It is one of many caves in a Therion project that the outputs below are taken from.

Here the word ‘cave’ is used to mean the main entrance (ie ‘cave’ is an entrance and a cave, whereas ‘entrance’ is just an entrance that is usually a part of an already defined cave).

 

HTML Outputs

 

Html surveys on location on (the survey, cave and entrance hierarchy is shown.  Caves have a length reported, entrances do not)



 

Html surveys on location off (the survey and cave hierarchy is shown, but not entrances*.  Caves have a length reported, entrances do not)



*  Could this be a bug? Maybe, maybe not.

The last two records ARE entrances, but they have no survey legs associated, they are gps fixes only.  Maybe that is why Therion treats them differently and displays these but not others. 

Therion has used the survey hierarchy to infer it is a cave called “Ngarua Cave, Takaka Hill” even though there is no cave entrance defined in the survey definition.

 

Html surveys off location on (No hierarchy, caves only, no entrances – except fixed entrances, has coordinates columns)

Html surveys off location off (No hierarchy, caves only, no entrances – except fixed entrances, no coordinates)



 

KML Outputs

 

Kml surveys on location on (the survey, cave and entrance hierarchy is shown.  Does not distinguish bottom level records as either cave or entrance, could be either)

Kml surveys on location off (same)



 

Kml surveys off location on, 

Kml surveys off location off (both look the same, both contain coordinates - kml would be boring without locations!)



 

Hope that helps :)

Bruce

 

From: Bruce Mutton [mailto:bruce at tomo.co.nz <mailto:bruce at tomo.co.nz> ] 
Sent: Sunday, 28 January 2018 11:58 AM
To: List for Therion users <therion at speleo.sk <mailto:therion at speleo.sk> >
Subject: Re: [Therion] Экспорт в KML

 

Yes it does make a difference. Define a cave with the survey definition. Define secondary entrances within centrelines.

See the difference if you export caves to a html file. For best effect you can do this for a multi cave project where each cave has multiple entrances.  I will post example outputs later.

I suspect the kml exports are not reporting the hierachy however.

 

Bruce

 

Sent from my Samsung device, hence the typo's



-------- Original message --------
From: Владимир Георгиев via Therion <therion at speleo.sk <mailto:therion at speleo.sk> > 
Date: 28/01/18 10:16 (GMT+12:00) 
To: List for Therion users <therion at speleo.sk <mailto:therion at speleo.sk> > 
Cc: Владимир Георгиев <vld.georgiev at gmail.com <mailto:vld.georgiev at gmail.com> > 
Subject: Re: [Therion] Экспорт в KML 

Bruce

Yes, that's right, you can define any number of entrances like this.
Although I admit I haven't used the "survey 01 -title “Some Cave name” -entrance 1" syntax. So far I have always listed the entrances within the surveys with several  "station XX "Some other entrance name" entrance" lines.


Does it make a difference which syntax is used?

Vlad

 

On Sat, Jan 27, 2018 at 11:01 PM, Bruce Mutton via Therion <therion at speleo.sk <mailto:therion at speleo.sk> > wrote:

And I have no Russian, but making assumptions based on Vladimir’s response…

(and apologising for using English)

 

There are more subtle nuances that can be conveyed.

Have a look at https://therion.speleo.sk/wiki/drawingchecklist?s[]=entrance#points <https://therion.speleo.sk/wiki/drawingchecklist?s%5b%5d=entrance#points>  and scroll down to ‘Passage Ends’ point entrance.

You can tell Therion to define a cave, and further, specifically define all the entrances that the ‘cave’ has.

 

To expand on and change Vladimir’s example

 

survey 01 -title “Some Cave name” -entrance 1  

#defining the entrance here as part of survey definition tells Therion ‘it is a cave’

  centerline
    cs lat-long
    fix 0 11:22:33.4 22:33:44.5 1234  # set the GPS coordinates and elevation of station 0
    station 3 "Some other entrance name" entrance  

      # Mark station 3 as another entrance of ‘Some Cave name’ cave, and display it’s name also 

    …

  endcenterline

endsurvey

Have I got that right Vlad?

Bruce

 

 

From: Therion [mailto:therion-bounces at speleo.sk <mailto:therion-bounces at speleo.sk> ] On Behalf Of ???????? ???????? via Therion
Sent: Sunday, 28 January 2018 7:18 AM
To: List for Therion users <therion at speleo.sk <mailto:therion at speleo.sk> >
Cc: Владимир Георгиев <vld.georgiev at gmail.com <mailto:vld.georgiev at gmail.com> >
Subject: Re: [Therion] Экспорт в KML

 

Hi

My Russian is not that good, so I will reply in English.

The kml model can export the entrances, if that is what you mean by "объектов". To get the name of the cave to display, you have to mark one or more stations as entrances. Something like this:

  centerline
    cs lat-long
    fix 0 11:22:33.4 22:33:44.5 1234  # set the GPS coordinates and elevation of station 0
    station 0 "Some cave name" entrance  # Mark station 0 as an entrance and set the name to be displayed. Not necessarily the same station as the one with the coords.
  ...

Vladimir

 

 

2018-01-26 11:08 GMT+02:00 Кунгурская лаборатория-стационар via Therion <therion at speleo.sk <mailto:therion at speleo.sk> >:

Здравствуйте.  Подскажите, пожалуйста. Я пытаюсь экспортировать данные
в KML-файл. Вот строка

export model -fmt kml -output Kungur_Z.kml

При   просмотре   kml-файла   он   не  отображает названия объектов, а
отображаются только линии.

Подскажите,  пожалуйста, как сделать так, чтобы названия объектов тоже
отображались?

 


_______________________________________________
Therion mailing list
Therion at speleo.sk <mailto:Therion at speleo.sk> 
https://mailman.speleo.sk/listinfo/therion

 


_______________________________________________
Therion mailing list
Therion at speleo.sk <mailto:Therion at speleo.sk> 
https://mailman.speleo.sk/listinfo/therion

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20180128/3842b0a8/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 19688 bytes
Desc: not available
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20180128/3842b0a8/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.png
Type: image/png
Size: 17148 bytes
Desc: not available
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20180128/3842b0a8/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.png
Type: image/png
Size: 7765 bytes
Desc: not available
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20180128/3842b0a8/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image007.png
Type: image/png
Size: 13496 bytes
Desc: not available
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20180128/3842b0a8/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image008.png
Type: image/png
Size: 6915 bytes
Desc: not available
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20180128/3842b0a8/attachment-0004.png>


More information about the Therion mailing list