]> granicus.if.org Git - postgis/commitdiff
fix error in logic
authorRegina Obe <lr@pcorp.us>
Sat, 10 Dec 2011 18:03:02 +0000 (18:03 +0000)
committerRegina Obe <lr@pcorp.us>
Sat, 10 Dec 2011 18:03:02 +0000 (18:03 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8348 b70326c6-7e19-0410-871a-916f4a2858ee

doc/reference_raster.xml

index af3ba9daf74b8be39c5b1cf34a5f2a1f56553156..492d3df84824d048f45d7028e90b2fc92683d27e 100644 (file)
@@ -1156,14 +1156,14 @@ FROM (SELECT ST_MetaData(rast) As rmd
                                        <title>Examples: Multi-Band versions</title>
                                
                                        <programlisting>-- Aggregate the 1st band of a table of like rasters into a single raster 
--- with as many bands as there are test_types and as many rows as there are time_slots
+-- with as many bands as there are test_types and as many rows (new rasters) as there are mice
 -- NOTE: The ORDER BY test_type is only supported in PostgreSQL 9.0
 -- for 8.4 and below it usually works to order your data in a subselect (but not guaranteed)
 -- The resulting raster will have a band for each test_type alphabetical by test_type
 -- For mouse lovers: No mice were harmed in this exercise
-SELECT rabbit, ST_AddBand(NULL, array_agg(rast ORDER BY test_type), 1 ) As rast 
+SELECT mouse, ST_AddBand(NULL, array_agg(rast ORDER BY test_type), 1 ) As rast 
        FROM mice_studies
-                       GROUP BY mice;  
+                       GROUP BY mouse;         
                                        </programlisting>
                        
                        </refsection>