<?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: Disable quantization / generalization on featurelayer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-quantization-generalization-on/m-p/1357072#M83019</link>
    <description>&lt;P&gt;Since you're using &lt;A href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining" target="_self"&gt;optional chaining&lt;/A&gt; on line 4, you might do the same on line 9:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if (params.requestOptions.query?.quantizationParameters)&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 05 Dec 2023 19:25:46 GMT</pubDate>
    <dc:creator>JoelBennett</dc:creator>
    <dc:date>2023-12-05T19:25:46Z</dc:date>
    <item>
      <title>Disable quantization / generalization on featurelayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-quantization-generalization-on/m-p/1330560#M82257</link>
      <description>&lt;P&gt;Is there any way to force a featurelayer to never generalize and/or quantize the geometries in the layer? I am asking because I'm doing a lot of geometryengine operations on a featurelayer and sometimes I get tiny slivers as output from the engine. Seemingly this is caused by tiny differences in the geometries depending on zoom level etc. In version 3 of the api we had setMaxAllowableOffset and autoGeneralize props as means to control this but in version 4 I cannot find it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 12:30:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-quantization-generalization-on/m-p/1330560#M82257</guid>
      <dc:creator>ae</dc:creator>
      <dc:date>2023-09-20T12:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Disable quantization / generalization on featurelayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-quantization-generalization-on/m-p/1330902#M82265</link>
      <description>&lt;P&gt;There doesn't appear to be a means of disabling the quantization via layer settings, but using a &lt;A href="https://gar.pacaf.af.mil/jsapi/4.27/sdk/api-reference/esri-config.html#RequestInterceptor" target="_self"&gt;RequestInterceptor&lt;/A&gt; to remove the quantizationParameters from the queries to the server should work for most common implementations:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var featureLayer = new FeatureLayer({
	url: "https://server/path/etc/FeatureServer/0"
});

esriConfig.request.interceptors.push({
	url: featureLayer.url + "/" + featureLayer.layerId + "/query",
	before: function (params) {
		if (params.requestOptions.query.quantizationParameters)
			delete params.requestOptions.query.quantizationParameters;
	}
});

