Skip to main content

ShapefileDataAdapter.LoadPrjFile() Method

OBSOLETE

The parameterless LoadPrjFile method is obsolete now. Use the static LoadPrjFile with the Uri argument method instead

Loads the *.prj file data, which contains information about the coordinate system and projection.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v24.1.dll

NuGet Package: DevExpress.Win.Map

Declaration

[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("The parameterless LoadPrjFile method is obsolete now. Use the static LoadPrjFile with the Uri argument method instead")]
[PreferableMember("ShapefileDataAdapter", "LoadPrjFile", "")]
public SourceCoordinateSystem LoadPrjFile()

Returns

Type Description
SourceCoordinateSystem

A SourceCoordinateSystem class descendant object.

Example

View Example

void SetGeoMapCartesianData() {
    imageLayer.Visible = true;

    Uri baseUri = new Uri(System.Reflection.Assembly.GetEntryAssembly().Location);
    Adapter.FileUri = new Uri(baseUri, geoMapCartesianDataShpFile);
    Adapter.SourceCoordinateSystem = ShapefileDataAdapter.LoadPrjFile(new Uri(baseUri, geoMapCartesianDataPrjFile));

    mapControl.CoordinateSystem = new GeoMapCoordinateSystem();
}
See Also