Back to Devexpress

ShapefileDataAdapter.LoadPrjFile() Method

windowsforms-devexpress-dot-xtramap-dot-shapefiledataadapter-ef4d363b.md

latest2.8 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

csharp
[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()
vb
<Obsolete("The parameterless LoadPrjFile method is obsolete now. Use the static LoadPrjFile with the Uri argument method instead")>
<PreferableMember("ShapefileDataAdapter", "LoadPrjFile", "")>
<Browsable(False)>
<EditorBrowsable(EditorBrowsableState.Never)>
Public Function LoadPrjFile As SourceCoordinateSystem

Returns

TypeDescription
SourceCoordinateSystem

A SourceCoordinateSystem class descendant object.

|

Example

View Example

csharp
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();
}
vb
Private Sub SetGeoMapCartesianData()
    imageLayer.Visible = True

    Dim baseUri As 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()
End Sub

See Also

ShapefileDataAdapter Class

ShapefileDataAdapter Members

DevExpress.XtraMap Namespace