[Therion] Multiple caves on one map with an offset
Bruce Mutton
bruce at tomo.co.nz
Fri Nov 15 08:42:14 CET 2019
Hi Bill
I have mashed up something with the old parts of your dataset, plus whatever new bits you posted recently, then commented out bits until it would compile.
Then I added some random offsets, and created an overview BCRPlanMap (with just two of the caves) as attached.
Took me a little while, as I’m not used to the structure you use, but it seems to work just fine.
Extract of AllieSprings with offsets plotting OK
First few lines of Allie thconfig
encoding utf-8
source AllieSpringCave.th
# input ../TherionMasterFiles/CustomSymbolsCode.txt
select AllieMainPlan
# This layout is for the main 2D map, all on one page
layout basics
units imperial
scale-bar 50 feet
First few lines of AllieSpringCave.th
encoding utf-8
map AllieMainPlan -title "Allie Spring Cave (PUL-317) - Plan View" -projection plan
# Main passages
MainPassages at AllieSpringCave
# Upper section near Blue Hole
FB7aUpper at AllieSpringCave [50 50 ft] below
XSidePassage at AllieSpringCave [50 50 ft] below
# Basement area of C survey. Connects to Shifty Rock Pit
CC1LowerLevel at AllieSpringCave [50 50 ft] below
# Bailout Passage goes under the main passage
DRLowerLevel at AllieSpringCave [50 50 ft] below
# Upper lead from Texas Dome
# TopOfTexas at AllieSpringCave [300 100 ft] above
endmap
survey AllieSpringCave -title "Allie Spring Cave"
# Contains the cave entrance and first part of water crawl
#Scraps Entrance1 and Entrance2
input AllieSpringCaveEntrance1.th2
#Scrap Entrance3
input AllieSpringCaveEntrance2.th2
Extract of Big Cavern Ranch with offsets plotting OK
First few lines of BigCavernRanch thconfig below (and BigCavernRanch attached)
encoding utf-8
source BigCavernRanch.th
# input ../TherionMasterFiles/CustomSymbolsCode.txt
# select AllieMainPlan at BCRSurvey #select individual maps like this
select BCRPlanMap #select overall map like this
# This layout is for the main 2D map, all on one page
layout basics
language en_US
units imperial
I notice there are some strange offsets in your file. Maybe they were just random experiments, but I suspect zero offsets are not a great idea.
ie like this
XSidePassage at AllieSpringCave [0 0] below
Anyway, they seem to work just fine, we get both the shading and the passage rendering.
Bruce
From: Therion <therion-bounces at speleo.sk> On Behalf Of Bill Gee
Sent: Friday, 15 November 2019 09:11
To: List for Therion users <therion at speleo.sk>
Subject: Re: [Therion] Multiple caves on one map with an offset
Hi Martin -
I tried a few more things based on your suggestions. The first thing I had to learn was how to get the Survey Structure and Map Structure boxes to populate. The secret is to run the therion compiler from inside xtherion. I have been running it straight from the command line. Since Big Cavern Ranch has no drawings, I did not see any reason to bother with xtherion.
The attached file "selection_002.jpg" shows the survey and map structure boxes. These both look reasonably sane to me. I have attached the thconfig and .th file that were used to generate this.
I ran this also with a map defined in the .th file. The result was another item in Map Structure under "plan which was the name of the map I defined. In that map were all of the pieces that are also present the other levels under "plan".
The thconfig file has a line "select AllieMainPlan". I changed that to "select AllieMainPlan at all" and recompiled. No difference. The resulting map has all four caves and no offsets. The map structure as reported by xtherion did not change.
--
Bill Gee
On Thursday, November 14, 2019 8:33:22 AM CST Martin Sluka via Therion wrote:
>
> > 14. 11. 2019 v 14:38, Bill Gee <bgee at campercaver.net <mailto:bgee at campercaver.net> >:
> >
> > I am shooting blindly in the dark here. What is the hierarchy of namespaces? Do surveys contain maps, or do maps contain surveys? Can maps contain maps? Can surveys contain surveys? Can a map contain a survey which in turn contains a map?
>
> Any survey-endsurvey structure is a name space.
>
> Maps structure is independent from structure of surveys but it allways belong to a name space of enclosing survey-endsurvey.
>
> So in your file AllieSpringCave.th <http://alliespringcave.th/> there is name space AllieSpringCave, but map AllieMainPlan is outside it. After you input the file AllieSpringCave.th <http://alliespringcave.th/> into your file BigCavernRanch.th <http://bigcavernranch.th/> inside name space all, it become part of "name space all".
>
> >
> > If surveys can contain maps, and maps can contain surveys, then how do you know what the top of the namespace is?
>
> Name space is each structure survey-endsurvey.
>
> > Using Allie Spring Cave as an example, it looks to me like the top of the name space is a map called AllieMainPlan.
>
> This map AllieMainPlan is outside the name space "survey AllieSpringCave-endsurvey". It is reason you should call all subsidiary maps from name space AllieSpringCave by @AllieSpringCave.
>
> > This map contains seven subsidiary maps and is defined outside of a survey/endsurvey block. But all of those subsidiary maps are defined inside a survey/endsurvey block. So does AllieMainPlan contain the survey at the second level, and the survey contains the subsidiary maps at the third level? If true, then why does it not show up that way in xtherion?
>
> Any command input is only copy/paste piece of plaint text. So if you input ../AllieSpringCaveSurvey/AllieSpringCave.th <http://alliespringcave.th/> into name space "survey all-endsurvey“, map AllieMainPlan become object in this name space and name space "survey AllieSpringCave-endsurvey“ become enclosed name space.
>
> > Martin - In a different email you mentioned that MainPassages is not part of AllieSpringCave. I don't understand that. AllieSpringCave is the name of a survey/endsurvey block, and inside that block are seven map/endmap blocks. One of those map blocks is MainPassages. It seems to me that the survey/endsurvey block contains the map/endmap blocks and therefore the names they define should be part of the survey namespace.
> >
> I was probably totaly wrong. Map AllieMainPlan is not part of name space "survey AllieSpringCave-endsurvey"
>
> What will Therion produce from your original files if you in thconfig select only „select AllieMainPlan at all“?
>
> Or may you try to add that select command by doubleclick on map AllieMainPlan in structure of maps in right side panel?
>
> May you publish screenshot of that rightside panel with structure of maps, please?
>
> Martin
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20191115/abea5ac0/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 103827 bytes
Desc: not available
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20191115/abea5ac0/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.png
Type: image/png
Size: 73166 bytes
Desc: not available
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20191115/abea5ac0/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BigCavernRanch.th
Type: application/octet-stream
Size: 510 bytes
Desc: not available
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20191115/abea5ac0/attachment.obj>
More information about the Therion
mailing list