[postgis-tickets] [PostGIS] #2423: [REGRESSION] ST_LineToCurve gets semicircle wrong

PostGIS trac at osgeo.org
Mon Aug 12 01:51:53 PDT 2013


#2423: [REGRESSION] ST_LineToCurve gets semicircle wrong
---------------------+------------------------------------------------------
 Reporter:  strk     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.0.4
Component:  postgis  |     Version:  2.0.x        
 Keywords:  curves   |  
---------------------+------------------------------------------------------

Comment(by strk):

 Or, by convention, we could assume that the control point of a full circle
 must always be on the other side of the diameter starting from the
 first/last point of the curve. In this case the control point should then
 be 10,0 rather than 0,10.

 The actual output:
 {{{
  CURVEPOLYGON(CIRCULARSTRING(-10 0,-3.73640463187386e-14 10,-10 0))
 }}}

 The input:
 {{{
 st_intersection(st_buffer(st_point(0,0),10),'POLYGON((-10 0,10 0,10 10,-10
 10,-10 0))')
 }}}

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