Opened 9 years ago
Last modified 9 years ago
#3126 closed defect
ST_SubDivide garden crasher on Polyhedral Surface — at Version 1
Reported by: | robe | Owned by: | pramsey |
---|---|---|---|
Priority: | blocker | Milestone: | PostGIS 2.2.0 |
Component: | postgis | Version: | master |
Keywords: | Cc: |
Description (last modified by )
SELECT ST_SubDivide('POLYHEDRALSURFACE Z (((-72.2 41.755 0,-72.2 41.755 1,-72.2 42.755 1,-72.2 42.755 0,-72.2 41.755 0)),((-72.2 41.755 0,-72.2 42.755 0,-71.2 42.755 0,-71.2 41.755 0,-72.2 41.755 0)))'::geometry,3);
Is this even supposed to work with polyhedrasurfaces. If I give a number like 5, doesn't crash, but gives this error
SELECT ST_SubDivide('POLYHEDRALSURFACE Z (((-72.2 41.755 0,-72.2 41.755 1,-72.2 42.755 1,-72.2 42.755 0,-72.2 41.755 0)),((-72.2 41.755 0,-72.2 42.755 0,-71.2 42.755 0,-71.2 41.755 0,-72.2 41.755 0)))'::geometry,5); -- ERROR: Error performing rectangular clipping: IllegalArgumentException: Invalid number of points in LinearRing found 3 - must be 0 or >= 4
So it's trying, whether it should or not is another question
Note:
See TracTickets
for help on using tickets.