Skip to main content
A newer version of this page is available. .

ShapefileDataAdapter Class

Data adapter that provides data from a shapefile.

Namespace: DevExpress.Xpf.Map

Assembly: DevExpress.Xpf.Map.v18.2.dll

Declaration

public class ShapefileDataAdapter :
    CoordinateSystemDataAdapterBase

Remarks

Currently, the following shapefile element types are supported.

  • Point
  • PolyLine
  • Polygon
  • Multipoint
  • PointZ (the Z value is ignored)
  • PolylineZ (the Z value is ignored)
  • PolygonZ (the Z value is ignored)
  • MultipointZ (the Z value is ignored)
  • PointM (the M value is ignored)
  • PolylineM (the M value is ignored)
  • PolygonM (the M value is ignored)
  • MultipointM (the M value is ignored)

For more information about Shapefile element types, refer to the ERSI Shapefile Technical Description

For more information about this data adapter, refer to the Load Vector Data from a Shapefile topic.

Example

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.
<dxm:VectorLayer x:Name="mapLayer" ShapeFill="Gray">
    <dxm:ShapefileDataAdapter FileUri="Data/Countries.shp"/>
</dxm:VectorLayer>

The following code snippets (auto-collected from DevExpress Examples) contain references to the ShapefileDataAdapter 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.

See Also