[postgis-tickets] [PostGIS] #2424: ST_CurveToLine does not support COMPOUNDCURVE in MULTICURVE

PostGIS trac at osgeo.org
Mon Aug 12 14:04:28 PDT 2013


#2424: ST_CurveToLine does not support COMPOUNDCURVE in MULTICURVE
---------------------+------------------------------------------------------
 Reporter:  strk     |       Owner:  strk         
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.0.4
Component:  postgis  |     Version:  2.0.x        
 Keywords:  curves   |  
---------------------+------------------------------------------------------
 This works:
 {{{
 select ST_CurveToLine('COMPOUNDCURVE((0 0, 10 0),CIRCULARSTRING(10 0, 20
 1, 30 10))');
 }}}

 This complains:
 {{{
 select ST_CurveToLine(st_multi('COMPOUNDCURVE((0 0, 10
 0),CIRCULARSTRING(10 0, 20 1, 30 10))'));
 ERROR:  Unsupported geometry of type CompoundCurve found in MultiCurve.
 }}}

 Weird to see it, given the non-multi one works fine...

 2.0.3 is affected. In 1.5 a COMPOUNDCURVE within a MULTICURVE is actually
 considered invalid at WKT parsing time, but this was fixed in 2.0 (I
 believe it's completely valid, COMPOUNDCURVE being a subclass of a CURVE
 exactly like LINESTRING and CIRCULARSTRING)

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