Prev Up Top Next Contents

2.A thconfig syntax

The configuration files [ThBook 38] are text files with lines of comments (begiing with '#'), and lines of commands. Commands can be one-line or multiline. In this case there is a termination command, whose name is make by prefixing "end" to the name of the command. One-line commands can be continued on more lines by ending the line with the continuation sequence (backslash followed by newline).

encoding. It specifies the encoding used for the data. Examples: UTF-8, ASCII, ISO-8859-1, ...

cs.
This option specifies the output coordinate system. The following coordinate systems are supported: UTM1 .. UTM60 (denoting the UTM zone, for the WGS84 coordinate system), and JTSK (czechoslovak system with axes east and north). Furthermore ESRI (a company that makes GIS and mapping software) and EPGS (European Petroleum Survey Group) codes are supported. To find the code number for your data check the list files in the therion sources: extern/proj4/nad/esri and extern/proj4/nad/epsg, respectively. Finally you can use lat-long and long-lat coordinate systems, with the data written as degrees:min:sec (you may omit the seconds, or both the seconds and the minutes). In this case the datum is WGS84.
The coordinate system can be specified for If not specified the local coordinate system is assumed.

source.
It is used to list a data file that must be processed by therion. This can be either a one-line command or a multiline command. In the first form is used to input a therion file,
    source file.th
The second form is used to write therion commands directly in the configuration file and is convenient when the commands are just a few, to avoid proliferation of small files.

input.
It is used to include a file, just like the C-preprocessor "#include" directive. It cannot be used inside a block layout-endlayout.

setup3d.
It is used to specify the three dimensions These are used by scrapis (the polygonal line) class to create the envelope of the cave for the 3D visualization.

select.
This command selects an object (either a survey or a map) to export in the outputs. The selection rules allows to organize maps and scraps with versatility [thbook 38].
  1. By default, if there is no "select" command with a survey all the surveys are selected for export.
  2. If only surveys are selected, and there is no "select" command for a map, all the maps of the selected surveys are exported.
  3. if surveys are selected and there is no map definition in the selected surveys, all the centerlines of the selected surveys are exported.
  4. if there are selected maps, they are exported.
The "select" command has options,

unselect.
Is the opposite of select. It is used when you want to include an object in an export, and not to include it in the following exports. You put a "unselect" of that object between the export commands.

layout.
It specifies a set of 2D layout options. It takes, as argument the id (name) of the layout, that must be used in the followigto refer to it. It has several options. Among them:
The following options apply only to atlases:
Legend options:
Finally there are PDF specific options. Their name is rather self-explaining. They assign values to properties of the PDF document, and are followed by the string value (enclosed in double quote marks if it contains spaces).

export.
It defines a output that must be created. It has argument the output type, "map", "atlas", "model", "database", "continuation-list", "survey-list", "cave-list", or "bbox". Among the options there are,

sketch-warp.
It is used to select the sketch warping algorithm. It takes only one value, the algorithm name. This can be one of "line" (the default algorithm), "point", "linear" and "plaquette".

system.
This command allows to execute an external program during therion compilation. The syntax is "command &" on Linux, and "start command" on Windows.

2.A.1 The examples

The select command

therion users - Tue Sep 20 16:49:29 2011
Prev Up Top Next Contents

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License.