[postgis-tickets] [PostGIS] #2420: ST_LineToCurve turns squares into circles

PostGIS trac at osgeo.org
Sun Aug 11 01:41:35 PDT 2013


#2420: ST_LineToCurve turns squares into circles
---------------------+------------------------------------------------------
 Reporter:  strk     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.0.4
Component:  postgis  |     Version:  1.5.X        
 Keywords:           |  
---------------------+------------------------------------------------------
 When passed a square linestring (5 vertices), ST_LineToCurve returns a
 circle. The result is conceptually valid, but it is unlikely that the user
 wants that. Maybe the function should accept a parameter with the minimum
 number of segments per quadrant for a curve approximation to be considered
 such. What do other people think about that ?

 In the case of the square we'd have a single segment per quadrant.

 We could maybe even refuse to consider such a thing a curve by default,
 considering that the default segments per quadrant in ST_CurveToLine is 32

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