eo_forge.utils.shapes.set_buffer_on_gdf

eo_forge.utils.shapes.set_buffer_on_gdf(gdf, buffer=50, convex_hull=True, to_epsg_=True, epsg_='EPSG:3857')

Set buffer and simplify (convexhull) geometry.

Parameters
gdf: geopandas instance on a projected crs
buffer: buffer to apply in meters
convex_hull: bool to apply convex hull simplification or not
epsg_: epsg to be used in buffering (notice that buffer works with a projected crs)
Returns
gdf: updated geoDataframe