geost.base.Collection.select_with_points#
- Collection.select_with_points(points: str | Path | GeoDataFrame | GeometryType, max_distance: float | int, invert: bool = False)[source]#
Select all data that lie within a maximum distance from given point geometries.
- Parameters:
points (str | Path | gpd.GeoDataFrame | GeometryType) – Any type of point geometries that can be used for the selection: GeoDataFrame containing points or filepath to a shapefile like file, or Shapely Point, MultiPoint or list containing Point objects.
max_distance (float | int) – Maximum distance from the selection points.
invert (bool, optional) – Invert the selection, selects all data that lie outside the specified maximum distance from the given point geometries. The default is False.
- Returns:
New Collection instance containing only the surveys that are located within the specified maximum distance from the given point geometries.
- Return type: