]> granicus.if.org Git - postgis/commitdiff
minor code change to make example a bit shorter
authorRegina Obe <lr@pcorp.us>
Fri, 23 Dec 2011 13:20:50 +0000 (13:20 +0000)
committerRegina Obe <lr@pcorp.us>
Fri, 23 Dec 2011 13:20:50 +0000 (13:20 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8520 b70326c6-7e19-0410-871a-916f4a2858ee

doc/reference_raster.xml

index 45b6dc9d0b97e41733169d483fdbfe9acf073ba6..f5d0ae08002a13824295d3eb7f345e0898578121 100644 (file)
@@ -5010,11 +5010,9 @@ WHERE rid = 6) As foo;
                                <title>Examples: Multi-band clipping</title>
                        
 <programlisting>-- 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