Format of Drawing Area definition file
The plotting drawing areas are defined in the SSI_PLOTTING:drwareas.ssi file. A sample of the file is shown below.
# "ssi.plotting.drawing_areas" :Version 1
(border "DRAW"
(purpose "Converted from user.chr")
(viewport
(left 0.40)
(right 0.40)
(bottom 0.40)
(top 0.40)
)
(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 drawing area definition. The most notable characteristic of drawing area 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 drawing area definition that defines the drawing area as 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 drawing area definition begins with the (draw_area keyword and contains the following keywords:
| keyword | description |
|---|---|
| draw_area | Describes the name of the drawing area enclosed in " characters |
| purpose | Permits a verbose description, enclosed in " characters, for the drawing area to be defined |
| viewport |
Describes the dimensions in from each edge of the plotting sheet to the extent of the drawing area region. Since the viewport is relative to the sheet extents a drawing area definition can generally be used for any size sheet unless it is specifically suited to a special sub-area of a particular sheet size. There must only be one viewport definition in a drawing area. If multiple viewport definitions are present the last one found will supersede 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 drawing area 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 drawing area 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 |