clip_gdf
cellseg_gsontools.clip_gdf(gdf, bbox)
¶
Clip a gdf to a bounding box.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
gdf |
GeoDataFrame
|
Input geodataframe. |
required |
bbox |
Tuple[int, int, int, int]
|
Bounding box to clip to. Format: (xmin, ymin, xmax, ymax). |
required |
Returns:
Type | Description |
---|---|
GeoDataFrame
|
gpd.GeoDataFrame: The Clipped gdf. |
Examples: