[fix] Simplify OSM polygons but using the new threshold

This commit is contained in:
Al
2016-04-04 21:39:26 -04:00
parent 860498d509
commit 1844f99baf

View File

@@ -763,8 +763,7 @@ class OSMReverseGeocoder(RTreePolygonIndex):
poly = multi[0]
else:
continue
if len(poly.exterior.xy[0]) >= cls.large_polygon_threshold:
poly = index.simplify_polygon(poly)
poly = index.simplify_polygon(poly)
index.add_polygon(poly, props)
return index