[fix] missing fields in local admin polygons

This commit is contained in:
Al
2015-10-13 03:15:25 -04:00
parent ea3fa2f09f
commit 09beae845e

View File

@@ -111,6 +111,9 @@ class ReverseGeocoder(RTreePolygonIndex):
filename = os.path.split(input_file)[-1]
for rec in f:
if not rec or not rec.get('geometry') or 'type' not in rec['geometry']:
continue
if filename == cls.NEIGHBORHOODS_FILENAME:
rec['properties']['qs_level'] = 'neighborhood'