ArcGIS API for Windows Phone - 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
)

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.ArgumentException 

Requirements

Target Platforms:Windows Phone 7

See Also

© ESRI, Inc. All Rights Reserved.