[postgis-tickets] [PostGIS] #2496: St_OffsetCurve bug for Geometry with duplicated points

PostGIS trac at osgeo.org
Tue Oct 8 00:50:33 PDT 2013


#2496: St_OffsetCurve bug for Geometry with duplicated points
---------------------------------------------------+------------------------
 Reporter:  francob                                |       Owner:  strk         
     Type:  defect                                 |      Status:  new          
 Priority:  medium                                 |   Milestone:  PostGIS 2.0.5
Component:  postgis                                |     Version:  2.0.x        
 Keywords:  st_offsetcurve offset repeated points  |  
---------------------------------------------------+------------------------

Comment(by strk):

 What I get with the example geometry:
 {{{
 ERROR:  GEOSOffsetCurve: TopologyException: assigned depths do not match
 at 1519684.2983950516 5032565.1120155975
 }}}

 ST_IsSimple returns false.

 Duplicated points don't seem to harm in themselves:
 {{{
 strk=# select st_astext(st_offsetcurve('LINESTRING(0 0, 0 0, 5 0, 5 0, 10
 0)'::geometry, 10));
        st_astext
 ------------------------
  LINESTRING(0 10,10 10)
 (1 row)
 }}}

 These tests have been performed with:

  POSTGIS="2.1.1dev r11987" GEOS="3.4.0-CAPI-1.8.0 r3949"

 And

  POSTGIS="2.1.1dev r11987" GEOS="3.4.3dev-CAPI-1.8.3 r3958"

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