تبدیلکننده GDB به KML
Contents
[
Hide
]
از کتابخانه Aspose.GIS برای .NET برای تبدیل فرمت فایل GDB به KML استفاده کنید.
نمونه زنده
Aspose.GIS برای .NET / C# برنامه “تبدیلکننده GDB به KML” را بهصورت آنلاین و رایگان در اختیار شما قرار میدهد، جایی که میتوانید عملکرد و کیفیت آن را بررسی کنید.
نمونه کد - تبدیلکننده GDB به KML
قطعه کد زیر نحوه پیادهسازی تبدیلکننده GDB به KML را نشان میدهد. اگر یک سیستم مختصات مکانی را برای لایه مقصد KML مشخص کنید، همه هندسهها به آن تبدیل میشوند.
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 KML. | |
VectorLayer.Convert("source.gdbtable", Drivers.FileGdb, "destination.kml", Drivers.Kml, options); |
این نمونه امکانات کلی را نشان میدهد. Aspose.GIS برای .NET دارای گزینههای گستردهای برای تبدیل فایلها است. هر فرمت مبتنی بر بردار دارای گزینههای خواندن / نوشتن خود است که از کلاس DriverOptions به ارث رسیده است.
پلتفرم - .NET / C#
ما از Framework 4.7 یا بالاتر در ویندوز، و .NET Core 2.0 یا بالاتر در ویندوز یا لینوکس پشتیبانی میکنیم.