The Extract Data and Email Task model that is in ArcGIS Server 10 needs to be modified a bit in order to use with silverlight. Currently the GPMultiValue:GPString data type is not in the API so the Layer to be clipped must be fixed in the model itself. Other parameters can be passed normally. Here's what I did:1. Create a graphics layer2. Create a Draw object for drawing polygons add them to the graphics layer for display3. Add all the polygons drawn by the user to the parameter of type GPFeatureRecordSetLayerGraphicsLayer graphicsLayer = MyMap.Layers["MyGraphicsLayer"] as GraphicsLayer; Graphic graphic = new Graphic() { Geometry = args.Geometry, Symbol = _activeSymbol }; graphicsLayer.Graphics.Add(graphic);parameters.Add(new GPFeatureRecordSetLayer("Area_of_Interest", args.Geometry));4. Then add the rest of the parameter and finally submit the job
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.