Convert graphic to feature
Hello,
I'm wondering if there's a way in workflow to convert the graphic in graphic layer (e.g. Markups) to feature, so I can pass it to my GPsercvices for other task. I knew I might reuse ExtractMarkup.xap from the Extract Markup code sample, but I'm wondering if there's a way to do this without involve of any customized client model.
Thanks
regards,
Jack
-
Jack,
You just need to assign a featureSet variable = new ESRI.ArcGIS.Client.Tasks.FeatureSet(your geometry)
That variable should feed into your GP service's GPFeatureRecordSetLayer parameter (ie. New GPFeatureRecordSetLayer("myFeature", <featureSet variable>))
0 -
Thanks Ryan, my next question then is, how can I get the geometry of the markups in Graphic layer?
regards,
Jack
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare