[postgis-devel] [PostGIS] #2001: ST_CurveToLine has no effect if the geometry doesn't actually contain an arc

PostGIS trac at osgeo.org
Sun Sep 16 09:13:52 PDT 2012


#2001: ST_CurveToLine has no effect if the geometry doesn't actually contain an
arc
----------------------+-----------------------------------------------------
 Reporter:  xificurk  |       Owner:  pramsey      
     Type:  defect    |      Status:  new          
 Priority:  medium    |   Milestone:  PostGIS 2.0.2
Component:  postgis   |     Version:  2.0.x        
 Keywords:            |  
----------------------+-----------------------------------------------------
 ST_CurveToLine leaves geometry unchanged, if it doesn't actually contain
 an arc. I think it should always output linear geometry type.

 => SELECT ST_AsText(ST_CurveToLine(ST_GeomFromText('CURVEPOLYGON((0 0, 0
 1, 1 1, 0 0))'), 2));
             st_astext
 ---------------------------------
  CURVEPOLYGON((0 0,0 1,1 1,0 0))

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2001>
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-devel mailing list