ShapefileDataAdapter.FileUri Property

Gets or sets an Uri that defines the location of a shapefile.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v21.1.dll


public Uri FileUri { get; set; }

Property Value

Type Default Description


A Uri object that contains a shapefile Uri.


To load shape data from a shapefile do the following.

View Example

    // Create data for the MapLayer.
    MapLayer.Data = CreateData();
private MapDataAdapterBase CreateData() {
    Uri baseUri = new Uri(System.Reflection.Assembly.GetEntryAssembly().Location);

    // Create an adapter to load data from shapefile.
    ShapefileDataAdapter adapter = new ShapefileDataAdapter() {
        FileUri = new Uri(baseUri, filename)

    return adapter;
See Also