IEnumerable<Graphic> to FeatureSet
I have the results of a buffertask that is a IEnumerable<Graphic>. The buffer is correctly displayed on the map. What I want to do is display the parcels within the buffer in the Data Region. Only way I know to do this is to use a SelectFeatures activity which accepts FeatureSets. How would I convert the results of my buffertask (IEnumerable<Graphic>) to a FeatureSet Object to be used with the SelectFeatures activity? Or is there another way to display the items in IEnumerable<Graphic> in the Data Region?
Thanks,
-
Check http://help.arcgis.com/en/webapi/silverlight/apiref/api_start.htm
Refer to ESRI.ArcGIS.Client - ESRI.ArcGIS.Client.Tasks - FeatureSet - FeatureSet Constructor - FeatureSet Constructor(IEnumerable<Graphic>)
So you can create FeatureSet using that constructor.
On th workflow, use Assign activity (fs = New FeatureSet(listofGraphcis), where fs is a variable with FeatureSet type, and listofGraphics is what you have)
0 -
There are a couple of workflows on the Code Gallery that might help:
http://support.geocortex.com/using-workflow-to-buffer-and-select-parcels
http://support.geocortex.com/parcel-selection-buffering-and-report-workflow0 -
The Parcel Selection Buffering and Report workflow can now be found here (https://support.geocortex.com/essentialsGSCCodeGallery?sub-nav=codegall&main-nav=essentials&#!/feedtype=SINGLE_ARTICLE_SEARCH_RESULT&id=kA4600000004EV2) . 0
Please sign in to leave a comment.
Comments
3 comments