buffer

buffer(gdf, distance=0.0, *args, **kwargs)[source]

Applies shape.buffer(...) to each shape in a GeoDataFrame and returns a new GeoDataFrame with replaced geometry.

This can be used as a trick to repair some types of broken geometries in shapefiles.

Return type

GeoDataFrame