Class GeoArc
Handling of a geographical arc
Implements
Inherited Members
Namespace: FpAssistantCore.Geographical
Assembly: FpAssistantCoreScl.dll
Syntax
public class GeoArc : GeoMapElement, IGeoMapElement
Remarks
The arc will be defined in a clockwise direction
Constructors
View SourceGeoArc(GeoCoordinate, LinearDistance, CompassBearing, Angle)
Constructor to initalise the GeoArc with a centre start angle and angle to draw through
Declaration
public GeoArc(GeoCoordinate centreCoordinate, LinearDistance radiusOfArc, CompassBearing startAngle, Angle angleTodraw)
Parameters
Type | Name | Description |
---|---|---|
GeoCoordinate | centreCoordinate | Centre coordinate of the arc |
LinearDistance | radiusOfArc | Radius of the arc |
CompassBearing | startAngle | Angle to start drawing arc - Compass Angles |
Angle | angleTodraw | Angle to draw along clockwise from |
Properties
View SourceCentreCoordinate
Geocoordinate of arc centre
Declaration
public GeoCoordinate CentreCoordinate { get; set; }
Property Value
Type | Description |
---|---|
GeoCoordinate | Centre coordinate of the arc |
DrawAngleCW
Angle range to draw the arc
Declaration
public Angle DrawAngleCW { get; set; }
Property Value
Type | Description |
---|---|
Angle |
Remarks
Angle is in degrees +ve implies clockwise
EndAngle
Angle to end drawing the arc from
Declaration
public CompassBearing EndAngle { get; }
Property Value
Type | Description |
---|---|
CompassBearing |
Remarks
0 degrees is north cardinal / Calculated by adding start angle and draw angle
Radius
Radius of the arc to draw
Declaration
public LinearDistance Radius { get; set; }
Property Value
Type | Description |
---|---|
LinearDistance | Radius of the arc |
StartAngle
Angle to start drawing the arc from
Declaration
public CompassBearing StartAngle { get; set; }
Property Value
Type | Description |
---|---|
CompassBearing |
Remarks
0 degrees is north cardinal
Methods
View SourceAsGmlPosCentreCoordinate(GmlDimension)
Creates a value for GML pos element
Declaration
public string AsGmlPosCentreCoordinate(GmlDimension gmlDimension)
Parameters
Type | Name | Description |
---|---|---|
GmlDimension | gmlDimension | Controls if 2D or 3D is required for GML pos |
Returns
Type | Description |
---|---|
System.String | String of the GML pos element value |
AsGmlRadius(LinearDistanceUnits)
Creates a value for GML radius element
Declaration
public string AsGmlRadius(LinearDistanceUnits linearDistanceUnits)
Parameters
Type | Name | Description |
---|---|---|
LinearDistanceUnits | linearDistanceUnits | Unit of the return radius value in the GML string |
Returns
Type | Description |
---|---|
System.String | String of the GML radius element value |
Remarks
Always return in meters