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

Function: st_setvalues

 

 

Schema

public

 

Owner

albenard

 

Descriptions

args: rast, nband, columnx, rowy, width, height, newvalue, keepnodata=FALSE - Returns modified raster resulting from setting the values of a given band.

 

Options

Option

Value

Returns

public.raster

Language

plpgsql

Parameters

rast public.raster

nband integer

x integer

y integer

width integer

height integer

newvalue double precision

keepnodata boolean = false

 

Definition

CREATE OR REPLACE FUNCTION public.st_setvalues (
 rast public.raster,
 nband integer,
 x integer,
 y integer,
 width integer,
 height integer,
 newvalue double precision,
 keepnodata boolean = false
)
RETURNS public.raster AS
$span$
BEGIN
IF
width <= 0 OR height <= 0 THEN
RAISE EXCEPTION
'Values for width and height must be greater than zero';
RETURN NULL;
END IF;
RETURN public._ST_setvalues($1, $2, $3, $4, array_fill($7, ARRAY[$6, $5]::int[]), NULL, FALSE, NULL, $8);
END;
$span$
LANGUAGE
'plpgsql'
IMMUTABLE
CALLED ON NULL INPUT
SECURITY INVOKER
COST
100;

COMMENT ON FUNCTION public.st_setvalues(rast public.raster, nband integer, x integer, y integer, width integer, height integer, newvalue double precision, keepnodata boolean)
IS 'args: rast, nband, columnx, rowy, width, height, newvalue, keepnodata=FALSE - Returns modified raster resulting from setting the values of a given band.';

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