This document is archived and information here might be outdated.  Recommended version.


IMapServer3.QueryRasterValue Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Carto)  

IMapServer3.QueryRasterValue Method

Returns the Raster content that meet the selection criteria for the specified table.

[Visual Basic .NET]
Public Function QueryRasterValue ( _
    ByVal MapName As String, _
    ByVal sourceTableID As Integer, _
    ByVal rowIDs As ILongArray, _
    ByVal FieldName As String, _
    ByVal rasterValueType As IImageType _
) As IImageResults
[C#]
public IImageResults QueryRasterValue (
    string MapName,
    int sourceTableID,
    ILongArray rowIDs,
    string FieldName,
    IImageType rasterValueType
);
[C++]
HRESULT QueryRasterValue(
  BSTR MapName,
  long sourceTableID,
  ILongArray* rowIDs,
  BSTR FieldName,
  IImageType* rasterValueType
);
[C++]

Parameters MapName [in]
MapName is a parameter of type BSTR sourceTableID [in]
sourceTableID is a parameter of type long rowIDs [in]
rowIDs is a parameter of type ILongArray* FieldName [in]
FieldName is a parameter of type BSTR rasterValueType [in]
rasterValueType is a parameter of type IImageType*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

An array of IImageResult3. IImageResult3 contains the returned mime type and either the url to the image or the mime data itself.

The ImageResult in the resultant array are returned in the same order the OIDs are passed in. If the feature does not have any raster data, a null is returned.

RasterFieldName is optional since a layer can have only one raster field. In case of join, you may need to pass in the field name, if an empty string is passed the raster field from the base table will be used.

OutImageType is optional as well. When a null is passed in as outImageType, jpeg and url are used as the default image format and returned type respectively.

See Also

IMapServer3 Interface