I have three caves entered into a folder tree as a hierarchal system, that can be plotted in a couple of variations for each individually or as a whole system. I find that I have two thconfig files for each combination that produce all of the types of maps I would like at this stage. This makes a total of eight thconfig files, each of which is getting quite large, but which are largely identical except in a few details. It's becoming difficult to manage these, and keep the bits that I'd like to be identical updated. I suspect that, like most of the rest of Therion, I can make use of a standard thconfig file that contains most of my favourite settings, allowing my eight specific thconfigs to be very concise. I have played around a bit, trying to save layouts in different files and using lines like; copy StandardLayout but 'StandardLayout' only seems to be visible from within the same file. Have had no luck with 'input', 'source' or 'select'. Probably I'm just missing out a bit of syntax or namespace visibility. Any suggestions
Quoting Bruce Mutton <bruce.mutton@paradise.net.nz>:
I have played around a bit, trying to save layouts in different files and using lines like;
copy StandardLayout
but 'StandardLayout' only seems to be visible from within the same file.
Have had no luck with 'input', 'source' or 'select'.
Probably I'm just missing out a bit of syntax or namespace visibility.
Any suggestions
Your StandardLayout is not visible, probably because therion did not read configuration file with this layout. To load layouts in some standard file, you need to input this file first, then use copy. Example: Let file colors.thcfg contains: layout standard-colors color map-fg altitude endlayout To include this layout in your main thconfig file you write: source my-data.th # to include data input colors.thcfg # to include file layout output-layout copy standard-colors ... other specific settings ... endlayout export map -layout outpu-layout HTH, S.
Thanks Stacho, works like a dream! -----Original Message----- From: therion-bounces@speleo.sk [mailto:therion-bounces@speleo.sk] On Behalf Of Stacho Mudrak Sent: Friday, 30 November 2007 10:58 p.m. To: therion@speleo.sk Subject: Re: [Therion] Modular Reuse of thconfig Layouts Quoting Bruce Mutton <bruce.mutton@paradise.net.nz>:
I have played around a bit, trying to save layouts in different files and using lines like;
copy StandardLayout
but 'StandardLayout' only seems to be visible from within the same file.
Have had no luck with 'input', 'source' or 'select'.
Probably I'm just missing out a bit of syntax or namespace visibility.
Any suggestions
Your StandardLayout is not visible, probably because therion did not read configuration file with this layout. To load layouts in some standard file, you need to input this file first, then use copy. Example: Let file colors.thcfg contains: layout standard-colors color map-fg altitude endlayout To include this layout in your main thconfig file you write: source my-data.th # to include data input colors.thcfg # to include file layout output-layout copy standard-colors ... other specific settings ... endlayout export map -layout outpu-layout HTH, S. _______________________________________________ Therion mailing list Therion@speleo.sk http://www.speleo.sk/mailman/listinfo/therion
participants (2)
-
Bruce Mutton -
Stacho Mudrak