From 941ab39a6abd08ca60f7c9c78cba4c58178f3841 Mon Sep 17 00:00:00 2001 From: Al Date: Tue, 5 Apr 2016 18:42:20 -0400 Subject: [PATCH] [fix] return_all in polygon index --- scripts/geodata/polygons/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/geodata/polygons/index.py b/scripts/geodata/polygons/index.py index 88ffb418..c3b166a1 100644 --- a/scripts/geodata/polygons/index.py +++ b/scripts/geodata/polygons/index.py @@ -326,7 +326,7 @@ class PolygonIndex(object): def point_in_poly(self, lat, lon, return_all=False): candidates = self.get_candidate_polygons(lat, lon) point = Point(lon, lat) - return self.polygons_contain(candidates, point) + return self.polygons_contain(candidates, point, return_all=return_all) class RTreePolygonIndex(PolygonIndex):