ShapefileDataAdapter.LoadPrjFile(Uri) Method
SECURITY NOTE
Loading coordinate system metadata from files passed as URLs to the Load
method 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
Loads coordinate system metadata from the *.PRJ file.
Namespace: DevExpress.XtraMap
Assembly: DevExpress.XtraMap.v24.2.dll
NuGet Package: DevExpress.Win.Map
#Declaration
public static SourceCoordinateSystem LoadPrjFile(
Uri prjFileUri
)
#Parameters
Name | Type | Description |
---|---|---|
prj |
Uri | A Uri object that is the URI to the *. |
#Returns
Type | Description |
---|---|
Source |
A Source |
#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.