[postgis-tickets] [PostGIS] #2869: St_Centroid doesn't work on curved geom

PostGIS trac at osgeo.org
Fri Aug 1 07:32:33 PDT 2014


#2869: St_Centroid doesn't work on curved geom
-------------------------+--------------------------------------------------
 Reporter:  remic        |       Owner:  pramsey
     Type:  enhancement  |      Status:  new    
 Priority:  medium       |   Milestone:         
Component:  postgis      |     Version:  2.1.x  
 Keywords:               |  
-------------------------+--------------------------------------------------
 When trying
 SELECT ST_AsText(ST_centroid(geom))
 FROM st_geomfromtext('circularstring(0 0 , 1 1, 2 0)') as geom

 Error is:
 ERROR:  Exception in LWGEOM2GEOS: curved geometry not supported.


 Centroid of such a curve would only be
 centroid(ST_DumpPoints(circularstring))
 , so maybe easy to add?

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