<?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 Labeling Polygons Returned from a Query Task in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/labeling-polygons-returned-from-a-query-task/m-p/246440#M5837</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using a QueryTask object to query two feature classes via REST services.&amp;nbsp; They both take a user drawn geometry and do an intersection to get the values that are underneath that geometry.&amp;nbsp; The first feature is a polygon and returns the selected polygons from the QueryTask.&amp;nbsp; The second queries a Point feature and uses the Statistics functionality to group by the Polygon ID that is on each point.&amp;nbsp; I want to then show the totals returned by the second feature class as a lable on the polygons returned from the first Query.&amp;nbsp; Is there a way to do this?&amp;nbsp; I can't figure out how to add labels to the polygon features returned from the QT.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Feb 2013 17:10:15 GMT</pubDate>
    <dc:creator>JamesBerg</dc:creator>
    <dc:date>2013-02-01T17:10:15Z</dc:date>
    <item>
      <title>Labeling Polygons Returned from a Query Task</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/labeling-polygons-returned-from-a-query-task/m-p/246440#M5837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using a QueryTask object to query two feature classes via REST services.&amp;nbsp; They both take a user drawn geometry and do an intersection to get the values that are underneath that geometry.&amp;nbsp; The first feature is a polygon and returns the selected polygons from the QueryTask.&amp;nbsp; The second queries a Point feature and uses the Statistics functionality to group by the Polygon ID that is on each point.&amp;nbsp; I want to then show the totals returned by the second feature class as a lable on the polygons returned from the first Query.&amp;nbsp; Is there a way to do this?&amp;nbsp; I can't figure out how to add labels to the polygon features returned from the QT.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 17:10:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/labeling-polygons-returned-from-a-query-task/m-p/246440#M5837</guid>
      <dc:creator>JamesBerg</dc:creator>
      <dc:date>2013-02-01T17:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling Polygons Returned from a Query Task</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/labeling-polygons-returned-from-a-query-task/m-p/246441#M5838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;James,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; If you are using an ArcGIS Server 10.1 map service than you should look at this sample:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/samples/01nq/01nq00000086000000.htm"&gt;http://resources.arcgis.com/en/help/flex-api/samples/01nq/01nq00000086000000.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If not than you have a lot of code work ahead of you to accomplish this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;You will have to get the polygon centroid or use the GeometryService to get the labelpoint and then create a point graphics layer from those points and assign the label text you wish to use as an attribute to each point.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Assign a TextSymbol as the graphics layers symbol and assign the field that you put the label text into as the textAttribute.&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;SPAN&gt;Good luck with this&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 17:21:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/labeling-polygons-returned-from-a-query-task/m-p/246441#M5838</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2013-02-01T17:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling Polygons Returned from a Query Task</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/labeling-polygons-returned-from-a-query-task/m-p/246442#M5839</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;The second option is the path I am going down at this point.&amp;nbsp; The only problem I have is I don't know how to match up the points returned from the Geometry Service to the polygons they were created from to assign labels to them.&amp;nbsp; Any ideas on that?&amp;nbsp; Am I missing some kind of parameter that will assign some value to the points returned?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;James&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 17:56:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/labeling-polygons-returned-from-a-query-task/m-p/246442#M5839</guid>
      <dc:creator>JamesBerg</dc:creator>
      <dc:date>2013-02-01T17:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling Polygons Returned from a Query Task</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/labeling-polygons-returned-from-a-query-task/m-p/246443#M5840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;James,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; They will always come back in the same order you sent them in.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 18:00:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/labeling-polygons-returned-from-a-query-task/m-p/246443#M5840</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2013-02-01T18:00:13Z</dc:date>
    </item>
  </channel>
</rss>

