Skip to main content

ShapefileDataAdapter.FileUri Property

SECURITY NOTE

Downloading map data passed through URLs specified by the FileUri property may create security issues. Review the following help topic and learn how to spot, analyze, and prohibit unwanted download requests:

Suppress Control Requests to Download Data from External URLs

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

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v24.2.dll

Declaration

[DefaultValue(null)]
public Uri FileUri { get; set; }

Property Value

Type Default Description
Uri null

A Uri object that contains a shapefile Uri.

Example

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;
}

The following code snippets (auto-collected from DevExpress Examples) contain references to the FileUri property.

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