]> granicus.if.org Git - postgis/commitdiff
minor adjustment to example
authorRegina Obe <lr@pcorp.us>
Fri, 16 Mar 2012 12:40:31 +0000 (12:40 +0000)
committerRegina Obe <lr@pcorp.us>
Fri, 16 Mar 2012 12:40:31 +0000 (12:40 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9510 b70326c6-7e19-0410-871a-916f4a2858ee

doc/reference_raster.xml

index e2118eb9094f3f6a98efb16068fcda9802e9fbda..93db8d2d8e46295ae31ea4264d0cfce1aaf96b1d 100644 (file)
@@ -4614,7 +4614,7 @@ and aerial Tiles (tiles each 150x150 pixels ~ 134,000 tiles), ~102,000 building
 -- then get stats for these clipped regions
    b_stats AS
        (SELECT  building_id, (stats).*
-FROM (SELECT building_id, ST_SummaryStats(ST_Clip(rast,geom,2)) As stats
+FROM (SELECT building_id, ST_SummaryStats(ST_Clip(rast,geom),2) As stats
     FROM aerials.boston
                INNER JOIN feat
        ON ST_Intersects(feat.geom,rast) 
@@ -4631,9 +4631,9 @@ SELECT building_id, SUM(count) As num_pixels
        ORDER BY building_id;
  building_id | num_pixels | min_pval | max_pval |     avg_pval
 -------------+------------+----------+----------+------------------
-         100 |       1087 |        0 |      252 | 57.5501379944802
-         103 |        655 |        4 |      176 | 65.3145038167939
-         150 |        894 |        0 |      252 | 185.530201342282</programlisting>
+         100 |       1090 |        1 |      255 | 61.0697247706422
+         103 |        655 |        7 |      182 | 70.5038167938931
+         150 |        895 |        2 |      252 | 185.642458100559</programlisting>
                        </refsection>
                        
                        <refsection>