GeoPoint Class

A point, such as a city.

public sealed class GeoPoint : GeoGeometry
Inheritance
GeoGeometry GeoPoint

Constructors

NameDescription
GeoPoint(GeoPosition)Initializes a new instance of the GeoPoint class.

GeoPoint(GeoPosition)

GeoPoint.cs

Initializes a new instance of the GeoPoint class.

public GeoPoint(GeoPosition position)

Parameters

position GeoPosition
The position.

Properties

NameDescription
PositionGets the position.
TypeGets the type of the geometry.

Position

GeoPoint.cs

Gets the position.

public GeoPosition Position { get; }

Property value

GeoPosition

Gets the type of the geometry.

public override GeoGeometryType Type { get; }

Property value

GeoGeometryType

Methods

NameDescription
GetPositions()Gets the positions of the geometry: every position of every point, line and ring, in order.

GetPositions()

GeoPoint.cs

Gets the positions of the geometry: every position of every point, line and ring, in order.

public override IEnumerable<GeoPosition> GetPositions()

Returns

IEnumerable<GeoPosition> The positions.