windowsforms-devexpress-dot-xtramap-495a6207.md
This class allows use of the Cartesian coordinate system for the Map Control.
Namespace : DevExpress.XtraMap
Assembly : DevExpress.XtraMap.v25.2.dll
NuGet Package : DevExpress.Win.Map
public class CartesianSourceCoordinateSystem :
SourceCoordinateSystem
Public Class CartesianSourceCoordinateSystem
Inherits SourceCoordinateSystem
The following members return CartesianSourceCoordinateSystem objects:
An object of CartesianSourceCoordinateSystem class can be assigned to the CoordinateSystemDataAdapterBase.SourceCoordinateSystem property.
void SetCartesianMapCartesianData() {
imageLayer.Visible = false;
Uri baseUri = new Uri(System.Reflection.Assembly.GetEntryAssembly().Location);
Adapter.FileUri = new Uri(baseUri, cartesianMapCartesianDataFile);
Adapter.SourceCoordinateSystem = new CartesianSourceCoordinateSystem();
mapControl.CoordinateSystem = new CartesianMapCoordinateSystem();
}
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();
}
Private Sub SetCartesianMapCartesianData()
imageLayer.Visible = False
Dim baseUri As New Uri(System.Reflection.Assembly.GetEntryAssembly().Location)
Adapter.FileUri = New Uri(baseUri, cartesianMapCartesianDataFile)
Adapter.SourceCoordinateSystem = New CartesianSourceCoordinateSystem()
mapControl.CoordinateSystem = New CartesianMapCoordinateSystem()
End Sub
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
Object SourceCoordinateSystem CartesianSourceCoordinateSystem
See Also