ADF.Web.DataSources.ArcGISServer.Local
FromMapPoint Method
See Also  Send Feedback
ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer.Local Namespace > Converter Class : FromMapPoint Method




context
The ArcGIS Server context (IServerContext), available when working with Local connections to ArcGIS Server.
mapServer
The ArcGIS map server (T:ESRI.ArcGIS.Carto.IMapServer).
mapDescription
The map description (T:ESRI.ArcGIS.Carto.IMapDescription) when working with a local ArcGIS connection.
imageDisplay
T:ESRI.ArcGIS.Carto.IImageDisplay with properties of the map display.
pt
An ArcGIS point (IPoint) object with map coordinates.
Transforms the input ArcGIS point (IPoint) object from map to screen coordinates.

Syntax

Visual Basic (Declaration) 
Public Shared Function FromMapPoint( _
   ByVal context As ESRI.ArcGIS.Server.IServerContext, _
   ByVal mapServer As ESRI.ArcGIS.Carto.IMapServer, _
   ByVal mapDescription As ESRI.ArcGIS.Carto.IMapDescription, _
   ByVal imageDisplay As ESRI.ArcGIS.Carto.IImageDisplay, _
   ByVal pt As ESRI.ArcGIS.Geometry.IPoint _
) As Point
Visual Basic (Usage)Copy Code
Dim context As ESRI.ArcGIS.Server.IServerContext
Dim mapServer As ESRI.ArcGIS.Carto.IMapServer
Dim mapDescription As ESRI.ArcGIS.Carto.IMapDescription
Dim imageDisplay As ESRI.ArcGIS.Carto.IImageDisplay
Dim pt As ESRI.ArcGIS.Geometry.IPoint
Dim value As Point
 
value = Converter.FromMapPoint(context, mapServer, mapDescription, imageDisplay, pt)
C# 
public static Point FromMapPoint( 
   ESRI.ArcGIS.Server.IServerContext context,
   ESRI.ArcGIS.Carto.IMapServer mapServer,
   ESRI.ArcGIS.Carto.IMapDescription mapDescription,
   ESRI.ArcGIS.Carto.IImageDisplay imageDisplay,
   ESRI.ArcGIS.Geometry.IPoint pt
)

Parameters

context
The ArcGIS Server context (IServerContext), available when working with Local connections to ArcGIS Server.
mapServer
The ArcGIS map server (T:ESRI.ArcGIS.Carto.IMapServer).
mapDescription
The map description (T:ESRI.ArcGIS.Carto.IMapDescription) when working with a local ArcGIS connection.
imageDisplay
T:ESRI.ArcGIS.Carto.IImageDisplay with properties of the map display.
pt
An ArcGIS point (IPoint) object with map coordinates.

Return Value

A Point with corresponding screen coordinates.

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

© 2011 All Rights Reserved.