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

Function: st_maxdistance

 

 

Schema

public

 

Owner

albenard

 

Descriptions

args: g1, g2 - Returns the 2-dimensional largest distance between two geometries in projected units.

 

Options

Option

Value

Returns

double precision

Language

sql

Parameters

geom1 public.geometry

geom2 public.geometry

 

Definition

CREATE OR REPLACE FUNCTION public.st_maxdistance (
 geom1 public.geometry,
 geom2 public.geometry
)
RETURNS double precision AS
$span$
SELECT public
._ST_MaxDistance(public.ST_ConvexHull($1), public.ST_ConvexHull($2))
$span$
LANGUAGE
'sql'
IMMUTABLE
RETURNS NULL ON NULL INPUT
SECURITY INVOKER
COST
100;

COMMENT ON FUNCTION public.st_maxdistance(geom1 public.geometry, geom2 public.geometry)
IS 'args: g1, g2 - Returns the 2-dimensional largest distance between two geometries in projected units.';

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