Opened 12 years ago
Last modified 12 years ago
#2377 closed defect
ST_CollectionHomogenize forms invalid polygons — at Version 1
Reported by: | robe | Owned by: | pramsey |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 2.1.1 |
Component: | postgis | Version: | 2.0.x |
Keywords: | Cc: |
Description (last modified by )
SELECT ST_IsValid(ST_CollectionHomogenize(ST_Split(g1.geom1, g1.geom2))) 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.
Note:
See TracTickets
for help on using tickets.