[Therion] How to combine two maps

Bill Gee bgee at campercaver.net
Sun Feb 18 15:27:31 CET 2018


Hello everyone -

Well, that turned out to be easy!  I was fearing a huge conglomerated mess of 
entries in a thconfig and *.th file.  It turned out to be some relatively 
simple mods to thconfig.

As noted by several people - I put each cave survey in its own directory.  
Each directory contains a master .th file and a thconfig file.  For bigger 
projects I create a subdirectory for each survey trip which contains the 
centerline data and all scanned sketches from that trip.  It also contains the 
.th2 files.

One of the centerline data files (usually the first one) contains the GPS 
coordinates of the cave and also specifies the entrance station.

To create the combined map, I created a new survey directory.  It contains 
only a thconfig file.  The thconfig file names the three cave surveys like 
this:

# Name the three input caves
source ../AllieSpringCaveSurvey/AllieSpringCave.th
source ../MillCreekCaveSurvey/MillCreekCave.th
source ../ShiftyRockPit/ShiftyRockPit.th

The layout sections are exactly the same as in the thconfig files for each 
cave.  The TeX code that I have for changing the size of the legend is also 
identical, as is the MetaPost code for drawing my custom symbols.

At the bottom of the thconfig file I listed the exports.  The only thing I 
changed was the export file names.  Everything else is the same as in the 
thconfig files for each cave.

# The main plan map
export map -proj plan -layout mainmapnocolor -o CaveRanch.pdf

# The main map for printing
export map -proj plan -layout mainmapprint -o CaveRanchPrint.pdf
(continue for kml, lox and 3d files)

When I ran therion with this thconfig file, it Just Worked!  The first time!  
I was astounded.  The output files contain all three cave maps and they are 
properly located relative to each other.  WooHoo!  That was easy!

The next adventure will happen when the link between two of the caves is 
finally surveyed.  The use of an "equate" statement has been mentioned.  That 
needs to go in a .th file - right?  Which means, in the end, there will be 
four .th files mentioned in the thconfig.  Is that right?

Thanks for all the help and suggestions.

-- 
Bill Gee



On Friday, February 16, 2018 10:57:27 PM CST Bruce Mutton via Therion wrote:
> Hi Bill
> 
> I think you have the answers you need already, but I’ll add my two bits
> anyway.
> 
> I do almost the same as Ladislav.
> 
> Sounds like your caves are or should be part of one Therion project (simply
> because they are in the same general locality).  No need to change anything
> other than to make sure  all of the existing cave folders are collected
> together in a single project folder (as in the image below).
> 
> In the example below, my project folder is th_TakakaValley/trunk  (the
> /trunk is just an artefact of the version control system we use) and there
> are 7 caves.
> 
> The other folders are for outputs and standardised layout files.
> 
> I use a flat structure these days, ie each individual cave has its own
> folder, with INDEX*.th and thconfig files, which is entirely self-contained
> (except for the output and standard files folders) so an individual cave
> can be easily moved to any other folder location and still compile with
> little fuss.
> 
> 
> 
> Below, the INDEXTakakaValley.thc ties together all of the caves in the
> project, and puts them on the same map.  If two or more of the caves were
> joined, then I would just create another INDEX file in the top level
> project folder, eg INDEXBaigentsBreweryCaves.thc, and possibly matching
> thconfg and layout files.
> 
> 
> 
> 
> 
> If you download the latest development version of Therion,  you can use a
> lookup to specify particular colours for each of the caves, as described
> https://therion.speleo.sk/wiki/examples?s[]=lookup#colour_scales_-_lookups
> <https://therion.speleo.sk/wiki/examples?s%5b%5d=lookup#colour_scales_-_loo
> kups>   (half way down the page).
> 
> 
> 
> 
> 
> Regards
> 
> Bruce

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20180218/6d5769ee/attachment.htm>


More information about the Therion mailing list