<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Creating a FeatureSet from drawn graphics for input to a GP service in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/creating-a-featureset-from-drawn-graphics-for/m-p/151397#M3517</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it possible to create a FeatureSet object from user drawn graphics?&amp;nbsp; If so, what would be needed to pass this object a parameter to a GP service?&amp;nbsp; Is it sufficient to simply build the FeatureSet by simply cycling through each graphic and adding the geometry, as shown below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var features:Array = [];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for each (var graphic:Graphic in graphics)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; features.push({ geometry: graphic.geometry });&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var featSet:FeatureSet = New FeatureSet();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;featSet.features = features;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Dec 2010 16:40:42 GMT</pubDate>
    <dc:creator>DaveLewis</dc:creator>
    <dc:date>2010-12-08T16:40:42Z</dc:date>
    <item>
      <title>Creating a FeatureSet from drawn graphics for input to a GP service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/creating-a-featureset-from-drawn-graphics-for/m-p/151397#M3517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it possible to create a FeatureSet object from user drawn graphics?&amp;nbsp; If so, what would be needed to pass this object a parameter to a GP service?&amp;nbsp; Is it sufficient to simply build the FeatureSet by simply cycling through each graphic and adding the geometry, as shown below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var features:Array = [];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for each (var graphic:Graphic in graphics)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; features.push({ geometry: graphic.geometry });&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var featSet:FeatureSet = New FeatureSet();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;featSet.features = features;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 16:40:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/creating-a-featureset-from-drawn-graphics-for/m-p/151397#M3517</guid>
      <dc:creator>DaveLewis</dc:creator>
      <dc:date>2010-12-08T16:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a FeatureSet from drawn graphics for input to a GP service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/creating-a-featureset-from-drawn-graphics-for/m-p/151398#M3518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dave,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; A featureset is an array of graphics essentially. Not just the geometry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var featureSet:FeatureSet = new FeatureSet([ graphic1, graphic2 ]);
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:07:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/creating-a-featureset-from-drawn-graphics-for/m-p/151398#M3518</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T08:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a FeatureSet from drawn graphics for input to a GP service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/creating-a-featureset-from-drawn-graphics-for/m-p/151399#M3519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Robert, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your response.&amp;nbsp; I tried your suggestion, but unfortunately I am receiving the same error when I pass in the featureset as a parameter to the GP service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unexpected fault:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[FaultEvent fault=[RPC Fault faultString="Unable &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to complete operation." faultCode="400" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;faultDetail="Invalid value for parameter &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'Input_Features'"] messageID=null type="fault" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;bubbles=false cancelable=true eventPhase=2]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Dec 2010 17:49:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/creating-a-featureset-from-drawn-graphics-for/m-p/151399#M3519</guid>
      <dc:creator>DaveLewis</dc:creator>
      <dc:date>2010-12-09T17:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a FeatureSet from drawn graphics for input to a GP service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/creating-a-featureset-from-drawn-graphics-for/m-p/151400#M3520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dave,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; That is a pretty generic GP error that could mean many things... I would begin by verifying what your GP services is expecting as it's input. Also verify that the name of the input parameter you are using is the exact one that the service is calling for.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Dec 2010 18:38:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/creating-a-featureset-from-drawn-graphics-for/m-p/151400#M3520</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2010-12-09T18:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a FeatureSet from drawn graphics for input to a GP service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/creating-a-featureset-from-drawn-graphics-for/m-p/151401#M3521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again.&amp;nbsp; The GP script is processing now, however, my shape results do not contain any geometric information (length, area, etc.).&amp;nbsp; As an FYI, my GP service takes the input feature set and converts it to KML by using the "Layer To KML" task.&amp;nbsp; The KML is being written properly and the graphics exist, but the shape fields are NULL.&amp;nbsp; Any thoughts???&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 17:43:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/creating-a-featureset-from-drawn-graphics-for/m-p/151401#M3521</guid>
      <dc:creator>DaveLewis</dc:creator>
      <dc:date>2010-12-14T17:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a FeatureSet from drawn graphics for input to a GP service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/creating-a-featureset-from-drawn-graphics-for/m-p/151402#M3522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dave,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; GP Services are pretty hard to debug. I would try checking the spatial reference of the featureset you are passing in is what the GP Tool is expecting.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 17:56:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/creating-a-featureset-from-drawn-graphics-for/m-p/151402#M3522</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2010-12-14T17:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a FeatureSet from drawn graphics for input to a GP service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/creating-a-featureset-from-drawn-graphics-for/m-p/151403#M3523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have checked the SR and everything appears to match up.&amp;nbsp; I can run the associated model directly in ArcMap without any problems.&amp;nbsp; The shape information (length, area, etc.) is written properly to the KML.&amp;nbsp; However, this information appears as "NULL" when executing the model as a GP service from a web app.&amp;nbsp; Weird, eh???&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;--Dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 17:59:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/creating-a-featureset-from-drawn-graphics-for/m-p/151403#M3523</guid>
      <dc:creator>DaveLewis</dc:creator>
      <dc:date>2010-12-16T17:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a FeatureSet from drawn graphics for input to a GP service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/creating-a-featureset-from-drawn-graphics-for/m-p/151404#M3524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dave,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Sorry I don't have any other suggestions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 18:04:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/creating-a-featureset-from-drawn-graphics-for/m-p/151404#M3524</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2010-12-16T18:04:31Z</dc:date>
    </item>
  </channel>
</rss>

