ArcGIS Explorer Component Help |
SoapConverter..::.GeographicTransformationToSoap<(Of <(TSoap>)>) Method (GeographicTransformation) |
SoapConverter Class Example See Also |
Converts an ArcGIS Explorer GeographicTransformation object to an ArcGIS Server SOAP GeoTransformation object.
Namespace:
ESRI.ArcGISExplorer.GeometryAssembly: ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)
Syntax
C# |
---|
public static TSoap GeographicTransformationToSoap<TSoap>( GeographicTransformation transformation ) |
Visual Basic (Declaration) |
---|
Public Shared Function GeographicTransformationToSoap(Of TSoap) ( _ transformation As GeographicTransformation _ ) As TSoap |
Parameters
- transformation
- Type: ESRI.ArcGISExplorer.Geometry..::.GeographicTransformation
The ArcGIS Explorer GeographicTransformation to convert.
Type Parameters
- TSoap
- The SOAP GeoTransformation Type.
Return Value
A SOAP GeoTransformation object of type TSoap based on the properties of the transformation.Remarks
Use this method to convert ArcGIS Explorer GeographicTransformation objects into corresponding SOAP objects. You must specify the SOAP GeoTransformation type as the type parameter for this generic method by passing in the SOAP Type defined in your web service reference.
Examples
The code below shows you how to convert ArcGIS Explorer GeographicTransformation to a SOAP GeoTransformation
by using the GeographicTransformationToSoap generic method. ArcGIS Explorer Types are fully-qualified to avoid confusion, with
the exception of the SOAP types - you must ensure you have a using/Imports statement to your
SOAP web reference namespace or fully-qualify the SOAP types in your own code.
CopyC#
// Remember you will need a using (Imports in Visual Basic) statement to the namespace of the SOAP definitions // for your web references, e.g. the namespace containing the GeoTransformation SOAP type. // Create an ArcGIS Explorer GeographicTransformation. ESRI.ArcGISExplorer.Geometry.GeographicTransformation xoGeographicTransformation = new ESRI.ArcGISExplorer.Geometry.GeographicTransformation(1196); // Convert to a SOAP SpatialReference with CoordinateSystemToSoap<SOAP Type>. GeoTransformation soapGeoTransformation = SoapConverter.GeographicTransformationToSoap<GeoTransformation>(xoGeographicTransformation);
CopyVB.NET
' Remember you will need a using (Imports in Visual Basic) statement to the namespace of the SOAP definitions ' for your web references, e.g. the namespace containing the GeoTransformation SOAP type. ' Create an ArcGIS Explorer GeographicTransformation. Dim xoGeographicTransformation As ESRI.ArcGISExplorer.Geometry.GeographicTransformation = New ESRI.ArcGISExplorer.Geometry.GeographicTransformation(1196) ' Convert to a SOAP SpatialReference with CoordinateSystemToSoap(Of SOAP Type). Dim soapGeoTransformation As GeoTransformation = SoapConverter.GeographicTransformationToSoap(Of GeoTransformation)(xoGeographicTransformation)