Format of Border definition file
The plotting borders are defined in the SSI_PLOTTING:borders.ssi file. A sample of the file is shown below.
# "ssi.plotting.borders" :Version 1 (border "BORD" (purpose "Converted from user.chr") (viewport (left 0.30) (right 0.30) (bottom 0.30) (top 0.30) ) (rplot (line_type 1) (pen 1) (priority 124) (rel_position ll 0.00 0.00) (rel_position ul 0.00 0.00) ) (rplot (line_type 1) (pen 1) (priority 124) (rel_position ul 0.00 0.00) (rel_position ur 0.00 0.00) ) (rplot (line_type 1) (pen 1) (priority 124) (rel_position ur 0.00 0.00) (rel_position lr 0.00 0.00) ) (rplot (line_type 1) (pen 1) (priority 124) (rel_position lr 0.00 0.00) (rel_position ll 0.00 0.00) ) ) |
The first line of the file is a unique file header to distinguish this file to prevent errors when working with the file. This line also identifies the version for the format of the file so that future compatibility issues can be resolved easily.
The file uses a number of keywords each with appropriate arguments to define the structure of a border definition. The most notable characteristic of border definitions is that they are defined in terms that are relative to the plotting sheet on which the map is to be drawn.
Therefore, a simple border definition that defines the border that is one centimetre inside each sheet boundary can be easily used for all different sheet sizes.
All keywords and their arguments are contained in enclosing perentheses as shown in the example above. A border definition begins with the (border keyword and contains the following keywords:
| keyword | description |
|---|---|
| border | Describes the name of the border enclosed in " characters |
| purpose | Permits a verbose description, in " characters, for the border to be defined |
| viewport |
Describes the dimensions in from each edge of the plotting sheet to the extent of the border region. Since the viewport is relative to the sheet extents a border definition can generally be used for any size sheet. There must only be one viewport definition in a border. If multiple viewport definitions are present the last one found will supercede all others.
|
| rplot |
Describes a relative plot command to define a position relative to a corner of the previously defined viewport. The relative plot commands ensure that the lines are drawn relative to the border extents and so the lines will allways be placed in suitable positions relative to the sheet boundary. There may be any number of rplot commands in a border definition.
The relative point has three items to describe the location of the point. These items, in order, are:
The offset values use the cartesian coordinate system convention of right and up being positive and left and down being negative regardless of which corner the point is related to. |