From 47faf3b72fec8462f10be4d9c1ea2e94bc720c53 Mon Sep 17 00:00:00 2001 From: Bborie Park Date: Mon, 5 Dec 2011 18:36:56 +0000 Subject: [PATCH] Removed division by bin-width for when bin-widths are specified in ST_Histogram git-svn-id: http://svn.osgeo.org/postgis/trunk@8304 b70326c6-7e19-0410-871a-916f4a2858ee --- raster/rt_core/rt_api.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/raster/rt_core/rt_api.c b/raster/rt_core/rt_api.c index 767ffc2b9..76651ac58 100644 --- a/raster/rt_core/rt_api.c +++ b/raster/rt_core/rt_api.c @@ -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 -- 2.40.0