Schema
Owner
postgres
Descriptions
There is no description for function st_mapalgebra
Options
Option | Value |
---|---|
Returns |
public.raster |
Language |
|
Parameters |
rast public.raster nband integer [] callbackfunc pg_catalog.regprocedure pixeltype text = NULL::text extenttype text = 'FIRST'::text customextent public.raster = NULL::raster distancex integer = 0 distancey integer = 0 variadic userargs text [] = NULL::text[] |
Definition
CREATE OR REPLACE FUNCTION public.st_mapalgebra (
rast public.raster,
nband integer [],
callbackfunc pg_catalog.regprocedure,
pixeltype text = NULL::text,
extenttype text = 'FIRST'::text,
customextent public.raster = NULL::raster,
distancex integer = 0,
distancey integer = 0,
variadic userargs text [] = NULL::text[]
)
RETURNS public.raster AS
$span$
DECLARE
x int;
argset rastbandarg[];
BEGIN
IF $2 IS NULL OR array_ndims($2) < 1 OR array_length($2, 1) < 1 THEN
RAISE EXCEPTION 'Populated 1D array must be provided for nband';
RETURN NULL;
END IF;
FOR x IN array_lower($2, 1)..array_upper($2, 1) LOOP
IF $2[x] IS NULL THEN
CONTINUE;
END IF;
argset := argset || ROW($1, $2[x])::rastbandarg;
END LOOP;
IF array_length(argset, 1) < 1 THEN
RAISE EXCEPTION 'Populated 1D array must be provided for nband';
RETURN NULL;
END IF;
RETURN _ST_MapAlgebra(argset, $3, $4, $7, $8, $5, $6,NULL::double precision [],NULL::boolean, VARIADIC $9);
END;
$span$
LANGUAGE 'plpgsql'
STABLE
CALLED ON NULL INPUT
SECURITY INVOKER
COST 100;
This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) at 13/03/2014 13:23 |