]> granicus.if.org Git - postgis/commitdiff
Removed division by bin-width for when bin-widths are specified in ST_Histogram
authorBborie Park <bkpark at ucdavis.edu>
Mon, 5 Dec 2011 18:36:56 +0000 (18:36 +0000)
committerBborie Park <bkpark at ucdavis.edu>
Mon, 5 Dec 2011 18:36:56 +0000 (18:36 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8304 b70326c6-7e19-0410-871a-916f4a2858ee

raster/rt_core/rt_api.c

index 767ffc2b9996c367a7f0625ba8c4b9e1c5f67552..76651ac58c7e3bf0e40958a34997406429cdefe6 100644 (file)
@@ -2154,8 +2154,6 @@ rt_band_get_histogram(rt_bandstats stats,
 
        for (i = 0; i < bin_count; i++) {
                bins[i].percent = ((double) bins[i].count) / sum;
-               if (bin_width_count > 1)
-                       bins[i].percent /= (bins[i].max - bins[i].min);
        }
 
 #if POSTGIS_DEBUG_LEVEL > 0