ArcGIS Explorer Component Help |
GeographicTransformation..::.CoordinateSystem2 Property |
GeographicTransformation Class Example See Also |
Gets the second of a pair of CoordinateSystems to which the transformation applies.
Namespace:
ESRI.ArcGISExplorer.GeometryAssembly: ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)
Syntax
C# |
---|
public CoordinateSystem CoordinateSystem2 { get; } |
Visual Basic (Declaration) |
---|
Public ReadOnly Property CoordinateSystem2 As CoordinateSystem |
Field Value
A reference to the second coordinate system.Remarks
A GeographicTransformation object represents a specific function that applies to transformations between two specific CoordinateSystems. The transformation is applicable when projecting either from CoordinateSystem1 to CoordinateSystem2, or vice-versa.
Examples
The code below shows how you can create a GeographicTransformation directly if you know
the unique identifier. After reporting a few properties, the transformation is then added
to the collection held by the Map object, so that it can be used in on-the-fly projections.
CopyC#
// Create a GeographicTransformation with a known identifier - the code below will // create the transformation 1139, suitable for locations in Finland and Norway. GeographicTransformation ed1950ToWGS84 = new GeographicTransformation(1139); System.Diagnostics.Debug.WriteLine("The GeographicTransformation:"); System.Diagnostics.Debug.WriteLine(ed1950ToWGS84.Name); System.Diagnostics.Debug.WriteLine("Converts between the coordinate systems:"); System.Diagnostics.Debug.WriteLine(ed1950ToWGS84.CoordinateSystem1.Name); System.Diagnostics.Debug.WriteLine("and"); System.Diagnostics.Debug.WriteLine(ed1950ToWGS84.CoordinateSystem2.Name); // Add the transformation to the Map for use in on-the-fly transformations. // The variable 'currentMap' should point to the current MapDisplay object. // We add this transformation to the 2D transformations collection. currentDisplay.GeographicTransformations2D.Add(ed1950ToWGS84);
CopyVB.NET
' Create a GeographicTransformation with a known identifier - the code below will ' create the transformation 1139, suitable for locations in Finland and Norway. Dim ed1950ToWGS84 As New GeographicTransformation(1139) System.Diagnostics.Debug.WriteLine("The GeographicTransformation:") System.Diagnostics.Debug.WriteLine(ed1950ToWGS84.Name) System.Diagnostics.Debug.WriteLine("Converts between the coordinate systems:") System.Diagnostics.Debug.WriteLine(ed1950ToWGS84.CoordinateSystem1.Name) System.Diagnostics.Debug.WriteLine("and") System.Diagnostics.Debug.WriteLine(ed1950ToWGS84.CoordinateSystem2.Name) ' Add the transformation to the Map for use in on-the-fly transformations. ' The variable 'currentMap' should point to the current MapDisplay object. ' We add this transformation to the 2D transformations collection. currentDisplay.GeographicTransformations2D.Add(ed1950ToWGS84)