src / pysoilmap / shapeops.py

clip

clip(gdf, shape)[source]

Clip a GeoDataFrame to the specified area.

Same as (but somewhat faster than) geopandas.clip() or geopandas.overlay() with how='intersection'.

Return type:

GeoDataFrame