แปลงเป็น องศา นาที วินาที (DMS)
Contents
[
Hide
]
ใช้ไลบรารี Aspose.GIS for .NET เพื่อคำนวณตำแหน่งในรูปแบบ องศา นาที วินาที (DMS) คลาส GeoConvert ช่วยให้คุณแปลงพิกัด Latitude/Longitude เป็นรูปแบบ DMS และกลับกันได้
ตัวอย่างสด
Aspose.GIS for .NET / C# นำเสนอแอปพลิเคชัน “Convert to 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#
เราสนับสนุน Framework 4.7 หรือใหม่กว่าภายใต้ Windows และ .NET Core 2.0 หรือใหม่กว่าภายใต้ Windows หรือ Linux