[fix] Simplify OSM polygons but using the new threshold
This commit is contained in:
@@ -763,8 +763,7 @@ class OSMReverseGeocoder(RTreePolygonIndex):
|
|||||||
poly = multi[0]
|
poly = multi[0]
|
||||||
else:
|
else:
|
||||||
continue
|
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)
|
index.add_polygon(poly, props)
|
||||||
|
|
||||||
return index
|
return index
|
||||||
|
|||||||
Reference in New Issue
Block a user