KmlFileDataAdapter Class
Data adapter that provides data from a KML file.
Namespace: DevExpress.XtraMap
Assembly: DevExpress.XtraMap.v18.1.dll
Declaration
Remarks
For more information about this data adapter, refer to the Load Vector Data from a KML File topic.
Example
To load shape data from a KML file do the following.
- Create a KmlFileDataAdapter object.
- Specify its KmlFileDataAdapter.FileUri property.
- Assign this object as the VectorItemsLayer.Data property value.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-load-data-from-a-kml-file-t140303
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WinForms_MapControl_KmlFileDataAdapter {
static class Program {
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main() {
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the KmlFileDataAdapter class.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.