geost.base.Collection.select_with_lines#

Collection.select_with_lines(lines: str | Path | GeoDataFrame | GeometryType, max_distance: float | int, invert: bool = False)[source]#

Select all data that lie within a maximum distance from given line geometries.

Parameters:
  • lines (str | Path | gpd.GeoDataFrame | GeometryType) – Any type of line geometries that can be used for the selection: GeoDataFrame containing lines or filepath to a shapefile like file, or Shapely LineString, MultiLineString or list containing LineString objects.

  • max_distance (float | int) – Maximum distance from the selection lines.

  • invert (bool, optional) – Invert the selection, selects all data that lie outside the specified maximum distance from the given line geometries. The default is False.

Returns:

New Collection instance containing only the surveys that are located within the specified maximum distance from the given line geometries.

Return type:

Collection