Skip to main content

to_geo_layer_from_aux_text

Function to_geo_layer_from_aux_text 

Source
pub fn to_geo_layer_from_aux_text(text: &str) -> Result<GeoLayer>
Expand description

Transform the Substation table in PowerWorld AUX text into a geographic layer without exposing the component parser’s borrowed AuxFile type.

Rows without a finite number, latitude, and longitude are skipped. A valid AUX document with no usable substation coordinates returns an empty layer.

§Errors

The AUX section syntax is malformed.