From f6b88ba4566d39d7ea6b0883a2fc6987e04bda3c Mon Sep 17 00:00:00 2001 From: Al Date: Tue, 5 Apr 2016 18:49:52 -0400 Subject: [PATCH] [fix] double prep --- scripts/geodata/polygons/index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/geodata/polygons/index.py b/scripts/geodata/polygons/index.py index c3b166a1..4f4ea8fd 100644 --- a/scripts/geodata/polygons/index.py +++ b/scripts/geodata/polygons/index.py @@ -248,7 +248,7 @@ class PolygonIndex(object): poly = Polygon(coords[0]) polys.append(poly) - return prep(MultiPolygon(polys)) + return MultiPolygon(polys) @classmethod def load_polygons(cls, filename): @@ -301,7 +301,7 @@ class PolygonIndex(object): containing = [] for i in candidates: - poly = self.polygons.get(i) + poly = self.polygons.get(i, None) data = {} if poly is None: data = json.loads(self.polygons_db.Get(str(i)))