From: Regina Obe Date: Fri, 16 Mar 2012 15:03:43 +0000 (+0000) Subject: fix typo in example was adding band 1 twice X-Git-Tag: 2.0.0beta4~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f17505ac959bfaf32e2f6c3212b94041367192f1;p=postgis fix typo in example was adding band 1 twice git-svn-id: http://svn.osgeo.org/postgis/trunk@9513 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/html/images/st_mapalgebraexpr2_08.png b/doc/html/images/st_mapalgebraexpr2_08.png index b3f476607..410e86e2f 100644 Binary files a/doc/html/images/st_mapalgebraexpr2_08.png and b/doc/html/images/st_mapalgebraexpr2_08.png differ diff --git a/doc/reference_raster.xml b/doc/reference_raster.xml index 9ea47a5b5..cdf287842 100644 --- a/doc/reference_raster.xml +++ b/doc/reference_raster.xml @@ -6423,8 +6423,9 @@ FROM pr GROUP BY geom) -- return our final raster which is the unioned shard with -- with the overlay of our parcel boundaries +-- add first 2 bands, then mapalgebra of 3rd band + geometry SELECT ST_AddBand(ST_Band(clipped,ARRAY[1,2]) - , ST_MapAlgebraExpr(clipped, ST_AsRaster(ST_Buffer(ST_Boundary(geom),2),clipped, '8BUI',250), + , ST_MapAlgebraExpr(ST_Band(clipped,3), ST_AsRaster(ST_Buffer(ST_Boundary(geom),2),clipped, '8BUI',250), '[rast2.val]', '8BUI', 'FIRST', '[rast2.val]', '[rast1.val]') ) As rast FROM prunion;