I have following code to perform identify on MosaicDataSet.
var identifyParams:ImageServiceIdentifyParameters = new ImageServiceIdentifyParameters();
identifyParams.geometry = event.mapPoint;
identifyParams.mosaicRule = new MosaicRule();
identifyParams.mosaicRule.where = "Name = 'WinTemp_1950_01'"
identifyTask.execute(identifyParams, new AsyncResponder(myResultFunction, myFaultFunction));
The code gives me error:
[RPC Fault faultString="Unable to complete operation." faultCode="400" faultDetail="Invalid value for parameter 'mosaicRule'"]
I believe the issue is I have to initialize all members of MosaicRule. I think this is a bug in Flex API. Can someone confirm?
Thanks.