Show / Hide Table of Contents

Class GeoArc

Handling of a geographical arc

Inheritance
System.Object
GeoMapElement
GeoArc
Implements
IGeoMapElement
Inherited Members
GeoMapElement.UniqueId
GeoMapElement.Color
GeoMapElement.Thickness
GeoMapElement.Name
GeoMapElement.Description
GeoMapElement.DataList
GeoMapElement.AddDataList(String, String)
GeoMapElement.AssignProperties(MapObjectProperties)
GeoMapElement.Draw()
Namespace: FpAssistantCore.Geographical
Assembly: FpAssistantCoreScl.dll
Syntax
public class GeoArc : GeoMapElement, IGeoMapElement
Remarks

The arc will be defined in a clockwise direction

Constructors

View Source

GeoArc(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 Source

CentreCoordinate

Geocoordinate of arc centre

Declaration
public GeoCoordinate CentreCoordinate { get; set; }
Property Value
Type Description
GeoCoordinate

Centre coordinate of the arc

View Source

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

View Source

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

View Source

Radius

Radius of the arc to draw

Declaration
public LinearDistance Radius { get; set; }
Property Value
Type Description
LinearDistance

Radius of the arc

View Source

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 Source

AsGmlPosCentreCoordinate(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

View Source

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

Implements

IGeoMapElement
  • View Source
In This Article
Back to top Copyright 2018-2024 CADology Limited