ממיר KML ל-CSV
Contents
[
Hide
]
השתמש בספריית Aspose.GIS עבור .NET כדי להמיר KML לפורמט קובץ CSV.
דוגמה חיה
Aspose.GIS עבור .NET / C# מציג לך באופן מקוון בחינם את היישום “ממיר KML ל-CSV”, שבו תוכל לחקור את הפונקציונליות ואת איכות העבודה שלו.
דוגמת קוד - ממיר KML ל-CSV
קטע הקוד הבא מראה לך כיצד ליישם ממיר KML ל-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 KML to CSV. | |
VectorLayer.Convert("source.kml", Drivers.Kml, "destination.csv", Drivers.Csv, options); |
דוגמה זו מציגה אפשרויות כלליות. ל-Aspose.GIS עבור .NET יש אפשרויות רחבות להמרת קבצים. לכל פורמט מבוסס וקטורים יש אפשרויות קריאה/כתיבה משלו אשר יורשות מהמחלקה DriverOptions.
פלטפורמה - .NET / C#
אנו תומכים ב-Framework 4.7 ומעלה תחת Windows, וב-.NET Core 2.0 ומעלה תחת Windows או Linux