I am able to create a geomtry column for 3d multiline using this:
CREATE TABLE trajectories
(
gid serial NOT NULL,
vehid character varying(10),
state integer,
geom geometry(MultiLineStringZ),
CONSTRAINT trajectories_pkey PRIMARY KEY (gid)
)
WITH (
OIDS=FALSE
);
ALTER TABLE trajectories
OWNER TO postgres;
But when I tried to alter an existing table by modifying an existing geom column or adding a new one, I am getting he following error:
ERROR: Column has Z dimension but geometry does not
****** Error ******
ERROR: Column has Z dimension but geometry does not SQL state: 22023 ERROR: Column has Z dimension but geometry does not
ALTER TABLE cl ALTER COLUMN geom TYPE geometry(MultiLineStringZ)
- How do I modify and existing geometry column to geometry(MultiLineStringZ)?
- How do I add new geometry(MultiLineStringZ) column to an existing table?