Linear elements of a dimension (dimension line, extension lines ...) must be stored in a linear layer with the following fields:
Optional fields:
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:
Dimension commands (DIMLINEAR, DIMALIGNED) refer to the current dimension style. To set the current dimension style run DIMSTYLE command.