转换为十进制度数 (DD)
Contents
[
Hide
]
使用 Aspose.GIS for .NET 库计算以十进制度数 (DD) 格式表示的位置。 GeoConvert 类 允许您将纬度/经度坐标转换为 DD 格式,反之亦然。
在线示例
Aspose.GIS for .NET / C# 向您免费提供在线 “转换为 DD” 应用程序,您可以在其中调查其功能以及它如何工作。
代码示例 - 转换为 DD
以下代码片段向您展示了如何转换为 DD(十进制度数)。
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 Decimal Degrees (DD) format | |
var position = GeoConvert.AsPointText(74.84, 172.13, PointFormats.DecimalDegrees); | |
Console.WriteLine(position); |
平台 - .NET / C#
我们支持 Windows 上的 Framework 4.7 或更高版本,以及 Windows 或 Linux 上的 .NET Core 2.0 或更高版本。