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

Function: st_intersection

 

 

Schema

public

 

Owner

postgres

 

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), _ST_BestSRID($1, $2)), ST_Transform(geometry($2), _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 13/03/2014 13:23
Previous topic Chapter index Next topic