AS 'MODULE_PATHNAME','geography_area'
LANGUAGE 'C' IMMUTABLE STRICT;
--- Currently defaulting to sphere calculations
+-- Currently defaulting to spheroid calculations
-- Availability: 1.5.0
CREATE OR REPLACE FUNCTION ST_Area(geography)
RETURNS float8
- AS 'SELECT ST_Area($1, false)'
+ AS 'SELECT ST_Area($1, true)'
LANGUAGE 'SQL' IMMUTABLE STRICT;
-- Availability: 1.5.0
/* Test for cases that are currently not handled by spheroid code */
if ( use_spheroid )
{
- /* We don't handle the poles right now */
+ /* We can't circle the poles right now */
if( FP_GTEQ(gbox.zmax,1.0) || FP_LTEQ(gbox.zmin,-1.0) )
use_spheroid = LW_FALSE;
/* We can't cross the equator right now */