<?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 Re: Highlight points within polygon using query task in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/highlight-points-within-polygon-using-query-task/m-p/178202#M4200</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes it is possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you query, you can simply assign geometry of the polygon to the geometry of the query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code should look something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;whateverQuery.geometry = polygon.geometry;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;whateveryQueryTask.execute(whateverQuery);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Sep 2011 19:09:28 GMT</pubDate>
    <dc:creator>YungKaiChin</dc:creator>
    <dc:date>2011-09-13T19:09:28Z</dc:date>
    <item>
      <title>Highlight points within polygon using query task</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/highlight-points-within-polygon-using-query-task/m-p/178200#M4198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to use query task and I am querying on a polygon layer. Is it possible to highlight points withing that polygon using query task ?? If not then what is the alternative way to achieve that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want it on similar lines the way it is shown in the link below&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://localgovtemplates2.esri.com/ElectionPollingPlace/default.htm"&gt;http://localgovtemplates2.esri.com/ElectionPollingPlace/default.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tanya&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 11:05:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/highlight-points-within-polygon-using-query-task/m-p/178200#M4198</guid>
      <dc:creator>tanyabisen</dc:creator>
      <dc:date>2011-08-29T11:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight points within polygon using query task</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/highlight-points-within-polygon-using-query-task/m-p/178201#M4199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Tanya,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Although not a direct solution, the &lt;/SPAN&gt;&lt;STRONG&gt;arcpy.SelectLayerByLocation_management()&lt;/STRONG&gt;&lt;SPAN&gt; function comes close to your requirement. You might perhaps use the 'WITHIN' option for this function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can find the help pages for the function &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001700000072000000"&gt;here&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Atma&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 20:15:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/highlight-points-within-polygon-using-query-task/m-p/178201#M4199</guid>
      <dc:creator>Atma_BharathiMani</dc:creator>
      <dc:date>2011-09-08T20:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight points within polygon using query task</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/highlight-points-within-polygon-using-query-task/m-p/178202#M4200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes it is possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you query, you can simply assign geometry of the polygon to the geometry of the query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code should look something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;whateverQuery.geometry = polygon.geometry;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;whateveryQueryTask.execute(whateverQuery);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 19:09:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/highlight-points-within-polygon-using-query-task/m-p/178202#M4200</guid>
      <dc:creator>YungKaiChin</dc:creator>
      <dc:date>2011-09-13T19:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight points within polygon using query task</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/highlight-points-within-polygon-using-query-task/m-p/178203#M4201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello ykchin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you please send me some sample then may be I will have better idea. Its been few months I have started working on Flex,still trying to understand the concepts.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 03:08:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/highlight-points-within-polygon-using-query-task/m-p/178203#M4201</guid>
      <dc:creator>tanyabisen</dc:creator>
      <dc:date>2011-09-14T03:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight points within polygon using query task</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/highlight-points-within-polygon-using-query-task/m-p/178204#M4202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tanya,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Here is the link to a sample that uses a drawn polygon to select underlying parcels:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/samples/01nq/01nq0000002t000000.htm"&gt;http://help.arcgis.com/en/webapi/flex/samples/01nq/01nq0000002t000000.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 16:05:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/highlight-points-within-polygon-using-query-task/m-p/178204#M4202</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-09-14T16:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight points within polygon using query task</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/highlight-points-within-polygon-using-query-task/m-p/178205#M4203</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 tried the sample which you had mentioned but it doesn't serve my requirement much. I am not allowing the user to draw the polygon.. The link which I have mentioned in my earlier post if you can see that and tell me the logic behind it then it would be great.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That link is done in Flex Viewer though. I am posting the link again&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://localgovtemplates2.esri.com/ElectionPollingPlace/default.htm"&gt;http://localgovtemplates2.esri.com/ElectionPollingPlace/default.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tanya&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 08:07:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/highlight-points-within-polygon-using-query-task/m-p/178205#M4203</guid>
      <dc:creator>tanyabisen</dc:creator>
      <dc:date>2011-09-20T08:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight points within polygon using query task</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/highlight-points-within-polygon-using-query-task/m-p/178206#M4204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tanya,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; The sample link I provided give the lines of code that would be needed to select features based on a geometry. There is probably not a sample that is going to specifically meet your needs. You will have to take portions of code from multiple sources and add to it to get what you want. Maybe you need to be more specific with want is the exact portion of the link you provided that you are desiring to reproduce. You need to understand that we can not always provide you with a complete code sample for all your needs though.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 10:54:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/highlight-points-within-polygon-using-query-task/m-p/178206#M4204</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-09-20T10:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight points within polygon using query task</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/highlight-points-within-polygon-using-query-task/m-p/178207#M4205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oh yes that's true Robert..I completely agree..I will give another try to the sample which you have provided.. Regrading the link which i have provided, when the user searches the address it highlights a polygon and nearby polling booth with red circle along with the directions. I am not interested in getting the directions just the highlighting of polygon and the point.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 03:00:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/highlight-points-within-polygon-using-query-task/m-p/178207#M4205</guid>
      <dc:creator>tanyabisen</dc:creator>
      <dc:date>2011-09-21T03:00:44Z</dc:date>
    </item>
  </channel>
</rss>

