ArcGIS Runtime SDK for WPF - Library Reference
FromGeographic Method
See Also 
ESRI.ArcGIS.Client.Projection Namespace > WebMercator Class : FromGeographic Method

geo
Geometry in geographic coordinates.
Helper method for quickly projecting coordinates from geographic WGS84 coordinates (WKID=4326) to web mercator (WKID=102100).

Syntax

Visual Basic (Declaration) 
Public Function FromGeographic( _
   ByVal geo As Geometry _
) As Geometry
C# 
public Geometry FromGeographic( 
   Geometry geo
)

Remarks

Latitude values must fall within -90 and 90. X values outside +/-180 will assumed going round earth. ex. 181W is equivalent to 179E.

Parameters

geo
Geometry in geographic coordinates.

Return Value

Geometry projected to WebMercator

Exceptions

ExceptionDescription
System.ArgumentExceptionThe exception that is thrown when one of the arguments provided to a method is not valid.

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8

See Also

© ESRI, Inc. All Rights Reserved.