From b5722ef102943c8af613bae079f800e1a8714b46 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Tue, 21 Aug 2007 09:15:28 -0400 Subject: [PATCH] The radius coverage was totally broken. --- stopMashupLeech.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stopMashupLeech.py b/stopMashupLeech.py index 16d9065..5a432c0 100755 --- a/stopMashupLeech.py +++ b/stopMashupLeech.py @@ -200,9 +200,9 @@ def radiusCompletelyCoveredByOtherPoints(location, locations, width, height): # Require at least 2% new coverage. min_area = 0.02 * width * height for i in locations: - p.subtract(RectTools.Rectangle(i.longitude - width/2, - i.latitude - width/2, - width, height)) + p = p.subtract(RectTools.Rectangle(i.longitude - width/2, + i.latitude - width/2, + width, height)) if p.area() < min_area: break -- 2.11.4.GIT