ArcGIS API for WPF - Library Reference
FromGeographic Method
See Also  Send comments on this topic
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
)

Parameters

geo
Geometry in geographic coordinates.

Return Value

Geometry projected to WebMercator

Exceptions

ExceptionDescription
System.ArgumentException 

Remarks

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

Requirements

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

See Also

© ESRI, Inc. All Rights Reserved.