Skip to main content

apply_geo_layer

Function apply_geo_layer 

Source
pub fn apply_geo_layer(
    module: &PioModule<PioValue>,
    layer: &GeoLayer,
) -> Result<(PioModule<PioValue>, GeoApplyReport), Error>
Expand description

Apply one geographic layer to a network module.

Balanced bus points and branch routes use BalancedNetwork::apply_geo_layer. Multiconductor coordinates use the same shared matching rules through crate::dist_geo::apply_dist_geo_layer. The source module is unchanged. The returned module clears retained bytes and source mappings, preserves its other records, and appends one apply_geo_layer history entry.

ยงErrors

The module does not contain a balanced or multiconductor network, or its records cannot accept the new history entry.