Process results of Geoprocessor which returns GPMultiValue<GPFeatureRecordSetLayer>
I have a geoprocessing service that returns result of type GPMultiValue<GPFeatureRecordSetLayer> (ie multiple ArcGIS FeatureSet objects).
I would like to include this in a Geocortex Essentials workflow as display the results set from each of the FeatureSets.
Is this possible?
My attempts so far have been fruitless. I've got a workflow that produces no syntax errors, but during execution, the 'Cast' (Cast<List<GPFeatureRecordSetLayer>>) fails.
Even if this succeeds, I'm not entirely sure what to do with it after that. My workflow attempts to simply run a "foreach" and to select the features from each feature set. No idea if this will do what I want or not, because I can't get past that 'Cast' that fails at run time.
0
-
Hi Nik,
You shouldn't need to use a Cast<T> activity to get the results of your geoprocessor as a GPMultiValue:GPFeatureRecordSetLayer.
The expected object type is just that, GPMultiValue<GPFeatureRecordSetLayer>. You can make a variable of this type by selecting Browse for Types... and typing GPMultiValue. When you select GPMultiValue<T> then you must also choose the T class, which is GPFeatureRecordSet layer.
A super easy shortcut is to type F3 when your cursor is in the Geoprocessor activity input/output box, because then Workflow Designer will pick an appropriate class type for a variable for that box.
To iterate over the resulting collection of layers, use the .Value member of the GPMultiValue object.
Regards,
-Malcolm0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
1 kommentar