Select to view content in your preferred language

Passing FeatureSet to GeoProcessing Service as argument by JavaScript API

2752
1
01-15-2014 12:32 AM
AmmarAssem1
Emerging Contributor
Hello Dears,

I need to create FeatrueSet in runtime and pass this FeatureSet as argument to GeoProcessing Service.

I try this Code but I face error when executing Geoprocessing service
               
                var features = [];
                features.push(app.map.graphics.graphics[1]);

                var fset = new FeatureSet();
                fset.spatialReference = app.map.spatialReference;
                fset.features = features;
                fset.geometryType = app.map.graphics.graphics[1].geometry.type;
0 Kudos
1 Reply
JillianStanford
Frequent Contributor

Hi Ammar,

What is the content of the error you're receiving?

Jill

0 Kudos