revrt.routing.cli.build_costs.build_routing_layer#

build_routing_layer(lcp_config_fp, out_dir, polarity=None, voltage=None)[source]#

Build out the routing layers used by reVRt

Parameters:
  • lcp_config_fp (path-like) – Path to LCP config file for which the routing layer should be created.

  • out_dir (path-like) – Path to directory where to store the outputs.

  • polarity (str, optional) – Polarity to use when building the routing layer. This input is required if any cost or friction layers that have apply_polarity_mult set to True - they will have the appropriate multiplier applied based on this polarity. By default, None.

  • voltage (str, optional) – Voltage to use when building the routing layer. This input is required if any cost or friction layers that have apply_row_mult or apply_polarity_mult set to True - they will have the appropriate multiplier applied based on this voltage. By default, None.

Returns:

list – List of paths to the GeoTIFF files that were created.