Click or drag to resize

CoordinatePart Constructor (Int32, Double, CoordinatesPosition)

Creates a populated CoordinatePart from a Degrees Minutes Seconds part.

Namespace:  CoordinateSharp
Assembly:  CoordinateSharp (in CoordinateSharp.dll) Version: 2.12.1.1
Syntax
C#
public CoordinatePart(
	int deg,
	double minSec,
	CoordinatesPosition pos
)

Parameters

deg
Type: SystemInt32
Degrees
minSec
Type: SystemDouble
Decimal Minutes
pos
Type: CoordinateSharpCoordinatesPosition
Coordinate part position
Examples
The following example creates a populated latitudinal coordinate part from Decimal Degree Minute values and assigns it to a Coordinate object.
//Create a new default coordinate
Coordinate c = new Coordinate();

//Create a coordinate part using the Decimal Degree latitude N25 36.24854°.
CoordinatePart cp = new CoordinatePart(25, 36.24854, CoordinatesPosition.N);

//Assign the latitudinal value to the coordinate.
c.Latitude = cp;
See Also