Text layer
model for dimensioning:
The main element of a
dimension is the text. Its textual layer must have the
following fields:
- a character field to store
the dimension text
- a character field to store
the font Of the dimension text
- a real number field to store the dimension
text height (in map unit)
- a real number field to
store text rotation (degree counterclockwise where zero =
horizontal to the right)
Optional fields:
- an integer number field to
store the unique ID of the dimension (necessary if you want to
group the objects of a dimension, and implement the erasing and
editing features of an existing dimension)
- a character field to store
the color of the dimension text
- a character field to store
the dimension style name (required if you want to use the editing
features of an existing dimension)
- a character field (2
characters) to store the dimension style (linear, aligned ...)
according to the following scheme:
"AL" = linear aligned dimension
"AN" = angular dimension
"BL" = baseline and continued dimension
"DI" = diameters of arcs and circles dimension
"LD" = creates a line that connects annotation to a feature
"LI" = dimensions using only the horizontal or vertical components
of the locations
"RA" = radial dimension
"AR" = measure the length along a circle or arc
(required if you want to use the editing features of an existing
dimension)
The textual layer must be
defined with labels as follows:
- The font must be read from
a field that stores the font character of the dimension text (tab
<Labels>-<Text>)
- The size must be read by a
real number field that stores the dimension text height (in map
units, tab <Labels>-<Text>)
- The rotation must be read
by a real number field that stores the dimension text rotation
(degree counterclockwise where zero = horizontal to the right),
option <Preserve data rotation values> activated, (tab
<Labels>-<Placement>)
- Placement <Around
point> with distance = 0 (tab
<Labels>-<Placement>)
- <Show all label for
this layer> option enabled (tab
<Labels>-<Rendering>)
- <Show upside-down
labels> option with value <always> (tab
<Labels>-<Rendering>)
- <Discourage labels from
covering features> option disabled (tab
<Labels>-<Rendering>)
Optional settings:
- The color can be read from
a character field that stores the dimension text color (tab
<Labels>-<Text>)