[postgis-tickets] [PostGIS] #3480: ST_ClusterDBSCAN get ptarray_contains_point called on unclosed ring

PostGIS trac at osgeo.org
Sat Feb 27 08:38:33 PST 2016


#3480: ST_ClusterDBSCAN get ptarray_contains_point called on unclosed ring
---------------------+---------------------------
 Reporter:  robe     |      Owner:  pramsey
     Type:  defect   |     Status:  new
 Priority:  high     |  Milestone:  PostGIS 2.3.0
Component:  postgis  |    Version:  trunk
 Keywords:           |
---------------------+---------------------------
 I don't think this is an expected result.


 {{{
 -- fake parcels produces 12 rows valid polygons
 DROP TABLE IF EXISTS parcels ;
 CREATE TABLE parcels AS
 SELECT row_number() OVER() AS parcel_id,
     ST_Subdivide(ST_Buffer('LINESTRING(50 100, 98 100, 100
 150)'::geometry,40, 'endcap=square'),8) As geom;

 -- gives error

 SELECT ST_ClusterDBSCAN(geom,0.2,5) over () AS cid, geom
 FROM parcels;

 }}}


 {{{
 ERROR:  ptarray_contains_point called on unclosed ring
 ********** Error **********
 }}}

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