<?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 Get FeatureSet from GraphicsLayer in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/get-featureset-from-graphicslayer/m-p/367901#M8627</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Looking at the sample code for the Query, I see that it is possible to set a GraphicsLayer's graphicProvider property as the FeatureSet returned from the QueryTask. I was wondering how to do the opposite of this, specifically, how to get a FeatureSet from a GraphicsLayer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 May 2010 17:15:18 GMT</pubDate>
    <dc:creator>MikeLowe</dc:creator>
    <dc:date>2010-05-21T17:15:18Z</dc:date>
    <item>
      <title>Get FeatureSet from GraphicsLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/get-featureset-from-graphicslayer/m-p/367901#M8627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Looking at the sample code for the Query, I see that it is possible to set a GraphicsLayer's graphicProvider property as the FeatureSet returned from the QueryTask. I was wondering how to do the opposite of this, specifically, how to get a FeatureSet from a GraphicsLayer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 May 2010 17:15:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/get-featureset-from-graphicslayer/m-p/367901#M8627</guid>
      <dc:creator>MikeLowe</dc:creator>
      <dc:date>2010-05-21T17:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Get FeatureSet from GraphicsLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/get-featureset-from-graphicslayer/m-p/367902#M8628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can get all the features from the graphicslayer's graphicProvider, which is an ArrayCollection.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;e.g.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;new FeatureSet(ArrayCollection(myGL.graphicProvider).toArray())&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 May 2010 19:25:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/get-featureset-from-graphicslayer/m-p/367902#M8628</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2010-05-21T19:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Get FeatureSet from GraphicsLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/get-featureset-from-graphicslayer/m-p/367903#M8629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ahh thank you...I had something similar to this, I was just missing the toArray()...that helps very much!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 May 2010 15:51:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/get-featureset-from-graphicslayer/m-p/367903#M8629</guid>
      <dc:creator>MikeLowe</dc:creator>
      <dc:date>2010-05-22T15:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Get FeatureSet from GraphicsLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/get-featureset-from-graphicslayer/m-p/367904#M8630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I've implemented this, and started testing. To test if it was working I did two things:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I looped through all the graphics in featureSet.features and created a new MapPoint from the geometry property of each graphic, then used the Alert to display the x and y values of the MapPoint. Always, this showed "0 0".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I created another graphics layer and tried to set the featureSet.features to the graphicProvider of the layer. No geometry is displayed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The reason I need the featureSet is because I need to use it as an input parameter for a network analyst model.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 May 2010 16:31:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/get-featureset-from-graphicslayer/m-p/367904#M8630</guid>
      <dc:creator>MikeLowe</dc:creator>
      <dc:date>2010-05-22T16:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Get FeatureSet from GraphicsLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/get-featureset-from-graphicslayer/m-p/367905#M8631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you setting returnGeometry to true?&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/tasks/supportClasses/Query.html#returnGeometry"&gt;http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/tasks/supportClasses/Query.html#returnGeometry&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 16:00:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/get-featureset-from-graphicslayer/m-p/367905#M8631</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2010-05-24T16:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Get FeatureSet from GraphicsLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/get-featureset-from-graphicslayer/m-p/367906#M8632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am populating the GraphicsLayer initially from an HTTPService connected to an external XML file with 4 properties (two of which are POINT_X and POINT_Y). I set the result of the HTTPService to an array and create a new graphic which is then added it to the GraphicsLayer while looping through the array. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This succesfully maps each point, but I would like the user to be able to choose a subset of these points (backcountry campsites) as parameters for a route solving geoprocessing model. The subset is a new GraphicLayer symbolized by a Red Flag (to indicate destination). The user drags the campsites into a List control and a new graphic is added to the destinations GraphicsLayer on the dragDrop event using the data from the newly created list item.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to create a new FeatureSet, loop through the graphics in the destinations layer and manually add a new feature for each graphic?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I suppose if there is no way to to this, I could Query the original service and use the names of the points in the graphics layer as a filter for the Query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this isn't too confusing. I can clarify further if need be.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 May 2010 12:42:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/get-featureset-from-graphicslayer/m-p/367906#M8632</guid>
      <dc:creator>MikeLowe</dc:creator>
      <dc:date>2010-05-25T12:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get FeatureSet from GraphicsLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/get-featureset-from-graphicslayer/m-p/367907#M8633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, I've worked around this problem by creating a query on the service which returns the geometry of the selected points.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 May 2010 19:32:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/get-featureset-from-graphicslayer/m-p/367907#M8633</guid>
      <dc:creator>MikeLowe</dc:creator>
      <dc:date>2010-05-25T19:32:50Z</dc:date>
    </item>
  </channel>
</rss>

