The purple is the original polygon to be smoothed and I would like to smooth the polygons as the red line using Python.

I tried simplify but looks like I need a buffer and simplify the buffer. But I want to simplify the polygon directly. I am open to any other methods using Python.

import geopandas as gpd

d = gpd.read_file('poly.shp')
x = d.buffer(0.0001)

tolerance = 0.00005
simplified = x.simplify(tolerance, preserve_topology=True)

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy