From 86d6ee39c9786e55a657d295f4f7f69467f71aa6 Mon Sep 17 00:00:00 2001 From: Regina Obe Date: Tue, 8 Nov 2011 20:32:09 +0000 Subject: [PATCH] ST_MapAlgebraExpr - 2 band version - incorporate Pierre's corrections / additions git-svn-id: http://svn.osgeo.org/postgis/trunk@8118 b70326c6-7e19-0410-871a-916f4a2858ee --- doc/reference_raster.xml | 41 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 37 insertions(+), 4 deletions(-) diff --git a/doc/reference_raster.xml b/doc/reference_raster.xml index e7ce78d6f..723eb0031 100644 --- a/doc/reference_raster.xml +++ b/doc/reference_raster.xml @@ -5270,7 +5270,7 @@ WHERE rid=167; ST_MapAlgebraExpr - 2 raster band version: Creates a new one band raster formed by applying a valid PostgreSQL algebraic operation on the 2 input raster bands and of pixeltype provided. band 1 of each raster is assumed if no band numbers are specified. + 2 raster band version: Creates a new one band raster formed by applying a valid PostgreSQL algebraic operation on the 2 input raster bands and of pixeltype provided. band 1 of each raster is assumed if no band numbers are specified. The resulting raster will be aligned (scale, skew and pixel corners) on the grid defined by the first raster. The resulting raster will have the extent defined by the "extenttype" parameter. Values for "extenttype" can be: INTERSECTION, UNION, FIRST, SECOND @@ -5307,12 +5307,45 @@ WHERE rid=167; Description Creates a new one band raster formed by applying a valid PostgreSQL algebraic operation to the 2 bands defined by the expression on the 2 input raster bands (rast1, (rast2). If no band1, band2 is specified band 1 is assumed. - The new raster will have the same georeference, width, and height as the original rast1 but will only have one band. + The resulting raster will be aligned (scale, skew and pixel corners) on the grid defined by the first raster. The resulting raster will have the extent defined by the "extenttype" parameter. Values for extenttype: + + + INTERSECTION + + + The extent of the new raster is the intersection of the two rasters. This is the default. + + + + + UNION + + + The extent of the new raster is the union of the two rasters. + + + + + FIRST + + + The extent of the new raster is the same as the one of the first raster. + + + + + SECOND + + + The extent of the new raster is the same as the one of the second raster. + + + + If pixeltype is passed in, then the new raster will have a band of that pixeltype. If pixeltype is passed NULL or no pixel type specified, then the new raster band will have the same pixeltype as the input rast1 band. Use the term rast1 rast2 to refer to the pixel value of the original raster bands. - - extenttype defines the type of overlaying operation. Overlay defaults to INTERSECTION, but UNION is also supported. + Availability: 2.0.0 -- 2.50.0