[fix] json.loads
This commit is contained in:
@@ -115,7 +115,7 @@ class RTreePolygonIndex(object):
|
|||||||
f = open(filename)
|
f = open(filename)
|
||||||
polygons = []
|
polygons = []
|
||||||
for line in f:
|
for line in f:
|
||||||
feature = json.load(line.rstrip())
|
feature = json.loads(line.rstrip())
|
||||||
poly_type = feature['geometry']['type']
|
poly_type = feature['geometry']['type']
|
||||||
|
|
||||||
if poly_type == 'Polygon':
|
if poly_type == 'Polygon':
|
||||||
|
|||||||
Reference in New Issue
Block a user