[postgis-tickets] [PostGIS] #3126: ST_SubDivide garden crasher on Polyhedral Surface

PostGIS trac at osgeo.org
Mon May 25 16:42:41 PDT 2015


#3126: ST_SubDivide garden crasher on Polyhedral Surface
----------------------+---------------------------
  Reporter:  robe     |      Owner:  pramsey
      Type:  defect   |     Status:  new
  Priority:  blocker  |  Milestone:  PostGIS 2.2.0
 Component:  postgis  |    Version:  trunk
Resolution:           |   Keywords:
----------------------+---------------------------
Description changed by robe:

Old description:

> {{{
> 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);
> }}}

New description:

 {{{
 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

--

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