Skip to main content
A newer version of this page is available. .

ShapefileDataAdapter.LoadPrjFile(Uri) Method

Loads coordinate system metadata from the *.PRJ file.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v19.2.dll

Declaration

public static SourceCoordinateSystem LoadPrjFile(
    Uri prjFileUri
)

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

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

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.

See Also