revrt.routing.utilities.filter_points_outside_cost_domain#

filter_points_outside_cost_domain(route_table, shape)[source]#

Drop routes whose indices fall outside the cost domain

Parameters:
  • route_table (pandas.DataFrame or geopandas.GeoDataFrame) – Route definitions table with at least start_row, start_col. Can also optionally have end_row, and end_col columns.

  • shape (tuple) – Raster height and width for bounds checking.

Returns:

pandas.DataFrame or geopandas.GeoDataFrame – Input points filtered to only those within the cost domain.