[PostGIS] #5928: ST_Collect creates invalid result with only valid input

PostGIS trac at osgeo.org
Tue Jun 24 01:28:02 PDT 2025


#5928: ST_Collect creates invalid result with only valid input
--------------------------------+---------------------------
  Reporter:  Lars Aksel Opsahl  |      Owner:  pramsey
      Type:  defect             |     Status:  new
  Priority:  medium             |  Milestone:  PostGIS 3.6.0
 Component:  postgis            |    Version:  3.5.x
Resolution:                     |   Keywords:
--------------------------------+---------------------------
Changes (by strk):

 * cc: mbdavis (added)

Comment:

 Simple example of the fact:

 > select ST_IsValid('GEOMETRYCOLLECTION(POLYGON((0 0,10 0,5 5,0
 0)),POLYGON((5 4,10 0,15 5,5 4)))');

 Validity of collections seems to be generally overpicky, considering those
 collections as if they were multipolygons. I think in the past you got an
 exception instead, when passing COLLECTION to Validation operations.
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5928#comment:1>
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