Gets the value stored in the cell at the specified Point for a particular band.

Namespace:  ESRI.ArcGISExplorer.Data

Assembly:  ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)

Syntax

C#
public double GetValueAtPoint(
	Point point,
	string bandName
)
Visual Basic (Declaration)
Public Function GetValueAtPoint ( _
	point As Point, _
	bandName As String _
) As Double

Parameters

point
Type: ESRI.ArcGISExplorer.Geometry..::.Point

The Point used to query the Raster. The Point will be projected to the same CoordinateSystem as the Raster if they are different.
bandName
Type: System..::.String

The name of the raster band.

Return Value

The cell value at the specified location.

Examples

The code below returns the slope of the users clicked location by querying a raster containing slope values using the GetValueAtPoint method.
CopyC#
{
  Map map = ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.Map;

  //Get the Raster layer which stores slope information
  RasterLayer slopeRasterLayer = map.FindByName("slope_classified") as RasterLayer;

  //Get the underlying Raster
  Raster rasterDataset = slopeRasterLayer.Raster;

  //Capture the clicked location as a Point
  ESRI.ArcGISExplorer.Geometry.Point clickedPoint = ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.TrackPoint();

  //Project the Point to the same CoordinateSystem as that of the raster dataset
  ESRI.ArcGISExplorer.Geometry.Point projectedClickedPoint = GeometryOperations.Project(clickedPoint, rasterDataset.CoordinateSystem) as ESRI.ArcGISExplorer.Geometry.Point;

  //Return the slope at the clicked location
  double theValue = rasterDataset.GetValueAtPoint(clickedPoint, "Band_1");
}
CopyVB.NET
Dim myMap As Map = ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.Map

'Get the Raster layer which stores slope information
Dim slopeRasterLayer As RasterLayer = DirectCast(myMap.FindByName("slope_classified"), RasterLayer)

'Get the underlying Raster
Dim rasterDataset As Raster = slopeRasterLayer.Raster

'Capture the clicked location as a Point
Dim clickedPoint As ESRI.ArcGISExplorer.Geometry.Point = ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.TrackPoint()

'Return the slope at the clicked location
Dim theValue As Double = rasterDataset.GetValueAtPoint(clickedPoint, "Band_1")

See Also