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

Function: st_mapalgebra

 

 

Schema

public

 

Owner

postgres

 

Descriptions

There is no description for function st_mapalgebra

 

Options

Option

Value

Returns

public.raster

Language

plpgsql

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 public._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 07/12/2018 13:23
Previous topic Chapter index Next topic