Schema
Owner
postgres
Descriptions
args: rast, 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 |
|
Parameters |
rast public.raster 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,
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, 1, $2, $3, array_fill($6, ARRAY[$5, $4]::int[]), NULL, FALSE, NULL, $7);
END;
$span$
LANGUAGE 'plpgsql'
IMMUTABLE
CALLED ON NULL INPUT
SECURITY INVOKER
COST 100;
COMMENT ON FUNCTION public.st_setvalues(rast public.raster, x integer, y integer, width integer, height integer, newvalue double precision, keepnodata boolean)
IS 'args: rast, 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 13/03/2014 13:23 |