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

Function: st_intersection

 

 

Schema

public

 

Owner

albenard

 

Descriptions

args: geogA, geogB - (T)Returns a geometry that represents the shared portion of geomA and geomB.

 

Options

Option

Value

Returns

public.geography

Language

sql

Parameters

public.geography

public.geography

 

Definition

CREATE OR REPLACE FUNCTION public.st_intersection (
 public.geography,
 public.geography
)
RETURNS public.geography AS
$span$
SELECT
geography(ST_Transform(ST_Intersection(ST_Transform(geometry($1), public._ST_BestSRID($1, $2)), ST_Transform(geometry($2), public._ST_BestSRID($1, $2))), 4326))
$span$
LANGUAGE
'sql'
IMMUTABLE
RETURNS NULL ON NULL INPUT
SECURITY INVOKER
COST
100;

COMMENT ON FUNCTION public.st_intersection(public.geography, public.geography)
IS 'args: geogA, geogB - (T)Returns a geometry that represents the shared portion of geomA and geomB.';

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