Opened 7 years ago

Closed 7 years ago

#3126 closed defect (fixed)

ST_SubDivide garden crasher on Polyhedral Surface

Reported by: robe Owned by: pramsey
Priority: blocker Milestone: PostGIS 2.2.0
Component: postgis Version: master
Keywords: Cc:

Description (last modified by robe)

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

Change History (2)

comment:1 by robe, 7 years ago

Description: modified (diff)

comment:2 by pramsey, 7 years ago

Resolution: fixed
Status: newclosed

Fixed at r13566

Note: See TracTickets for help on using tickets.