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

Function: st_disjoint

 

 

Schema

public

 

Owner

postgres

 

Descriptions

args: rastA, nbandA, rastB, nbandB - Return true if raster rastA does not spatially intersect rastB.

 

Options

Option

Value

Returns

boolean

Language

sql

Parameters

rast1 public.raster

nband1 integer

rast2 public.raster

nband2 integer

 

Definition

CREATE OR REPLACE FUNCTION public.st_disjoint (
 rast1 public.raster,
 nband1 integer,
 rast2 public.raster,
 nband2 integer
)
RETURNS boolean AS
$span$
SELECT CASE WHEN
$2 IS NULL OR $4 IS NULL THEN st_disjoint(st_convexhull($1), st_convexhull($3)) ELSE NOT _st_intersects($1, $2, $3, $4) END
$span$
LANGUAGE
'sql'
IMMUTABLE
CALLED ON NULL INPUT
SECURITY INVOKER
COST
1000;

COMMENT ON FUNCTION public.st_disjoint(rast1 public.raster, nband1 integer, rast2 public.raster, nband2 integer)
IS 'args: rastA, nbandA, rastB, nbandB - Return true if raster rastA does not spatially intersect rastB.';

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