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.Xpf.Map
Assembly: DevExpress.Xpf.Map.v18.2.dll
Declaration
[Obsolete("The parameterless LoadPrjFile method is obsolete now. Use the static LoadPrjFile with the Uri argument method instead", true)]
[PreferableMember("ShapefileDataAdapter", "LoadPrjFile", "")]
[Browsable(false)]
public SourceCoordinateSystem LoadPrjFile()
Returns
Type | Description |
---|---|
SourceCoordinateSystem | A SourceCoordinateSystem class descendant object. |
Remarks
This API is now obsolete. Use the static ShapefileDataAdapter.LoadPrjFile method instead.
Example
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-automatically-load-a-cartesian-data-shapefile-to-geo-map-t208827.
data_Renamed.Add(New MapData() With {.Name = "LoadPrjFile( ) loaded coordinate system", .FileUri = New Uri(baseUri, "../../Shapefiles/Lambert/Belize.shp"), .CoordinateSystem = ShapefileDataAdapter.LoadPrjFile(New Uri(baseUri, "../../Shapefiles/Lambert/Projection.prj"))})
See Also