ESRI.ArcGIS.Mobile
Coordinate Class
Members  Example  See Also  Send Feedback
ESRI.ArcGIS.Mobile.Geometries Namespace : Coordinate Class

Represents a location defined by an X and Y value using current spatial reference

Syntax

Visual Basic (Declaration) 
Public NotInheritable Class Coordinate 
C# 
public sealed class Coordinate 

Example

The example below demonstrates how to translate GPS position to double based coordinate and then to an integer coordinate in order to display it on the map.
C#Copy Code
// Converts GPS position to a mobile geometry using current spatial reference 
Coordinate coordinate = mobileService1.SpatialReference.FromWgs84(gps.Longitude, gps.Latitude); 
  
// Displays it as a point on the map in the map's paint event 
e.Display.DrawPoint(new Pen(Color.Red), new SolidBrush(Color.Black), 3, coordinate)

Remarks

The Coordinate is used to construct geometry objects - envelopes, points, multipoints, polylines, and polygons.

Inheritance Hierarchy

System.Object
   ESRI.ArcGIS.Mobile.Geometries.Coordinate

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

© 2013 All Rights Reserved.