Show / Hide Table of Contents

Class GeoCircle

Handling of a geographical circle defined by a GeoCoordinate and a radius

Inheritance
System.Object
GeoMapElement
GeoCircle
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 GeoCircle : GeoMapElement, IGeoMapElement

Constructors

View Source

GeoCircle(GeoCoordinate, LinearDistance)

Constructor to initialise the GeoCircle with a centre coordinate and radius

Declaration
public GeoCircle(GeoCoordinate centreCoordinate, LinearDistance radius)
Parameters
Type Name Description
GeoCoordinate centreCoordinate

geographical coordinate of the map icon to be shown

LinearDistance radius

Radius of the circle

View Source

GeoCircle(GeoCoordinate, LinearDistance, LinearDistance)

Constructor to initialise the GeoCircle with a centre coordinate, elevation and radius

Declaration
public GeoCircle(GeoCoordinate centreCoordinate, LinearDistance radius, LinearDistance elevation)
Parameters
Type Name Description
GeoCoordinate centreCoordinate

geographical coordinate of the map icon to be shown

LinearDistance radius

Radius of the circle

LinearDistance elevation

Elevation to top of the circle

Fields

View Source

ResolutionMaximum

Highest resolution to draw a circle used in AsGeography()

Declaration
public const int ResolutionMaximum = null
Field Value
Type Description
System.Int32
View Source

ResolutionMinimum

Smallest resolution to draw a circle used in AsGeography()

Declaration
public const int ResolutionMinimum = null
Field Value
Type Description
System.Int32
Remarks

Set to 3 hence a triangle will be drawn

Properties

View Source

CentreCoordinate

Geocoordinate centre of the circle

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

Centre coordinate of the circle

View Source

Elevation

Elevation

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

Elevation above MSL

View Source

Radius

Radius (distance from centre to circumference) of circle

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

Radius of the circle

Methods

View Source

AsGeography(Int32)

Creates a geography type LINESTRING()

Declaration
public string AsGeography(int resolution)
Parameters
Type Name Description
System.Int32 resolution

Number of segments that the circle will be constructed

Returns
Type Description
System.String

String of the geography

Remarks

Will create a LINESTRING of the circle / resolution will be set between 3 and 18

View Source

AsGmlPos(GmlDimension)

Creates a value for GML pos element

Declaration
public string AsGmlPos(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