转换为度分秒 (DMS)
Contents
[
Hide
]
使用 Aspose.GIS for .NET 库计算以度分秒 (DMS) 格式表示的位置。 GeoConvert 类 允许您将纬度/经度坐标转换为 DMS 格式,反之亦然。
在线示例
Aspose.GIS for .NET / C# 在线免费提供 “转换为 DMS” 应用程序,您可以在其中调查其功能和质量如何运作。
代码示例 - 转换为 DMS
以下代码片段向您展示了如何转换为 DMS(度分秒)。
This file contains hidden or 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); |
平台 - .NET / C#
我们支持 Windows 上的 Framework 4.7 或更高版本,以及 Windows 或 Linux 上的 .NET Core 2.0 或更高版本