geost.accessor.GeostFrame.select_with_points#

GeostFrame.select_with_points(points: str | Path | GeoDataFrame | GeometryType, max_distance: float | int, invert: bool = False) GeoDataFrame[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, by default False.

Returns:

GeoDataFrame instance containing only the selected geometries.

Return type:

gpd.GeoDataFrame