Commit 67ffd6f4 authored by Regina Obe's avatar Regina Obe

#2603: add weighted and mask args

git-svn-id: http://svn.osgeo.org/postgis/trunk@14178 b70326c6-7e19-0410-871a-916f4a2858ee
parent a5f37f8b
Pipeline #163890 skipped
......@@ -9125,8 +9125,7 @@ FROM (
</refnamediv>
<refsynopsisdiv>
<funcsynopsis>
<funcsynopsis>
<funcprototype>
<funcdef>raster <function>ST_MapAlgebra</function></funcdef>
<paramdef><type>rastbandarg[] </type> <parameter>rastbandargset</parameter></paramdef>
......@@ -9179,6 +9178,18 @@ FROM (
<paramdef choice="opt"><type>integer </type> <parameter>distancey=0</parameter></paramdef>
<paramdef choice="opt"><type>text[] </type> <parameter>VARIADIC userargs=NULL</parameter></paramdef>
</funcprototype>
<funcprototype>
<funcdef>raster <function>ST_MapAlgebra</function></funcdef>
<paramdef><type>nband</type> <parameter>integer</parameter></paramdef>
<paramdef><type>regprocedure </type> <parameter>callbackfunc</parameter></paramdef>
<paramdef><type>float8[] </type> <parameter>mask</parameter></paramdef>
<paramdef><type>boolean </type> <parameter>weighted</parameter></paramdef>
<paramdef choice="opt"><type>text </type> <parameter>pixeltype=NULL</parameter></paramdef>
<paramdef choice="opt"><type>text </type> <parameter>extenttype=INTERSECTION</parameter></paramdef>
<paramdef choice="opt"><type>raster </type> <parameter>customextent=NULL</parameter></paramdef>
<paramdef choice="opt"><type>text[] </type> <parameter>VARIADIC userargs=NULL</parameter></paramdef>
</funcprototype>
</funcsynopsis>
</refsynopsisdiv>
......@@ -9237,6 +9248,24 @@ CREATE OR REPLACE FUNCTION sample_callbackfunc(value double precision[][][], pos
</listitem>
</varlistentry>
<varlistentry>
<term>mask</term>
<listitem>
<para>
An n-dimenional array (matrix) of numbers used to set pixels in raster to nodata.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>weighted</term>
<listitem>
<para>
boolean (true/false) to denote if a mask should be weighted or not (only applies to proto that takes a mask).
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>pixeltype</term>
......@@ -9320,6 +9349,7 @@ CREATE OR REPLACE FUNCTION sample_callbackfunc(value double precision[][][], pos
Variant 4 operate upon two rasters with one band per raster. See example Variant 4.
</para>
<para>Availability: 2.2.0: Ability to add a mask</para>
<para>Availability: 2.1.0</para>
</refsection>
......@@ -9503,6 +9533,7 @@ WHERE t1.rid = 1
</refsection>
<refsection>
<title>See Also</title>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment