geost.base.PointHeader.select_within_polygons#
- PointHeader.select_within_polygons(polygons: str | Path | GeoDataFrame, buffer: float | int = 0, invert: bool = False)[source]#
Make a selection of the header based on polygon geometries.
- Parameters:
polygons (str | Path | gpd.GeoDataFrame) – Geodataframe (or file that can be parsed to a geodataframe) to select with.
buffer (float | int, optional) – Optional buffer distance around the polygon selection geometries, by default 0.
invert (bool, optional) – Invert the selection, by default False.
- Returns:
Instance of
PointHeader
containing only selected geometries.- Return type: