From 904af8b964cf47edca50e696a2da5ac67eff9a89 Mon Sep 17 00:00:00 2001 From: Regina Obe Date: Fri, 23 Dec 2011 13:20:50 +0000 Subject: [PATCH] minor code change to make example a bit shorter git-svn-id: http://svn.osgeo.org/postgis/trunk@8520 b70326c6-7e19-0410-871a-916f4a2858ee --- doc/reference_raster.xml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/doc/reference_raster.xml b/doc/reference_raster.xml index 45b6dc9d0..f5d0ae080 100644 --- a/doc/reference_raster.xml +++ b/doc/reference_raster.xml @@ -5010,11 +5010,9 @@ WHERE rid = 6) As foo; Examples: Multi-band clipping -- Clip all bands of an aerial tile by a 20 meter buffer. -SELECT ST_AddBand(NULL, - ARRAY[ST_Clip(rast, 1, clipper), - ST_Clip(rast, 2, clipper), - ST_Clip(rast, 3, clipper) - ] +SELECT ST_AddBand(ST_Clip(rast, 1, clipper), + ARRAY[ ST_Clip(rast, 2, clipper), + ST_Clip(rast, 3, clipper) ] ) FROM (SELECT rast, ST_Buffer(ST_Centroid(ST_Envelope(rast)),20) As clipper FROM aerials.boston -- 2.40.0