geost.base.PointHeader.select_with_lines#

PointHeader.select_with_lines(lines: str | Path | GeoDataFrame | LineGeometries, buffer: float | int, invert: bool = False)[source]#

Make a selection of the header based on line geometries.

Parameters:
  • lines (str | Path | gpd.GeoDataFrame | LineGeometries) – 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.

  • buffer (float | int) – Buffer distance for selection geometries.

  • invert (bool, optional) – Invert the selection, by default False.

Returns:

Instance of PointHeader containing only selected geometries.

Return type:

PointHeader