[fix] filename
This commit is contained in:
@@ -104,9 +104,8 @@ class ReverseGeocoder(RTreePolygonIndex):
|
|||||||
for input_file in input_files:
|
for input_file in input_files:
|
||||||
f = fiona.open(input_file)
|
f = fiona.open(input_file)
|
||||||
|
|
||||||
include_props = cls.polygon_properties.get(input_file)
|
|
||||||
|
|
||||||
filename = os.path.split(input_file)[-1]
|
filename = os.path.split(input_file)[-1]
|
||||||
|
include_props = cls.polygon_properties.get(filename)
|
||||||
|
|
||||||
for rec in f:
|
for rec in f:
|
||||||
if not rec or not rec.get('geometry') or 'type' not in rec['geometry']:
|
if not rec or not rec.get('geometry') or 'type' not in rec['geometry']:
|
||||||
|
|||||||
Reference in New Issue
Block a user