Image service GetKeyProperties method
Returns the key properties of the image service.
GetKeyProperties()
Return Value
A propertyset representing the key properties.
Remarks
GetKeyProperties has no arguments.
Key properties include AcquisitionDate, CloudCover, SensorName, ProductName, SunAzimuth, SunElevation, SensorAzimuth, SensorElevation, and so on.
Examples
C#
//connect to image server
sampleImage_ImageServer imageSrv = new sampleImage_ImageServer();
imageSrv.Url = url;
//get service's key properties
PropertySet propSet = imageSrv.GetKeyProperties();
for (int i = 0; i < propSet.PropertyArray.Length; i++)
{
PropertySetProperty prop = propSet.PropertyArray[i];
if (prop.Value is double)
Console.WriteLine("{0}: {1}", prop.Key, (double)prop.Value);
if (prop.Value is string)
Console.WriteLine("{0}: {1}", prop.Key, (string)prop.Value);
}
//get first item's key properties
PropertySet propSet1 = imageSrv.GetRasterKeyProperties(1);
for (int i = 0; i < propSet1.PropertyArray.Length; i++)
{
PropertySetProperty prop = propSet.PropertyArray[i];
if (prop.Value is double)
Console.WriteLine("{0}: {1}", prop.Key, (double)prop.Value);
if (prop.Value is string)
Console.WriteLine("{0}: {1}", prop.Key, (string)prop.Value);
}
10/23/2013