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

PostGIS trac at osgeo.org
Mon Oct 14 02:45:57 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 francob):

 Hi.
 I update my system to
 "POSTGIS="2.1.0 r11822" GEOS="3.4.2-CAPI-1.8.2 r3921" PROJ="Rel. 4.7.1, 23
 September 2009"

 Now
 select st_astext(st_offsetcurve('LINESTRING(0 0, 0 0, 5 0, 5 0, 10
 0)'::geometry,10))
 doesn't crash.

 Now st_offsetcurve works with all geometry where st_isisimple='t'


 You think that can be considered a bug if st_offsetcurve doesn't work with
 geometry like this
 (st_issimple return false)

 geom:
 "0102000020BB0B000010000000FBB019D1AD1537414A733C4E5333534167CE8F06B815374151F4926C4D335341C4899405B61537413DB009254A335341513EE234AD1537413689A27947335341E38CCA31AB1537415D00E28E44335341951F7F0BB315374104E4CA2441335341A581F041BF153741D46F9F8A3F33534100C27968CD153741C6CAAFE83F335341493DB10CDA1537418919897142335341FCA312FCE01537415D1A1F8045335341C62D3822DD153741554B118E483353411B98FE61D1153741FC35CEE14A33534106DCFDA5C5153741573BD3584B33534167CE8F06B815374151F4926C4D335341FBB019D1AD1537414A733C4E533353414AEB33644E153741595A854786335341"

 SELECT st_offsetcurve (geom,10)
 give this error
 GEOSOffsetCurve: TopologyException: assigned depths do not match at
 1512895.9378084207 5033276.5839699283

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