pggeodb.nancy.inra.fr/db_robot - db_robot on pggeodb.nancy.inra.fr
Previous topic Chapter index Next topic

Function: st_distance

 

 

Schema

public

 

Owner

albenard

 

Descriptions

args: gg1, gg2, use_spheroid - For geometry type Returns the 2D Cartesian distance between two geometries in projected units (based on spatial ref). For geography type defaults to return minimum geodesic distance between two geographies in meters.

 

Options

Option

Value

Returns

double precision

Language

sql

Parameters

public.geography

public.geography

boolean

 

Definition

CREATE OR REPLACE FUNCTION public.st_distance (
 public.geography,
 public.geography,
 boolean
)
RETURNS double precision AS
$span$
SELECT public
._ST_Distance($1, $2, 0.0, $3)
$span$
LANGUAGE
'sql'
IMMUTABLE
RETURNS NULL ON NULL INPUT
SECURITY INVOKER
COST
100;

COMMENT ON FUNCTION public.st_distance(public.geography, public.geography, boolean)
IS 'args: gg1, gg2, use_spheroid - For geometry type Returns the 2D Cartesian distance between two geometries in projected units (based on spatial ref). For geography type defaults to return minimum geodesic distance between two geographies in meters.';

This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) at 26/02/2014 11:51
Previous topic Chapter index Next topic