repair

repair(gdf)[source]

Attempt to fix broken geometries in the given GeoDataFrame, and returns a new GeoDataFrame.

This uses the unary_union() as well as the buffer(0) trick. Your mileage may vary.

Return type

GeoDataFrame