From: Regina Obe Date: Fri, 16 Mar 2012 12:47:31 +0000 (+0000) Subject: slightly more efficient (and hmm my last timing was with 2 buildings instead of 3) X-Git-Tag: 2.0.0beta4~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=934ab17670ccef62712ffdd5e718a3709169bfa2;p=postgis slightly more efficient (and hmm my last timing was with 2 buildings instead of 3) git-svn-id: http://svn.osgeo.org/postgis/trunk@9511 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/reference_raster.xml b/doc/reference_raster.xml index 93db8d2d8..67d875608 100644 --- a/doc/reference_raster.xml +++ b/doc/reference_raster.xml @@ -4603,7 +4603,7 @@ FROM (SELECT rid, band, ST_SummaryStats(rast, band) As stats Example: Summarize pixels that intersect buildings of interest - This example took 340ms on PostGIS windows 64-bit with all of Boston Buildings + 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 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)