Back to Devexpress

CartesianSourceCoordinateSystem Class

windowsforms-devexpress-dot-xtramap-495a6207.md

latest3.3 KB
Original Source

CartesianSourceCoordinateSystem Class

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

Declaration

csharp
public class CartesianSourceCoordinateSystem :
    SourceCoordinateSystem
vb
Public Class CartesianSourceCoordinateSystem
    Inherits SourceCoordinateSystem

The following members return CartesianSourceCoordinateSystem objects:

Remarks

An object of CartesianSourceCoordinateSystem class can be assigned to the CoordinateSystemDataAdapterBase.SourceCoordinateSystem property.

Example

View Example

csharp
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();
}
vb
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

Inheritance

Object SourceCoordinateSystem CartesianSourceCoordinateSystem

See Also

CartesianSourceCoordinateSystem Members

DevExpress.XtraMap Namespace