geost.accessor.GeostFrame.select_within_bbox#
- GeostFrame.select_within_bbox(xmin: int | float, ymin: int | float, xmax: int | float, ymax: int | float, invert: bool = False) GeoDataFrame[source]#
Select data within a specified bounding box (xmin, ymin, xmax, ymax).
- Parameters:
xmin (float | int) – Minimum x-coordinate of the bounding box.
ymin (float | int) – Minimum y-coordinate of the bounding box.
xmax (float | int) – Maximum x-coordinate of the bounding box.
ymax (float | int) – Maximum y-coordinate of the bounding box.
invert (bool, optional) – Invert the selection, so select all objects outside of the bounding box in this case, by default False.
- Returns:
GeoDataFrame instance containing only the selected geometries.
- Return type:
gpd.GeoDataFrame