Bug report #14667

MultiPolygonZM: Geometry type (Polygon) does not match column type (MultiPolygon)

Added by cremat0rio - over 8 years ago. Updated over 5 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Data Provider/PostGIS
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:end of life
Crashes QGIS or corrupts data:No Copied to github as #:22631

Description

In the presence of a MultiPolygonZM Postgis table, QGIS sends a Polygon to the database.
Procedure:
Create a simple table with MultiPolygonZM geometry:
CREATE TABLE test
(
id integer NOT NULL,
geom geometry(MultiPolygonZM,3763),
CONSTRAINT id_pkey PRIMARY KEY (id)
)
Add that table to QGIS and draw a Polygon. Save it and get:
Provider errors: PostGIS error while adding features: ERROR: Geometry type (Polygon) does not match column type (MultiPolygon)

History

#1 Updated by Giovanni Manghi over 8 years ago

  • Affected QGIS version changed from 2.14.1 to master
  • Category set to Data Provider/PostGIS

#2 Updated by Giovanni Manghi over 7 years ago

  • Easy fix? set to No
  • Regression? set to No

#3 Updated by Giovanni Manghi over 5 years ago

  • Resolution set to end of life
  • Status changed from Open to Closed

Also available in: Atom PDF