geost.spatial.select_points_near_lines#

geost.spatial.select_points_near_lines(gdf: str | Path | GeoDataFrame, line_gdf: str | Path | GeoDataFrame, buffer: float | int, invert: bool = False) GeoDataFrame[source]#

Make a selection of point geometries based on line geometries and a buffer.

Parameters:
  • gdf (str | Path | gpd.GeoDataFrame) – Geodataframe (or file that can be parsed to a geodataframe) to select from.

  • line_gdf (str | Path | gpd.GeoDataFrame) – Geodataframe (or file that can be parsed to a geodataframe) to select with.

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

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

Returns:

Geodataframe containing only selected geometries.

Return type:

gpd.GeoDataFrame