Combine 3x FeatureSets
Trying to combine three featuresets together
All_My_Features = new ESRI.ArcGIS.Client.Tasks.FeatureSet(geometry1, geometry2, geometry3)
But the error states that "Overload resolution failed because no accessible 'New' accepts this number of arguments.
Does anyone have an idea on how to combine 3x featuresets together, or an alteration to the line above?
Walter
-
Hi Walter
are the 3 Featuresets equivalent as far as fieldnames etc?
Do you only care about the geometries?
Regards
Ralph
0 -
Ralph, thanks for your response.
All three are polygons with the same field names. I have a parallel activity where I query each of the three types, but need to combine
the resultant geometry together before I display the extent of the query.
Walter
0 -
What about a GetGeometries activity to get a list of geometries in eacht feature set, and use the LINQ Concat method to combine the lists?
0 -
Nico,
Do you have a sample syntax for the Linq concatenate line to combine the geometry lists together?
Walter
0 -
Thank you Nico & Ralph,
Your workflows were paramount in solving the merging of several featuresets together.
Truly appreciate your assistance.
Walter
0 -
With your help, I have been able to assemble the three featuresets together. But now the problem is that in order to display
the results with the "SelectFeatures" activity, I need to supply the layer id and layer name, but the sources of the featuresets come from two different layer id's.
So how would you display the grouped featuresets coming from two different layer id's?
Walter
0 -
Solved displaying the results.
Thanks for everyone's help.
Walter
0 -
Walter,
I'm working on similar kind of workflow.how u manage to combine featuresets that comes from different layer id's.can u post a reference workflow that will help me to understand.
Thanks,0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
8 Kommentare