ESRI banner

IImageService.GetImageMetadata method

Applies To: IImageService

Returns the image-level metadata XML for the last requested image.

Its usually used after requesting an image using the GetImage and GetImageByExtent methods.

[Visual Basic 6.0]

variable = Object.GetImageMetadata(requestType)

Arguments

[in] requestType

String. It defines the level of image metadata returned.

Constant

Value

Description

VALUE

Basic

Basic metadata

VALUE

Detailed

Only detailed Image metadata

VALUE

Full

Full image metadata

Return Value

String that represents the Image metadata XML string.

For more details of ‘Basic’ metadata, view the XML schema available at:

[ArcGIS Image Server installation folder]\Developer Kit\XML\ ISClient.ImageMetadata.Basic.XSD

For more details of ‘Detailed’ metadata, view the XML schema available at:

[ArcGIS Image Server installation folder]\Developer Kit\XML\ ISClient.ImageMetadata.Detailed.XSD

For more details of ‘Full’ metadata, view the XML schema available at:

[ArcGIS Image Server installation folder]\Developer Kit\XML\ISClient.ImageMetadata.XSD

Requirements

Platform

32 bit Windows OS (WinXP)

Environment

.NET Framework, COM, ANSI C / C++ Standard compliant

Dependency

ESRI.ImageServer.ISClient.dll (.NET Framework), ISClient.dll (COM/C++), ISClientC.dll (C/C++)

Include

isclientc.h (ANSI C)

Example

[Visual Basic 6.0]

Private Sub Form1_Load()

  Dim client As New CClientObject

  Dim strConfigPath as String

  strConfigPath = "c:\Program Files\Common Files\ESRI\Image Server\XADefs\ISViewer.ISCConfig"

  If client.Init(strConfigPath) = False Then

      MsgBox client.Status

      Exit Sub

  End If

 

  Dim cService As CImageService

  Set cService = client.OpenImageService(“ImageService://hawkings:10000/Dxb_Tif”, "")

  If cService Is Nothing Then Exit Sub

 

  MsgBox cService.GetImageMetadata(“Full”)

 

End Sub

For a detailed example, please see the ISViewer Sample in VB 6.0 in [ArcGIS Image Server installation folder]\Developer Kit\Client Applications\Samples\ folder.

Related Topics

See also: GetImage, GetImageByExtent