geost.accessors.header.PointHeader.select_within_bbox#

PointHeader.select_within_bbox(xmin: Coordinate, ymin: Coordinate, xmax: Coordinate, ymax: Coordinate, invert: bool = False) GeoDataFrame[source]#

Make a selection of the header based on a bounding box.

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