<?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 Query Task Fails Unless I pass in exact coordinates... in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-task-fails-unless-i-pass-in-exact/m-p/574221#M53644</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a simple query task defined for a point layer.&amp;nbsp; When I override the xy returned from the map with the exact coordinates of the feature, the task works.&amp;nbsp; Otherwise, no features are identified.&amp;nbsp; Is there a tolerance parameter I can apply?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;

function executeQueryTask(evt) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query.geometry = evt.mapPoint;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //alert (evt.mapPoint.x + " - " + evt.mapPoint.y )
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; evt.mapPoint.x= 511704.446;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; evt.mapPoint.y = 5437075.128;
&amp;nbsp; queryTask.execute(query, showResults);
 
}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Feb 2011 18:18:13 GMT</pubDate>
    <dc:creator>GISAdmin1</dc:creator>
    <dc:date>2011-02-01T18:18:13Z</dc:date>
    <item>
      <title>Query Task Fails Unless I pass in exact coordinates...</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-task-fails-unless-i-pass-in-exact/m-p/574221#M53644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a simple query task defined for a point layer.&amp;nbsp; When I override the xy returned from the map with the exact coordinates of the feature, the task works.&amp;nbsp; Otherwise, no features are identified.&amp;nbsp; Is there a tolerance parameter I can apply?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;

function executeQueryTask(evt) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query.geometry = evt.mapPoint;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //alert (evt.mapPoint.x + " - " + evt.mapPoint.y )
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; evt.mapPoint.x= 511704.446;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; evt.mapPoint.y = 5437075.128;
&amp;nbsp; queryTask.execute(query, showResults);
 
}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Feb 2011 18:18:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-task-fails-unless-i-pass-in-exact/m-p/574221#M53644</guid>
      <dc:creator>GISAdmin1</dc:creator>
      <dc:date>2011-02-01T18:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Query Task Fails Unless I pass in exact coordinates...</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-task-fails-unless-i-pass-in-exact/m-p/574222#M53645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The identify task allows you to specify a tolerance but the query task does not. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/identifytask.htm"&gt;http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/identifytask.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to use the query task to query points you'll have to generate a tolerance. This blog post has some sample code that does this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://blogs.esri.com/Dev/blogs/arcgisserver/archive/2009/01/15/Querying-points-and-lines-on-click-with-the-ArcGIS-JavaScript-API.aspx"&gt;http://blogs.esri.com/Dev/blogs/arcgisserver/archive/2009/01/15/Querying-points-and-lines-on-click-with-the-ArcGIS-JavaScript-API.aspx&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Feb 2011 01:08:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-task-fails-unless-i-pass-in-exact/m-p/574222#M53645</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2011-02-02T01:08:28Z</dc:date>
    </item>
  </channel>
</rss>

