FileDataAdapterBase.FileUri Property

Gets or sets a URI that defines the location of a vector data file.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v20.1.dll

Declaration

[DefaultValue(null)]
public Uri FileUri { get; set; }
<DefaultValue(Nothing)>
Public Property FileUri As Uri

Property Value

Type Default Description
Uri

null

A Uri object that that specifies a path to a vector data file.

Examples

To load shape data from a shapefile do the following.

    // 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