geost.accessor.GeostFrame.select_with_lines#

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

GeoDataFrame instance containing only the selected geometries.

Return type:

gpd.GeoDataFrame