<?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: featureLayer.queryFeatures doing client query when a server one is needed in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-queryfeatures-doing-client-query-when/m-p/665224#M62114</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey, the only properties I set where the objectIds and outFields, even with adding where 1=1 still defaults to outSR 102100 when my service specifies another one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also it is changing the maxallowableoffset without me setting it, so some small lines we have on the server are coming as points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This only started happened when I deployed our application in our enviroment, so do you know if its possible someone else set default configurations for queries? Can you even configure this using the API? I haven't found anyting about it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Dec 2017 17:52:13 GMT</pubDate>
    <dc:creator>SamuelAbati</dc:creator>
    <dc:date>2017-12-29T17:52:13Z</dc:date>
    <item>
      <title>featureLayer.queryFeatures doing client query when a server one is needed</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-queryfeatures-doing-client-query-when/m-p/665222#M62112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to featureLayer.queryFeatures documentation &lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/featurelayer.html#queryfeatures" title="https://developers.arcgis.com/javascript/3/jsapi/featurelayer.html#queryfeatures"&gt;FeatureLayer (legacy) | API Reference | ArcGIS API for JavaScript 3.23&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will somestimes do a client query when possible, problem is I need it to do a server query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm doing a query using objectids instead of wheres, and I'm changing the spatialReference of the query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But instead it gives me the cache'd one that has another spatialReference (webMercator), different from the one specified in the query object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I force it to make a server query? Or solve the issue in any other way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't even understand why it gives me mercator by default when the server specifies another SRID.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2017 19:44:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-queryfeatures-doing-client-query-when/m-p/665222#M62112</guid>
      <dc:creator>SamuelAbati</dc:creator>
      <dc:date>2017-12-28T19:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: featureLayer.queryFeatures doing client query when a server one is needed</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-queryfeatures-doing-client-query-when/m-p/665223#M62113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Samuel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;What query properties are you using? Have you tried to&amp;nbsp;add a where 1=1 as well as the OIDs? If all else fails you can do a QueryTask using the FeatureLayers URL instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2017 20:11:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-queryfeatures-doing-client-query-when/m-p/665223#M62113</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-12-28T20:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: featureLayer.queryFeatures doing client query when a server one is needed</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-queryfeatures-doing-client-query-when/m-p/665224#M62114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey, the only properties I set where the objectIds and outFields, even with adding where 1=1 still defaults to outSR 102100 when my service specifies another one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also it is changing the maxallowableoffset without me setting it, so some small lines we have on the server are coming as points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This only started happened when I deployed our application in our enviroment, so do you know if its possible someone else set default configurations for queries? Can you even configure this using the API? I haven't found anyting about it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2017 17:52:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-queryfeatures-doing-client-query-when/m-p/665224#M62114</guid>
      <dc:creator>SamuelAbati</dc:creator>
      <dc:date>2017-12-29T17:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: featureLayer.queryFeatures doing client query when a server one is needed</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-queryfeatures-doing-client-query-when/m-p/665225#M62115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah I think I figured it out, it got the default values from the FeatureLayer that got from the Map, that has to be it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2017 17:56:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-queryfeatures-doing-client-query-when/m-p/665225#M62115</guid>
      <dc:creator>SamuelAbati</dc:creator>
      <dc:date>2017-12-29T17:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: featureLayer.queryFeatures doing client query when a server one is needed</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-queryfeatures-doing-client-query-when/m-p/665226#M62116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Samuel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FeatureLayer queryFeatures as three restrictions. one is this:&lt;/P&gt;&lt;UL style="color: #4d4d4d; font-size: 14px; margin: 1em 0px 1em 0.8em; padding: 0px 0px 0px 1.6em;"&gt;&lt;LI style="margin: 0px 0px 0.5em; padding-left: 1.25em;"&gt;The outSpatialReference set by the query object is ignored and the map's spatial reference is used.&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2017 17:57:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-queryfeatures-doing-client-query-when/m-p/665226#M62116</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-12-29T17:57:41Z</dc:date>
    </item>
  </channel>
</rss>

