<funcprototype>
<funcdef>float <function>ST_Area</function></funcdef>
<paramdef><type>geography </type><parameter>g1</parameter></paramdef>
- </funcprototype>
-
- <funcprototype>
- <funcdef>float <function>ST_Area</function></funcdef>
- <paramdef><type>geography </type><parameter>g1</parameter></paramdef>
- <paramdef><type>boolean </type><parameter>use_spheroid</parameter></paramdef>
+ <paramdef choice='opt'><type>boolean </type><parameter>use_spheroid=true</parameter></paramdef>
</funcprototype>
</funcsynopsis>
</refsynopsisdiv>
LANGUAGE 'SQL' IMMUTABLE;
-- Availability: 1.5.0
-CREATE OR REPLACE FUNCTION ST_Area(geography, boolean)
+CREATE OR REPLACE FUNCTION ST_Area(geog geography, use_spheroid boolean DEFAULT true)
RETURNS float8
AS 'MODULE_PATHNAME','geography_area'
LANGUAGE 'C' IMMUTABLE STRICT
COST 100;
--- Currently defaulting to spheroid calculations
--- Availability: 1.5.0
-CREATE OR REPLACE FUNCTION ST_Area(geography)
- RETURNS float8
- AS 'SELECT ST_Area($1, true)'
- LANGUAGE 'SQL' IMMUTABLE STRICT;
-
-- Availability: 1.5.0 - this is just a hack to prevent unknown from causing ambiguous name because of geography
-- TODO Remove in 2.0
CREATE OR REPLACE FUNCTION ST_Area(text)
DROP FUNCTION IF EXISTS box2d_overlap(box2d, box2d);
DROP FUNCTION IF EXISTS box2d_same(box2d, box2d);
DROP FUNCTION IF EXISTS box2d_intersects(box2d, box2d);
+DROP FUNCTION IF EXISTS st_area(geography); -- this one changed to use default parameters
DROP FUNCTION IF EXISTS st_asx3d(geometry); -- this one changed to use default parameters so full function deals with it
DROP FUNCTION IF EXISTS st_box2d_overleft(box2d, box2d);
DROP FUNCTION IF EXISTS st_box2d_overright(box2d, box2d);