From d276611b9c2908d2897b7a68a153dd0df1d77cd1 Mon Sep 17 00:00:00 2001 From: Al Date: Thu, 28 Jul 2016 01:46:12 -0400 Subject: [PATCH] [fix] poly.context --- scripts/geodata/osm/formatter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/geodata/osm/formatter.py b/scripts/geodata/osm/formatter.py index 64369484..6006f84d 100644 --- a/scripts/geodata/osm/formatter.py +++ b/scripts/geodata/osm/formatter.py @@ -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