ShapefileDataAdapter.LoadPrjFile(Uri) Method
SECURITY NOTE
Loading coordinate system metadata from files passed as URLs to the Suppress Control Requests to Download Data from External URLsLoadPrjFile
method may create security issues. Review the following help topic and learn how to spot, analyze, and prohibit unwanted download requests:
Loads coordinate system metadata from the *.PRJ file.
Namespace: DevExpress.XtraMap
Assembly: DevExpress.XtraMap.v23.2.dll
NuGet Package: DevExpress.Win.Map
Declaration
Parameters
Name | Type | Description |
---|---|---|
prjFileUri | Uri | A Uri object that is the URI to the *.PRJ file. |
Returns
Type | Description |
---|---|
SourceCoordinateSystem | A SourceCoordinateSystem class descendant that contains the content of the *.PRJ file. |
Remarks
Call the ShapefileDataAdapter.LoadPrjFromStream(Stream) method to load coordinate system metadata from the specified stream.
Refer to the Shapefile topic for more information about *.PRJ and shapefiles.
Example
data.Add(new MapData() {
Name = "LoadPrjFile( ) calling loaded coordinate system",
FileUri = new Uri(baseUri, "../../Shapefiles/Lambert/Belize.shp"),
CoordinateSystem = ShapefileDataAdapter.LoadPrjFile(new Uri(
baseUri,
"../../Shapefiles/Lambert/Projection.prj"))
});
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the LoadPrjFile(Uri) method.
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.