map.add(featureLayer);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 01:33:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-quantization-generalization-on/m-p/1330902#M82265</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-09-21T01:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Disable quantization / generalization on featurelayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-quantization-generalization-on/m-p/1356871#M83014</link>
      <description>&lt;P&gt;Joel, question how we could address this same issues with an internal ArcGIS Server 10.9.1 hosted featurelayer. Thank you for any input you may have.&lt;/P&gt;&lt;P&gt;ESRI states:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Known Limitations&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Only supported with ArcGIS Online hosted services or ArcGIS Enterprise 10.6.1 services.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 15:58:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-quantization-generalization-on/m-p/1356871#M83014</guid>
      <dc:creator>JohnRitsko1</dc:creator>
      <dc:date>2023-12-05T15:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Disable quantization / generalization on featurelayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-quantization-generalization-on/m-p/1356944#M83015</link>
      <description>&lt;P&gt;As far as I know, the same approach mentioned above would work.&amp;nbsp; Can you add a link to the ESRI documentation you mentioned?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 17:29:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-quantization-generalization-on/m-p/1356944#M83015</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-12-05T17:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Disable quantization / generalization on featurelayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-quantization-generalization-on/m-p/1357024#M83016</link>
      <description>&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#quantizationParameters" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#quantizationParameters&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 18:23:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-quantization-generalization-on/m-p/1357024#M83016</guid>
      <dc:creator>JohnRitsko1</dc:creator>
      <dc:date>2023-12-05T18:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Disable quantization / generalization on featurelayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-quantization-generalization-on/m-p/1357034#M83017</link>
      <description>&lt;P&gt;I see; that statement is probably out of date, and should read something like "&lt;SPAN&gt;Only supported with ArcGIS Online hosted services or ArcGIS Enterprise 10.6.1 &lt;U&gt;and later&lt;/U&gt; services."&amp;nbsp;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/44467"&gt;@KristianEkenes&lt;/a&gt;&amp;nbsp;can you confirm?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 18:33:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-quantization-generalization-on/m-p/1357034#M83017</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-12-05T18:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Disable quantization / generalization on featurelayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-quantization-generalization-on/m-p/1357047#M83018</link>
      <description>&lt;P&gt;Joel.&amp;nbsp; We took this along with some code you helped us with before and doesn't seem to like what I did.&amp;nbsp; Perhaps I'm missing something here.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  esriConfig.request.interceptors.push({
      urls: /\/query/,
      before: function(params){
          if (/LIKE '[^%]/g.test(params.requestOptions.query?.where)) {
            console.log("Like request");
            ('like request intercepted', params.requestOptions);
            params.requestOptions.query.where = params.requestOptions.query.where.replace(/ LIKE \'/g, ' LIKE \'%');
          }
          if (params.requestOptions.query.quantizationParameters) {
            delete params.requestOptions.query.quantizationParameters;
          }
      },
      // Moves Null (KNOWNAS) Values to the bottom of list
      after: function(response) {
        console.log("In after function");
          var notNulls = [];
          var nulls = [];

          response.data.features.forEach(function(feature) {
              if (feature.attributes.KNOWNAS === null)
                  nulls.push(feature);
              else
                  notNulls.push(feature);
          });

          response.data.features = notNulls.concat(nulls);
      }
  });&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 05 Dec 2023 18:52:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-quantization-generalization-on/m-p/1357047#M83018</guid>
      <dc:creator>JohnRitsko1</dc:creator>
      <dc:date>2023-12-05T18:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Disable quantization / generalization on featurelayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-quantization-generalization-on/m-p/1357072#M83019</link>
      <description>&lt;P&gt;Since you're using &lt;A href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining" target="_self"&gt;optional chaining&lt;/A&gt; on line 4, you might do the same on line 9:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if (params.requestOptions.query?.quantizationParameters)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 05 Dec 2023 19:25:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-quantization-generalization-on/m-p/1357072#M83019</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-12-05T19:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Disable quantization / generalization on featurelayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-quantization-generalization-on/m-p/1357083#M83020</link>
      <description>&lt;P&gt;Think I was putting the cart before the horse here.&amp;nbsp; We are using a search tool that returns&amp;nbsp; a graphic that is generalized for say an office polygon.&amp;nbsp; This polygon isn't correct as it's been generalized and doesn't show all the shapes of the office correctly.&amp;nbsp; I don't think pursuing this route as we've been discussing works because the Search Widget returns a graphic and not the feature layer.&amp;nbsp; Thanks for all the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 19:40:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-quantization-generalization-on/m-p/1357083#M83020</guid>
      <dc:creator>JohnRitsko1</dc:creator>
      <dc:date>2023-12-05T19:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Disable quantization / generalization on featurelayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-quantization-generalization-on/m-p/1357102#M83021</link>
      <description>&lt;P&gt;In that case, you want to remove the maxAllowableOffset parameter:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if (params.requestOptions.query.maxAllowableOffset) {
	delete params.requestOptions.query.maxAllowableOffset;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The 3.x API Search tool did a better job of calculating that value than its 4.x counterpart.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 20:32:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-quantization-generalization-on/m-p/1357102#M83021</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-12-05T20:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Disable quantization / generalization on featurelayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-quantization-generalization-on/m-p/1357113#M83022</link>
      <description>&lt;P&gt;Amazing Joel, just amazing.&amp;nbsp; Thank you once again for your time.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 20:55:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-quantization-generalization-on/m-p/1357113#M83022</guid>
      <dc:creator>JohnRitsko1</dc:creator>
      <dc:date>2023-12-05T20:55:15Z</dc:date>
    </item>
  </channel>
</rss>

