<?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: Query task with polygon not working after upgrade to 10 in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/query-task-with-polygon-not-working-after-upgrade/m-p/304226#M7217</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for reminding me.&amp;nbsp; I had in my mind that SDE had to also be at 10 (about a month away)...&amp;nbsp; But, hooray, I was wrong.&amp;nbsp; I switched all to true and now the queries (especially the flood queries) do seem faster.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Carmen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Mar 2012 17:06:39 GMT</pubDate>
    <dc:creator>CarmenDurham</dc:creator>
    <dc:date>2012-03-01T17:06:39Z</dc:date>
    <item>
      <title>Query task with polygon not working after upgrade to 10</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/query-task-with-polygon-not-working-after-upgrade/m-p/304221#M7212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Production Web Server just upgraded to Server 10.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have some web applications (happens with both a 2.0 and 2.5 api app) that will:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;find an address point through query task (works fine at 10)&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;then buffers the address point by 500 ft (geometry server - works fine in 10 and we can display the buffer as a graphic to know it worked)&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Then selects all the fire hydrants within that buffer polygon using a query task.- I think this works because the featureset.count that is returned is correct.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Cycle through the returned hydrants, create graphics of those features and display. - this no longer works after the upgrade to 10.&amp;nbsp; It is like the QueryEvent returns something different that will not work anymore.&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;SPAN&gt;Any ideas??&amp;nbsp; Below is the code where I think the problem occurs - it is in the query task executeComplete function.&amp;nbsp; The hydrants are in a secure service, but that shouldn't matter.&amp;nbsp; I tried it with unsecured services, too. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Below is a link to one site - type in an address.&amp;nbsp; Let it process through a bunch of queries. Then press the "Show Hydrants.." button in section 3. It zooms out to where it should, but you don't see any cute yellow fire hydrants.&amp;nbsp; I can tell it is finding the hydrants because of the count it returned in a test. &lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://gis.greenvillesc.gov/wheresmyhouse/" rel="nofollow" target="_blank"&gt;https://gis.greenvillesc.gov/wheresmyhouse/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp; private function onfireHydrantQueryComplete4Locate(event:QueryEvent):void &amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp; var hydrantFeatureSet: FeatureSet = event.featureSet; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for each (var hydrantGraphicFeature: Graphic in hydrantFeatureSet.features) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; firehydrantCount = firehydrantCount + 1; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hydrantGraphicFeature.symbol = firehydrantSymbol; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fireHydrantLayer.add(hydrantGraphicFeature); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (firehydrantCount == 0) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Alert.show("Zero fire hydrants found within 500 feet of this address"); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp; // end if &amp;nbsp;&amp;nbsp;&amp;nbsp; else&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fireHydrantLayer.visible = true; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Alert.show(firehydrantCount.toString()); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.extent = lastBufferGraphic.geometry.extent.expand(1.5); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } // end else&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cursorManager.removeBusyCursor(); &amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp; // end function onfireHydrantQueryComplete4Locate&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any help.&amp;nbsp; I hope this is something someone has already seen.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Carmen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Feb 2012 20:47:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/query-task-with-polygon-not-working-after-upgrade/m-p/304221#M7212</guid>
      <dc:creator>CarmenDurham</dc:creator>
      <dc:date>2012-02-29T20:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Query task with polygon not working after upgrade to 10</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/query-task-with-polygon-not-working-after-upgrade/m-p/304222#M7213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Carmen,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Can you try commenting this line where you specify the symbol and see what happens? I watched the app using fidler and nothing is going wrong with the responses.&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;hydrantGraphicFeature.symbol = firehydrantSymbol;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Feb 2012 21:26:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/query-task-with-polygon-not-working-after-upgrade/m-p/304222#M7213</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2012-02-29T21:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Query task with polygon not working after upgrade to 10</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/query-task-with-polygon-not-working-after-upgrade/m-p/304223#M7214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for replying.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I commented out the line of code and the behavior is exactly the same.&amp;nbsp;&amp;nbsp; Any other ideas are appreciated and I will continue to try to figure out what is happening.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Carmen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 11:51:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/query-task-with-polygon-not-working-after-upgrade/m-p/304223#M7214</guid>
      <dc:creator>CarmenDurham</dc:creator>
      <dc:date>2012-03-01T11:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Query task with polygon not working after upgrade to 10 - solved</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/query-task-with-polygon-not-working-after-upgrade/m-p/304224#M7215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, I finally figured it out.&amp;nbsp; The fire hydrant query needed the "returnGeometry=true" parameter -- see below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; &amp;lt;esri:Query id="fireHydrantQuery" returnGeometry="true" outSpatialReference="{map.spatialReference}"&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not sure WHY it worked fine with ArcGIS Server 9.3 unless the default used to be "true" and now the default is now "false" for 10.&amp;nbsp; I will do some more digging to see if that is the case.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I finally noticed all the graphics being returned had no geometry attached.&amp;nbsp; Attributes were being returned which led me to believe all was working as before.&amp;nbsp; In both affected web applications, the query for the address was working fine - but I DID have returnGeometry=true set for it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps someone else.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Carmen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 15:27:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/query-task-with-polygon-not-working-after-upgrade/m-p/304224#M7215</guid>
      <dc:creator>CarmenDurham</dc:creator>
      <dc:date>2012-03-01T15:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Query task with polygon not working after upgrade to 10</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/query-task-with-polygon-not-working-after-upgrade/m-p/304225#M7216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Carmen,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Also in your apps you can start using useAMF = true for better speed in the query now that you are using ArcGIS Server 10.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 15:35:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/query-task-with-polygon-not-working-after-upgrade/m-p/304225#M7216</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2012-03-01T15:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Query task with polygon not working after upgrade to 10</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/query-task-with-polygon-not-working-after-upgrade/m-p/304226#M7217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for reminding me.&amp;nbsp; I had in my mind that SDE had to also be at 10 (about a month away)...&amp;nbsp; But, hooray, I was wrong.&amp;nbsp; I switched all to true and now the queries (especially the flood queries) do seem faster.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Carmen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 17:06:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/query-task-with-polygon-not-working-after-upgrade/m-p/304226#M7217</guid>
      <dc:creator>CarmenDurham</dc:creator>
      <dc:date>2012-03-01T17:06:39Z</dc:date>
    </item>
  </channel>
</rss>

