]> granicus.if.org Git - postgis/commitdiff
slightly more efficient (and hmm my last timing was with 2 buildings instead of 3)
authorRegina Obe <lr@pcorp.us>
Fri, 16 Mar 2012 12:47:31 +0000 (12:47 +0000)
committerRegina Obe <lr@pcorp.us>
Fri, 16 Mar 2012 12:47:31 +0000 (12:47 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9511 b70326c6-7e19-0410-871a-916f4a2858ee

doc/reference_raster.xml

index 93db8d2d8e46295ae31ea4264d0cfce1aaf96b1d..67d87560857c45bbec29d9f504769e06342e196a 100644 (file)
@@ -4603,7 +4603,7 @@ FROM (SELECT rid, band, ST_SummaryStats(rast, band) As stats
                        
                        <refsection>
                                <title>Example: Summarize pixels that intersect buildings of interest</title>
-                               <para>This example took 340ms on PostGIS windows 64-bit with all of Boston Buildings
+                               <para>This example took 574ms on PostGIS windows 64-bit with all of Boston Buildings
 and aerial Tiles (tiles each 150x150 pixels ~ 134,000 tiles), ~102,000 building records</para>
                                <programlisting>WITH 
 -- our features of interest
@@ -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,2,geom)) As stats
     FROM aerials.boston
                INNER JOIN feat
        ON ST_Intersects(feat.geom,rast)