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

Function: st_within

 

 

Schema

public

 

Owner

postgres

 

Descriptions

args: A, B - Returns true if the geometry A is completely inside geometry B

 

Options

Option

Value

Returns

boolean

Language

sql

Parameters

geom1 public.geometry

geom2 public.geometry

 

Definition

CREATE OR REPLACE FUNCTION public.st_within (
 geom1 public.geometry,
 geom2 public.geometry
)
RETURNS boolean AS
$span$
SELECT
$2 OPERATOR(public.~) $1 AND public._ST_Contains($2,$1)
$span$
LANGUAGE
'sql'
IMMUTABLE
CALLED ON NULL INPUT
SECURITY INVOKER
COST
100;

COMMENT ON FUNCTION public.st_within(geom1 public.geometry, geom2 public.geometry)
IS 'args: A, B - Returns true if the geometry A is completely inside geometry B';

This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) at 13/03/2014 13:23
Previous topic Chapter index Next topic