This morning I tried several things:

1) I modified the BigCavernRanch.th file to look like this:

map MapGroup -projection plan
  AllieMainPlan
endmap

and then recompiled.  No error was produced.  The resulting map contains all 
four caves.  Offsets are not offset.  As far as I can tell, that entire 
map/endmap block is totally ignored.

2) I modified thconfig for BigCavernRanch.  I added

select AllieMainPlan

as the fourth line in the file.  Therion complained that the object 
AllieMainPlan could not be found.  It proceeded to compile a map with all four 
caves.

I tried the same modification except using the name of a map defined in 
BigCavernRanch.th.  Same result - an error about a missing object and a final 
map that includes all four caves.

3) I modified BigCavernRanch.th with this line

survey TestSurvey -title "Big Cavern Ranch"

Therion compiled without error.  The resulting map has all four caves and no 
offsets.

4) I modified BigCavernRanch.th.  I moved the "map MapGroup/endmap" block so it 
is not within the survey/endsurvey block.  Therion issues an error "Object does 
not exist - AllieMainPlan" and immediately quits.

That seems odd to me.  The AllieSpringCave.th file has a map/endmap block that 
is outside the survey/endsurvey block, and it does NOT complain about any of 
those objects missing.

5) I modified BigCavernRanch.th so that it does not contain a map/endmap block. 
 Therion did not produce an error.  The compiled map includes all four caves 
and no offsets.

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?

If surveys can contain maps, and maps can contain surveys, then how do you know 
what the top of the namespace is?

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 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?

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.

-- 
Bill Gee



On Thursday, November 14, 2019 1:45:38 AM CST Martin Sluka via Therion wrote:
> > If I open the BigCavernRanch files in xtherion and then look at the boxes 
> > for survey structure and map structure, they are completely empty.
> 
> You may see that structure only after successful compilation.
> 
> 
> > 14. 11. 2019 v 3:46, Bill Gee <[email protected]>:
> > 
> > I tried creating a map statement in the BigCavernRanch .th file which 
> > mentioned the four main maps, then doing a "select" on that map in the 
> > thconfig.  That produced errors saying that objects did not exist.
> >  
> 
> What will happen if you try select only AllieMainPlan in your thconfig? Map 
> „AllieMainPlan" is a part of the "all“ name-space so it should work.
> 
> Just a note: in such complicated projects I prefer to use extensions for 
> names of surveys, scraps, maps, for example 
> 
> map AllieMainPlan.map
> scrap Entrance1.scrap
> survey all.survey
> 
> Names of objects are a bit longer, but later it is clear, what the name of 
> object means.
> 
> Martin
> 
> 
> 

_______________________________________________
Therion mailing list
[email protected]
https://mailman.speleo.sk/listinfo/therion

Reply via email to