LANGUAGE 'sql' IMMUTABLE STRICT
COST 300;
--- Availability: 1.2.2
-CREATE OR REPLACE FUNCTION ST_distance_sphere(geom1 geometry, geom2 geometry)
- RETURNS FLOAT8
- AS $$
- select st_distance(geography($1),geography($2),false)
- $$
- LANGUAGE 'sql' IMMUTABLE STRICT
- COST 300;
-
-
---------------------------------------------------------------
-- GEOMETRY_COLUMNS view support functions
---------------------------------------------------------------