[fix] return_all in polygon index

This commit is contained in:
Al
2016-04-05 18:42:20 -04:00
parent 7b82af5526
commit 941ab39a6a

View File

@@ -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):