From: Bborie Park Date: Mon, 15 Oct 2012 14:48:42 +0000 (+0000) Subject: More poking at the docs for ST_MapAlgebra X-Git-Tag: 2.1.0beta2~536 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=912aaa687cd213621d8d33018079f173956bd0a8;p=postgis More poking at the docs for ST_MapAlgebra git-svn-id: http://svn.osgeo.org/postgis/trunk@10431 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/reference_raster.xml b/doc/reference_raster.xml index 197706eb8..af637b519 100644 --- a/doc/reference_raster.xml +++ b/doc/reference_raster.xml @@ -7610,7 +7610,7 @@ WHERE A.rid =2 ) As foo; - The tworastuserfunc parameter must be the name and signature of an SQL or PL/pgSQL function, cast to a regprocedure. An example PL/pgSQL function example is: + The callbackfunc parameter must be the name and signature of an SQL or PL/pgSQL function, cast to a regprocedure. An example PL/pgSQL function example is: CREATE OR REPLACE FUNCTION sample_callbackfunc(value double precision[][][], position integer[][], VARIADIC userargs text[]) RETURNS double precision @@ -7621,7 +7621,7 @@ CREATE OR REPLACE FUNCTION sample_callbackfunc(value double precision[][][], pos $$ LANGUAGE 'plpgsql' IMMUTABLE; - The callbackfunc must have three arguments: a 3-dimension double precision array, a 2-dimension double precision array and a variadic 1-dimension text array. The first argument value is the set of values (as double precision) from all input rasters. The three dimensions (where indexes are 1-based) are: raster #, row y, column x. The second argument position is the set of pixel positions from the output raster and input rasters. The outer dimension (where indexes are 0-based) is the raster #. The position at outer dimension index 0 is the output raster's pixel position. For each outer dimension, there are two elements in the inner dimension for X and Y. The third argument userargs is for passing through any user-specified arguments. + The callbackfunc must have three arguments: a 3-dimension double precision array, a 2-dimension integer array and a variadic 1-dimension text array. The first argument value is the set of values (as double precision) from all input rasters. The three dimensions (where indexes are 1-based) are: raster #, row y, column x. The second argument position is the set of pixel positions from the output raster and input rasters. The outer dimension (where indexes are 0-based) is the raster #. The position at outer dimension index 0 is the output raster's pixel position. For each outer dimension, there are two elements in the inner dimension for X and Y. The third argument userargs is for passing through any user-specified arguments.