Opened 15 years ago

Closed 14 years ago

#2043 closed bug (fixed)

Merging multi-polygon-features on PostGIS fails

Reported by: fritz123 Owned by: nobody
Priority: major: does not work as expected Milestone:
Component: Digitising Version: 1.3.0
Keywords: postgis, merge, multipolgon, st_union, st_multi Cc:
Must Fix for Release: No Platform: Debian
Platform Version: Awaiting user input: no

Description

QGIS 1.3.0 can't merge features as described below:

"The union operation would result in a geometry type that is not compatible with the current layer and therefore is canceled"

Imagine a PostGIS-geometry-table, using the type multipolygon. Some of the features therein have islands, others don't. If you try to merge two features without islands, the resulting feature is type polygon. This also happens, when you try it manually using st_union. Since there is a constraint on the geometry column, the resulting feature can't be inserted. Using st_multi helps on database level.

PostGIS-Version is 1.3.6.

Change History (2)

comment:1 by fritz123, 15 years ago

Version: HEAD1.3.0

comment:2 by lutra, 14 years ago

Resolution: fixed
Status: newclosed

I believe that this ha been already fiexed. Nevertheless after merging qgis returns the error reported in #2187.

Note: See TracTickets for help on using tickets.