ตัวแปลง GDB เป็น CSV
ใช้ไลบรารี Aspose.GIS สำหรับ .NET เพื่อแปลง GDB เป็นรูปแบบไฟล์ CSV
ตัวอย่างสด
Aspose.GIS สำหรับ .NET / C# นำเสนอแอปพลิเคชัน “GDB to CSV Converter” ฟรีออนไลน์ ที่คุณสามารถตรวจสอบฟังก์ชันการทำงานและคุณภาพได้
ตัวอย่างโค้ด - ตัวแปลง GDB เป็น CSV
สคริปต์โค้ดต่อไปนี้แสดงวิธีการใช้งานตัวแปลง GDB เป็น CSV หากคุณระบุระบบอ้างอิงเชิงพื้นที่สำหรับเลเยอร์ CSV ปลายทาง รูปทรงเรขาคณิตทั้งหมดจะถูกแปลงเป็นระบบนั้น
// For complete examples and data files, please go to https://github.com/aspose-gis/Aspose.GIS-for-.NET | |
// Specify conversion settings if necessary. It is optional. | |
ConversionOptions options = null; | |
// This options assigns Wgs84 to the destination layer. | |
// Conversion may throw error If destination layer does not support the Wgs84 spatial reference. So need to check. | |
if (Drivers.Shapefile.SupportsSpatialReferenceSystem(SpatialReferenceSystem.Wgs84)) | |
{ | |
options = new ConversionOptions() | |
{ | |
DestinationSpatialReferenceSystem = SpatialReferenceSystem.Wgs84, | |
}; | |
} | |
// Convert file format from GDB to CSV. | |
VectorLayer.Convert("source.gdbtable", Drivers.FileGdb, "destination.csv", Drivers.Csv, options); |
ตัวอย่างนี้แสดงความเป็นไปได้ทั่วไป Aspose.GIS สำหรับ .NET มีตัวเลือกมากมายในการ แปลงไฟล์ แต่ละรูปแบบตามเวกเตอร์มีตัวเลือกการอ่าน/เขียนของตัวเองซึ่งสืบทอดมาจากคลาส DriverOptions
แพลตฟอร์ม - .NET / C#
เราสนับสนุน Framework 4.7 หรือใหม่กว่าภายใต้ Windows และ .NET Core 2.0 หรือใหม่กว่าภายใต้ Windows หรือ Linux