[fix] double prep

This commit is contained in:
Al
2016-04-05 18:49:52 -04:00
parent 941ab39a6a
commit f6b88ba456

View File

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