[postgis-tickets] [PostGIS] #2951: ST_Centroid for geography

PostGIS trac at osgeo.org
Wed Oct 1 16:29:30 PDT 2014


#2951: ST_Centroid for geography
-------------------------+--------------------------------------------------
 Reporter:  mwtoews      |       Owner:  pramsey       
     Type:  enhancement  |      Status:  new           
 Priority:  medium       |   Milestone:  PostGIS Future
Component:  liblwgeom    |     Version:                
 Keywords:               |  
-------------------------+--------------------------------------------------
 The idea is to determine the centroid of a geography with this signature:
 {{{
 CREATE OR REPLACE FUNCTION ST_Centroid(geog geography, use_spheroid
 boolean DEFAULT true)
   RETURNS geography AS
 '$libdir/postgis-2.2', 'geography_centroid'
   LANGUAGE c IMMUTABLE STRICT
   COST 100;
 }}}
 Currently, GEOS computes the geometry centroid, so some of this would need
 to be recreated in liblwgeom using lengths and areas on either a sphere or
 spheroid. This enhancement would require a reliable geodesic area
 calculation using GeographicLib (#2918).

 Single or multipart Point, Line, and Polygon geography objects will be
 considered.

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