Add .shp to viewer via Workflow?
We have a gp tool in a workflow that creates an output .shp of a clipped buffer using user defined inputs...
Is it possible to add this .shp back to the viewer/screen once it is created? I can display a hyperlink to the data, for example, but I want to be able to add the feature to the map via the workflow.
Thanks,
ryan
-
I have got the same question. Anyone please help? Thanks
0 -
Hi Ryan and Alex,
You would likely need to build a custom command in the viewer. This command would accept the Shapefile URL as a parameter, it would download the Shapefile, unzip it, convert it to graphics and finally add it to the map. This would be a significant amount of development.
As an alternative... if you have control of the GP service I would suggest changing the model to also output a GPFeatureRecordSetLayer that contains the features (I'm not an expert in how you would do this, but I know it is possible). This would give the workflow access to a FeatureSet that you could pass directly to the SelectFeatures activity, or run one of the commands that adds graphics to the map.
--Ryan
0
Please sign in to leave a comment.
Comments
2 comments