Converts a Web ADF spatial reference to an ArcGIS (ArcObjects) spatial reference.
Syntax
Visual Basic (Declaration) | |
---|
Public Shared Function ToISpatialReference( _
ByVal spatialReference As ESRI.ArcGIS.ADF.Web.SpatialReference.SpatialReference, _
ByVal context As ESRI.ArcGIS.Server.IServerContext _
) As ESRI.ArcGIS.Geometry.ISpatialReference |
Visual Basic (Usage) | Copy Code |
---|
Dim spatialReference As ESRI.ArcGIS.ADF.Web.SpatialReference.SpatialReference
Dim context As ESRI.ArcGIS.Server.IServerContext
Dim value As ESRI.ArcGIS.Geometry.ISpatialReference
value = Converter.ToISpatialReference(spatialReference, context) |
C# | |
---|
public static ESRI.ArcGIS.Geometry.ISpatialReference ToISpatialReference(
ESRI.ArcGIS.ADF.Web.SpatialReference.SpatialReference spatialReference,
ESRI.ArcGIS.Server.IServerContext context
) |
Parameters
- spatialReference
- The Web ADF SpatialReference to convert.
- context
- The ArcGIS Server context (IServerContext), available when working with Local connections to ArcGIS Server.
Return Value
The ArcGIS spatial reference (
ISpatialReference) with the equivalent properties.
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also