Class Runway
Runway Object
Inherited Members
Namespace: FpAssistantCore.Aerodromes
Assembly: FpAssistantCoreScl.dll
Syntax
public class Runway
Constructors
View SourceRunway(string)
Constructor for a runway
Declaration
[JsonConstructor]
public Runway(string identifier)
Parameters
| Type | Name | Description |
|---|---|---|
| string | identifier | An identifier for this runway |
Remarks
[JsonConstructor]
Properties
View SourceCentreLineCoordinateCount
Number of coordinates that defined the runway centreline
Declaration
[JsonIgnore]
public int CentreLineCoordinateCount { get; }
Property Value
| Type | Description |
|---|---|
| int | int - Number of coordinates in the centreline |
CentreLineCoordinates
Collection of runway centreline coordinates
Declaration
public GeoCoordinateElevationCollection CentreLineCoordinates { get; set; }
Property Value
| Type | Description |
|---|---|
| GeoCoordinateElevationCollection | GeoCoordinateElevationCollection - Coordinates with elevations |
Remarks
Coordinates are expected to be colinear
Identifier
The identifier for this runway
Declaration
public string Identifier { get; }
Property Value
| Type | Description |
|---|---|
| string | String - Runway Identifier |
Methods
View SourceAddRunwayCoordinate(GeoCoordinateElevation)
Add GeoCoordinateElevation to the Runway Centreline collection
Declaration
public void AddRunwayCoordinate(GeoCoordinateElevation runwayCoordinateElevation)
Parameters
| Type | Name | Description |
|---|---|---|
| GeoCoordinateElevation | runwayCoordinateElevation |
Remarks
Will be sorted as coordinates are added based from first entry
AsGeoMapElementCentreline(GeoMapElementOptions)
Runway Centreline in GeoMapElement Format
Declaration
public GeoMapElement AsGeoMapElementCentreline(Runway.GeoMapElementOptions geoMapElementOption)
Parameters
| Type | Name | Description |
|---|---|---|
| Runway.GeoMapElementOptions | geoMapElementOption | Option to control if just end points are used or all runway centreline points |
Returns
| Type | Description |
|---|---|
| GeoMapElement | GeoMapElement of the centreline |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Invalid GeoMapElementOptions parameter |
EndAsGeoCoordinate()
Runway end
Declaration
public GeoCoordinate EndAsGeoCoordinate()
Returns
| Type | Description |
|---|---|
| GeoCoordinate | GeoCoordinate : Coordinate of runway end |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Not enough coordinate defined for runway! |
EndAsGeoCoordinateBasic()
Runway end
Declaration
public GeoCoordinateBasic EndAsGeoCoordinateBasic()
Returns
| Type | Description |
|---|---|
| GeoCoordinateBasic | GeoCoordinateBasic : Coordinate of runway end |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Not enough coordinate defined for runway! |
EndElevation()
Runway end Elevation
Declaration
public LinearDistance EndElevation()
Returns
| Type | Description |
|---|---|
| LinearDistance | Elevation of runway end |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Not enough coordinate defined for runway! |
ForwardBearing()
Runway Forward Bearing (Azimuth) start to end coordinate
Declaration
public CompassBearing ForwardBearing()
Returns
| Type | Description |
|---|---|
| CompassBearing | CompassBearing : Bearing of the runway |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Not enough coordinate defined for runway! |
ReverseBearing()
Runway Reverse Bearing (Azimuth) end to start coordinate
Declaration
public CompassBearing ReverseBearing()
Returns
| Type | Description |
|---|---|
| CompassBearing | CompassBearing : Bearing of the runway |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Not enough coordinate defined for runway! |
StartAsGeoCoordinate()
Runway Start
Declaration
public GeoCoordinate StartAsGeoCoordinate()
Returns
| Type | Description |
|---|---|
| GeoCoordinate | GeoCoordinate : Coordinate of runway start |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Not enough coordinate defined for runway! |
StartAsGeoCoordinateBasic()
Runway Start
Declaration
public GeoCoordinateBasic StartAsGeoCoordinateBasic()
Returns
| Type | Description |
|---|---|
| GeoCoordinateBasic | GeoCoordinateBasic : Coordinate of runway start |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Not enough coordinate defined for runway! |
StartElevation()
Runway Start Elevation
Declaration
public LinearDistance StartElevation()
Returns
| Type | Description |
|---|---|
| LinearDistance | Elevation of runway start |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Not enough coordinate defined for runway! |
Surfaces(LinearDistance, GraphicalRepresentation)
Construct runway surfaces based on the centreline coordinates
Declaration
public GeoMapElementCollection Surfaces(LinearDistance width, GraphicalRepresentation graphicalRepresentation)
Parameters
| Type | Name | Description |
|---|---|---|
| LinearDistance | width | Width of the runway |
| GraphicalRepresentation | graphicalRepresentation | Type of geometry that defines the graphical representation |
Returns
| Type | Description |
|---|---|
| GeoMapElementCollection | Collection of GeoMapElements |
Exceptions
| Type | Condition |
|---|---|
| NullReferenceException | If either parameter is null |