geost.base.PointHeader.select_within_bbox#

PointHeader.select_within_bbox(xmin: Coordinate, ymin: Coordinate, xmax: Coordinate, ymax: Coordinate, invert: bool = False)[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:

Instance of PointHeader containing only selected geometries.

Return type:

PointHeader