revrt.utilities.base.features_to_route_table#

features_to_route_table(features)[source]#

Convert features GDF into route start/end point table

This function builds a routing table to define start/end points for routes between all permutations of the given features. This is mostly for easy backward-compatibility, since the old routing code computed paths between all feature permutations by default.

Parameters:

features (geopandas.GeoDataFrame) – Geopandas DataFrame containing features to route between.

Returns:

pandas.DataFrame – Pandas DataFrame with the expected routing columns: start_lat, start_lon, end_lat, and end_lon. Also includes start_index and index columns for convenience. DataFrame index name is set to “rid”.