Linear layer
model for dimensioning:
Linear elements of a
dimension (dimension line, extension lines ...) must be stored in a
linear layer with the following fields:
Optional fields:
- a character field to store
the color of the dimension
lines
- a character field to store
the linetype of the dimension lines
- a character field (2
characters) field to store the linear object type according to the
following scheme:
"D1" = Dimension line 1
"D2" = Dimension line 2
“X1” = Extension of dimension line 1
“X2” = Extension of dimension line 2
"E1" = Extension line 1"
"E2" = Extension line 2
"L" = leader line when the text is outside the dimension
“CL” = Center line for center marker of an arc or circle
(required if you want to use the editing features of an existing
dimension)
- 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)
An SQL example to create a
PostGIS table and indexes for dimension lines:
CREATE TABLE
qad_dimension.dim_line
(
line_type character
varying(50),
color character
varying(10),
type character varying(2)
NOT NULL,
id_parent bigint NOT
NULL,
geom
geometry(LineString,3003),
id serial NOT
NULL,
CONSTRAINT dim_line_pkey
PRIMARY KEY (id)
)
WITH (
OIDS=FALSE
);
CREATE INDEX
dim_line_id_parent
ON
qad_dimension.dim_line
USING btree
(id_parent);
CREATE INDEX
sidx_dim_line_geom
ON
qad_dimension.dim_line
USING gist
(geom);
The linear layer must be
defined with the style set as follows:
Optional settings:
- The color can be read from
a character field that stores the dimension line color
- The linetype can be read
from a character field that stores the linetype of dimension
lines
Dimension commands refer to
the current dimension style. To set the current dimension style run
DIMSTYLE command.