Convert to Degree Minute Seconds (DMS)
Contents
[
Hide
]
Use the Aspose.GIS for .NET library to calculate a position in a Degree Minute Seconds (DMS) format. The GeoConvert class allows you to convert Latitude/Longitude coordinates to DMS format and vice versa.
Live Example
Aspose.GIS for .NET / C# presents you online free the “Convert to DMS” application, where you may to investigate the functionality and quality it works.
Code sample - Convert to DMS
The following code snippet shows you how to convert to DMS (Degree Minute Seconds).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-gis/Aspose.GIS-for-.NET | |
// Calculate a position in a Degree Minute Seconds (DMS) format | |
var position = GeoConvert.AsPointText(74.84, 172.13, PointFormats.DegreeMinutesSeconds); | |
Console.WriteLine(position); |
Platform - .NET / C#
We supports Framework 4.7 or later under Windows, and .NET Core 2.0 or later under Windows or Linux