[PostGIS] #6136: ST_MakeValid merges polygons in a MultiPolygon.

PostGIS trac at osgeo.org
Wed Sep 30 23:30:08 PDT 2026


#6136: ST_MakeValid merges polygons in a MultiPolygon.
--------------------------------+---------------------------
  Reporter:  Lars Aksel Opsahl  |      Owner:  pramsey
      Type:  defect             |     Status:  new
  Priority:  medium             |  Milestone:  PostGIS 3.6.5
 Component:  postgis            |    Version:  3.6.x
Resolution:                     |   Keywords:
--------------------------------+---------------------------
Comment (by Lars Aksel Opsahl):

 We often use ST_MakeValid(geom) before calling functions such as
 ST_Intersection().

 However, for invalid MULTIPOLYGON and ST_MakeValid() we may end up with
 ST_Union() effect as we show here.

 If the goal is simply to ensure that each polygon is individually valid,
 then ST_MakeValid(ST_ForceCollection(geom)) appears to be the correct
 approach when MULTIPOLYGONs are involved, as it validates each polygon
 independently rather than the MULTIPOLYGON as a whole as it seems.
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/6136#comment:2>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list