[fix] double prep
This commit is contained in:
@@ -248,7 +248,7 @@ class PolygonIndex(object):
|
|||||||
poly = Polygon(coords[0])
|
poly = Polygon(coords[0])
|
||||||
polys.append(poly)
|
polys.append(poly)
|
||||||
|
|
||||||
return prep(MultiPolygon(polys))
|
return MultiPolygon(polys)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def load_polygons(cls, filename):
|
def load_polygons(cls, filename):
|
||||||
@@ -301,7 +301,7 @@ class PolygonIndex(object):
|
|||||||
containing = []
|
containing = []
|
||||||
|
|
||||||
for i in candidates:
|
for i in candidates:
|
||||||
poly = self.polygons.get(i)
|
poly = self.polygons.get(i, None)
|
||||||
data = {}
|
data = {}
|
||||||
if poly is None:
|
if poly is None:
|
||||||
data = json.loads(self.polygons_db.Get(str(i)))
|
data = json.loads(self.polygons_db.Get(str(i)))
|
||||||
|
|||||||
Reference in New Issue
Block a user