[postgis-tickets] [PostGIS] #2377: ST_CollectionHomogenize forms invalid polygons

PostGIS trac at osgeo.org
Mon Jul 8 06:18:56 PDT 2013


#2377: ST_CollectionHomogenize forms invalid polygons
---------------------+------------------------------------------------------
 Reporter:  robe     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.1.1
Component:  postgis  |     Version:  2.0.x        
 Keywords:           |  
---------------------+------------------------------------------------------
 {{{
 SELECT
     ST_IsValid(ST_CollectionHomogenize(ST_Split(g1.geom1, g1.geom2)))
     As geom
 FROM (SELECT
   ST_GeomFromText('POLYGON((2 4.5,3 2.6,3 1.8,2 0,-1.5 2.2,
    0.056 3.222,-1.5 4.2,2 6.5,2 4.5))') As geom1,
 ST_GeomFromText('LINESTRING(-0.62 5.84,-0.8 0.59)') As geom2) AS g1;
 }}}


 For example the above geometry collection consisting of only polygons --
 ST_CollectionHomogenize converts to an invalid multipolygon.  It's of
 course invalid because the polygons have shred edges.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2377>
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