Skip to content

CircleGeometryInfo

Namespace: ThinkGeo.UI.Blazor

Encapsulates geometry data for a circle drawn or modified by the edit overlay.

public class CircleGeometryInfo : GeometryInfo

Inheritance object → GeometryInfo → CircleGeometryInfo

Properties

Center

Gets the center of the circle in map coordinates.

public PointShape Center { get; }

Property Value

PointShape

RadiusInMapUnits

Gets the circle radius in the map's native projection units. This value is affected by map projection distortion and does not represent a true ground distance. Use CircleGeometryInfo.GetGeodeticRadius(DistanceUnit, DistanceCalculationMode) for an accurate real-world measurement.

public double RadiusInMapUnits { get; }

Property Value

double

GeometryType

Gets the specialized geometry type.

public EditOverlayGeometryType GeometryType { get; }

Property Value

EditOverlayGeometryType

MapProjectionString

Gets the projection string of the map coordinates that the geometry belongs to.

public string MapProjectionString { get; }

Property Value

string

Constructors

CircleGeometryInfo(PointShape, double, string)

Initializes a new instance of CircleGeometryInfo.

public CircleGeometryInfo(PointShape center, double radiusInMapUnits, string mapProjectionString)

Parameters

center PointShape
The circle center in map coordinates.

radiusInMapUnits double
The circle radius in the map's native projection units.

mapProjectionString string
The projection string of the map coordinates.

Methods

GetGeodeticRadius(DistanceUnit, DistanceCalculationMode)

Returns the geodetically-correct circle radius, compensating for map projection distortion.

public double GetGeodeticRadius(DistanceUnit unit, DistanceCalculationMode mode)

Parameters

unit DistanceUnit
The distance unit for the returned value.

mode DistanceCalculationMode

        The distance calculation mode.
        Defaults to  for accurate geodetic results.

Returns

double