تبدیلکننده GDB به CSV
Contents
[
Hide
]
از کتابخانه Aspose.GIS برای .NET برای تبدیل فرمت فایل GDB به CSV استفاده کنید.
نمونه زنده
Aspose.GIS برای .NET / C# برنامه “تبدیلکننده GDB به CSV” را بهصورت آنلاین و رایگان در اختیار شما قرار میدهد، جایی که میتوانید عملکرد و کیفیت آن را بررسی کنید.
نمونه کد - تبدیلکننده GDB به CSV
قطعه کد زیر نحوه پیادهسازی تبدیلکننده GDB به CSV را نشان میدهد. اگر یک سیستم مختصات مکانی برای لایه CSV مقصد مشخص کنید، همه هندسهها به آن تبدیل میشوند.
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 | |
// 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 یا بالاتر در ویندوز، و .NET Core 2.0 یا بالاتر در ویندوز یا لینوکس پشتیبانی میکنیم.