ShapefileDataAdapter.LoadPrjFile(Uri) Method
Loads coordinate system metadata from the *.PRJ file.
Namespace: DevExpress.XtraMap
Assembly: DevExpress.XtraMap.v19.1.dll
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 representing the contents of the *.PRJ file. |
Remarks
For more information about *.PRJ and shapefiles, refer to the Shapefile topic.
Example
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-automatically-load-a-cartesian-data-shapefile-onto-a-geo-map-t208696
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.