CoordinatePart(Int32, Int32, Double, CoordinatesPosition) Constructor
Creates a populated CoordinatePart from a Degrees Minutes Seconds value.
Namespace: CoordinateSharpAssembly: CoordinateSharp (in CoordinateSharp.dll) Version: 3.1.1.1
XMLNS for XAML: Not mapped to an xmlns.
public CoordinatePart(
int deg,
int min,
double sec,
CoordinatesPosition pos
)
Parameters
- deg Int32
- Degrees
- min Int32
- Minutes
- sec Double
- Seconds
- pos CoordinatesPosition
- Coordinate part position
The following example creates a populated latitudinal coordinate part from Degrees Minutes Seconds values and assigns it to a Coordinate object.
//Create a new default coordinate
Coordinate c = new Coordinate();
//Create a coordinate part using the Degrees Minutes Seconds latitude N25 36 24.657°.
CoordinatePart cp = new CoordinatePart(25, 36, 24.657, CoordinatesPosition.N);
//Assign the latitudinal value to the coordinate.
c.Latitude = cp;