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

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.v19.1.dll

Declaration

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

Returns

Type Description
SourceCoordinateSystem

A SourceCoordinateSystem class descendant object.

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