]> granicus.if.org Git - postgis/commitdiff
fix typo in example was adding band 1 twice
authorRegina Obe <lr@pcorp.us>
Fri, 16 Mar 2012 15:03:43 +0000 (15:03 +0000)
committerRegina Obe <lr@pcorp.us>
Fri, 16 Mar 2012 15:03:43 +0000 (15:03 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9513 b70326c6-7e19-0410-871a-916f4a2858ee

doc/html/images/st_mapalgebraexpr2_08.png
doc/reference_raster.xml

index b3f4766074cd4f8c4adc96c14b85d74a375216fe..410e86e2ff7aa5b7ba84651ea56f310353c6a0b2 100644 (file)
Binary files a/doc/html/images/st_mapalgebraexpr2_08.png and b/doc/html/images/st_mapalgebraexpr2_08.png differ
index 9ea47a5b54084d88fe10b6843dd84add4716d5a3..cdf287842c4ce90270ad91caa23abac86b902efb 100644 (file)
@@ -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;</programlisting>