]> granicus.if.org Git - postgis/commitdiff
Change ST_Area(geog) to defaul to spheroid calculation.
authorPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 4 Nov 2009 03:27:33 +0000 (03:27 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 4 Nov 2009 03:27:33 +0000 (03:27 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4733 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/geography.sql.in.c
postgis/geography_measurement.c

index 15943dbda090717974b52f0de2853bdc1d1dcf93..23353215862e14cd6839f39b44b658227cc884a7 100644 (file)
@@ -479,11 +479,11 @@ CREATE OR REPLACE FUNCTION ST_Area(geography, boolean)
        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
index 70e8c5190d22dec9b9a5466cd761987414ce831e..d8531be5c07a50992c6bc7f60e877957d8eeb281 100644 (file)
@@ -179,7 +179,7 @@ Datum geography_area(PG_FUNCTION_ARGS)
        /* 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 */