Expand description
Typed coordinate metadata for the balanced model, and the standalone
geographic document (GeoLayer) that carries coordinates as a file of
their own.
Structs§
- Canvas
- Diagram canvas metadata.
- Element
Key - Element identity for one feature. Matching tries
uid, thenid, then case insensitivename; branches additionally fall back to the unordered(from, to)bus pair.indexis a positional row alias (1-based, the MATPOWER row convention) accepted on read and never written; the durable identity is the payloaduid(buses:3,branches:7). - GeoApply
Report - Result of applying a
GeoLayerto a network. - GeoFeature
- One point or route in a
GeoLayer. - GeoLayer
- A standalone geographic document: element points and routes in one coordinate space, keyed by element identity rather than embedded in a case.
- GeoMeta
- Network level coordinate metadata.
- GeoParsed
- Output of a tolerant geo read: the layer plus the reader’s notes on records it could not use.
- Location
- A point attached to one model element.
Enums§
- Coordinate
Space - Coordinate space for locations in a network.
- Coords
Kind - Coordinate provenance.
- GeoGeometry
- Feature geometry: a point or a polyline route.
- GeoTarget
- The element family a feature places.
Constants§
- GEO_
LAYER_ EXTENSION - Suggested extension for the canonical document.
- PWD_
MERCATOR_ K - Scale of PowerWorld’s auto generated layouts:
x = K·lonandy = K·mercdeg(lat), with the Mercator ordinate expressed in degrees.
Traits§
- GeoApply
Target - The model half of one
apply_geo_featurespass: how a feature key resolves to a row, and how a matched point or route lands on the model.
Functions§
- apply_
geo_ features - One apply pass over a layer’s features. The model-specific lookups and
placements come from the
GeoApplyTarget; the feature dispatch, match counting, and substation bookkeeping live here, so the balanced network and the multiconductor glue inpowerio-pkgreport identically. - apply_
substation_ points - Join a layer’s substation points onto buses through the
SubNum(orSubNumber) extras key: every bus in a matched substation takes the substation’s point, and the layer’s space becomes the network’sGeoMetawhen anything matched. Replaced locations and a coordinate space change are reported in the notes rather than happening silently. - geo_
layer_ from_ aux_ substations - Lift the aux
Substationtable into a geographicGeoLayerwith substation targets keyed by substation number. The number comes fromSubNumorNumberand the point fromLatitudeandLongitude, the column names PowerWorld writes itself, so they take no aliases. A row whose number or coordinate is absent or is not a finite number is skipped. Rows stay in file order, so a repeated substation number keeps the last point onceapply_substation_pointsruns. - geo_
layer_ from_ pwd - Lift decoded
.pwdsubstation symbols into a diagram spaceGeoLayerwith substation targets keyed by substation number. - pwd_
mercator_ to_ lonlat - Approximate inverse of the projection PowerWorld’s auto generated layouts
use (verified against ACTIVSg200/2000 to within ~0.02 degrees): longitude
is
x / K, latitude the inverse Gudermannian ofy / K. Hand edited diagrams drift from this, so treat the result as approximate.