[fix] poly.context

This commit is contained in:
Al
2016-07-28 01:46:12 -04:00
parent 88353b75e0
commit d276611b9c

View File

@@ -855,7 +855,7 @@ class OSMAddressFormatter(object):
print('did {} formatted places'.format(i))
for props, poly in iter(self.components.osm_admin_rtree):
point = context.representative_point()
point = poly.context.representative_point()
lat = pt.y
lon = pt.x
props['lat'] = lat