Expand description
Geographic layer glue for the multiconductor model.
powerio_dist cannot depend on powerio, so the GeoLayer extract and
apply for MulticonductorNetwork live here, where both model crates are
visible. The apply pass itself (apply_geo_features) is shared with the
balanced network; this module supplies the string keyed row lookups and
the mirrored type conversions. The parity test in this crate keeps the
mirrored geo types’ JSON shapes identical, so the conversions are direct
field maps with a serde fallback for variants added on one side first.
Functions§
- apply_
dist_ geo_ layer - Apply a
GeoLayeronto a multiconductor network: matched bus points land inDistBus.location, matched line routes inDistLine.route, and the layer’s space becomes the network’sgeowhen anything matched. Matching followsElementKey, with the string ids matched case insensitively (OpenDSS names are case insensitive). - to_
dist_ geo_ layer - Transform legacy bus drawing positions and line routes to a geographic layer.
Component geography (
component_locations) is a separate typed table: partial axes, unknown datums and arbitrary device attachments cannot be expressed by this legacy layer. Useto_dist_geo_layer_reportwhen extracting a network that may contain that table. - to_
dist_ geo_ layer_ report - Extract the legacy layer and report component geography it cannot express.