แปลงเป็น องศา นาที วินาที (DMS)

ใช้ไลบรารี Aspose.GIS for .NET เพื่อคำนวณตำแหน่งในรูปแบบ องศา นาที วินาที (DMS) คลาส GeoConvert ช่วยให้คุณแปลงพิกัด Latitude/Longitude เป็นรูปแบบ DMS และกลับกันได้

ตัวอย่างสด

Aspose.GIS for .NET / C# นำเสนอแอปพลิเคชัน “Convert to DMS” ฟรีออนไลน์ ที่คุณสามารถตรวจสอบฟังก์ชันการทำงานและคุณภาพได้

DMS to {Extension2} Converter App

ตัวอย่างโค้ด - แปลงเป็น DMS

สคริปต์โค้ดต่อไปนี้แสดงวิธีการแปลงเป็น DMS (องศา นาที วินาที)

// 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