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

Function: st_clip

 

 

Schema

public

 

Owner

albenard

 

Descriptions

There is no description for function st_clip

 

Options

Option

Value

Returns

public.raster

Language

plpgsql

Parameters

rast public.raster

nband integer []

geom public.geometry

nodataval double precision [] = NULL::double precision[]

crop boolean = true

 

Definition

CREATE OR REPLACE FUNCTION public.st_clip (
 rast public.raster,
 nband integer [],
 geom public.geometry,
 nodataval double precision [] = NULL::double precision[],
 crop boolean = true
)
RETURNS public.raster AS
$span$
BEGIN

-- short-cut if geometry's extent fully contains raster's extent
IF (nodataval IS NULL OR array_length(nodataval, 1) < 1) AND geom ~ ST_Envelope(rast) THEN
RETURN
rast;
END IF;

RETURN public._ST_Clip($1, $2, $3, $4, $5);
END;
$span$
LANGUAGE
'plpgsql'
IMMUTABLE
CALLED ON NULL INPUT
SECURITY INVOKER
COST
100;

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