Skip to main content
  • 7,238 Posts
  • 26,620 Replies
7238 Posts
PostGIS writer: converts 3D geometry to 2D on existing table

When attempting to use an existing table in a PostGIS database, the PostGIS writer is coercing my 3D geometry objects into 2D. I have not seen this issue with a PostGIS writer that uses automatic table creation and the data type for the geom column is defined as GEOMETRY in both cases.I have seen 2 different warnings regarding this:POSTGIS Writer: PostGIS existing table has a 2D constraint, changing input data into 2D datacoerced to 2D in table 'cad.cad_geom'Why are the objects being coerced?Are there writer settings to prevent this from happening?Here is the table definition:CREATE TABLE IF NOT EXISTS cad.cad_geom( id                      BIGSERIAL    PRIMARY KEY, created                 TIMESTAMPTZ  DEFAULT CURRENT_TIMESTAMP, updated                 TIMESTAMPTZ  DEFAULT CURRENT_TIMESTAMP, xchg_ts                 TIMESTAMPTZ  DEFAULT NULL, _refid                  BIGINT

Badge Winners

Show all badges

Community Stats

32,448
Posts
123,300
Replies
40,601
Members