Back to Devexpress

How to: Load Data from a Shapefile

wpf-10990-controls-and-libraries-map-control-examples-vector-data-providing-data-how-to-load-data-from-a-shapefile.md

latest1.7 KB
Original Source

How to: Load Data from a Shapefile

  • Jun 07, 2019

To load a shapefile to the map do the following.

  1. Create a ShapefileDataAdapter object and assign it to the VectorLayer.Data property.
  2. Specify the ShapefileDataAdapter.FileUri property of the object.
xaml
<dxm:VectorLayer x:Name="mapLayer" ShapeFill="Gray">
    <dxm:ShapefileDataAdapter FileUri="Data/Countries.shp"/>
</dxm:VectorLayer>

See Also

How to: Load Data from a KML File

How to: Load Data from a SQL Geometry Datasource

How to: Manually Generate Vector Items

How to: Automatically Generate Vector Items from a Datasource

How to: Automatically Generate Bubble Chart Items from a Datasource

How to: Automatically Generate Pie Chart Items from a Datasource