<?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 &amp;amp;amp;quot;Query map with buffer polygon&amp;amp;amp;quot; - Returns all points, not just those in buffer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/amp-amp-quot-query-map-with-buffer-polygon-amp-amp/m-p/339252#M31444</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm finally able to play with the ArcGIS API for JavaScript! To get started, I am playing with deploying the functionality that similar to the sample for "Query Map with buffer polygon:"&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jssamples_start.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jssamples_start.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, now that I &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;think &lt;/SPAN&gt;&lt;SPAN&gt;I have solved the proxy problem (Yikes, Jeremy et al., please include a link in the example of how to install the proxy!), I am finding that the buffer isn't limiting the result to the region inside the buffer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this due to a configuration error on my part with the proxy server?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I always receive 500 results from the full extent of a several thousand point Layer file served VIA REST.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's my code snippet:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.require("esri.map");
&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.require("esri.tasks.query");
&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.require("esri.tasks.geometry");

&amp;nbsp;&amp;nbsp;&amp;nbsp; /*Initialize map, buffer, &amp;amp; query params*/
&amp;nbsp;&amp;nbsp;&amp;nbsp; function init(){
 var startExtent = new esri.geometry.Extent(-119, 40, -110, 50, new esri.SpatialReference({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wkid: 4326
 }));
 var map = new esri.Map("mapDiv", {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; extent: startExtent
 });
 //listen for when map is loaded and then add query functionality
 dojo.connect(map, "onLoad", initFunctionality);

 var streetMap = new esri.layers.ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer");
 map.addLayer(streetMap);
&amp;nbsp;&amp;nbsp;&amp;nbsp; }

&amp;nbsp;&amp;nbsp;&amp;nbsp; function initFunctionality(map){
 var queryTask = new esri.tasks.QueryTask("http://MYDOMAIN/gis/rest/services/develObservations2/MapServer/0/query");

 //identify proxy page to use if the toJson payload to the geometry service is greater than 2000 characters.
 //If this null or not available the buffer operation will not work.&amp;nbsp; Otherwise it will do a http post to the proxy.
 esriConfig.defaults.io.proxyUrl = "../server/proxy.ashx";
 esriConfig.defaults.io.alwaysUseProxy = true;

 // Query
 var query = new esri.tasks.Query();
 query.returnGeometry = true;
 query.outFields = ["MYOUTPUTFIELDS"];


 //Geometry Service Endpoint
 var gsvc = new esri.tasks.GeometryService("http://MYDOMAIN/gis/rest/services/Geometry/GeometryServer");


 // +++++Listen for map onClick event+++++
 dojo.connect(map, "onClick", function(evt){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.graphics.clear();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var symbol = new esri.symbol.SimpleMarkerSymbol();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var graphic = new esri.Graphic(evt.mapPoint, symbol);

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var params = new esri.tasks.BufferParameters();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; params.features = [graphic];

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // CASE [1]: if you want to buffer in linear units such as meters, km, miles etc.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; params.distances = [dojo.byId('bufferDistance').value];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; params.unit = esri.tasks.BufferParameters.UNIT_KILOMETER;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; params.bufferSpatialReference = new esri.SpatialReference({
&amp;nbsp; wkid: 4326
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gsvc.buffer(params);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.byId('messages').innerHTML = "&amp;lt;b&amp;gt;Creating Buffer Using Geometry Service...&amp;lt;/b&amp;gt;";
 });


 // +++++Listen for GeometryService onBufferComplete event+++++
 dojo.connect(gsvc, "onBufferComplete", function(graphics){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var symbol = new esri.symbol.SimpleFillSymbol("none", new esri.symbol.SimpleLineSymbol("solid", new dojo.Color([255, 0, 0]), 2), new dojo.Color([255, 255, 0, 0.25]));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var graphic = new esri.Graphic(graphics[0].geometry, symbol);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.graphics.add(graphic);

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query.geometry = graphic.geometry;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; queryTask.execute(query);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.byId('messages').innerHTML = "&amp;lt;b&amp;gt;Executing Query with Result Buffer Geometry...&amp;lt;/b&amp;gt;";
 });


 // +++++Listen for QueryTask executecomplete event+++++
 dojo.connect(queryTask, "onComplete", function(fset){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //create symbol for selected features
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var symbol = new esri.symbol.SimpleMarkerSymbol();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; symbol.style = esri.symbol.SimpleMarkerSymbol.STYLE_SQUARE;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; symbol.setSize(8);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; symbol.setColor(new dojo.Color([0, 255, 255, 0.5]));

&amp;nbsp;&amp;nbsp;&amp;nbsp; //THERE IS PROBABLY A BETTER WAY TO DO THIS, BUT I HAD ISSUES WITH LABELING POINTS AS A MULTIPOINT
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var resultFeatures = fset.features;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var i = 0, il = resultFeatures.length; i &amp;lt; il; i++) {
&amp;nbsp; var thisx = resultFeatures&lt;I&gt;.attributes.XMin;
&amp;nbsp; var thisy = resultFeatures&lt;I&gt;.attributes.YMin;

&amp;nbsp; thisgeometry = new esri.Graphic(new esri.geometry.Point(thisx, thisy, new esri.SpatialReference({ wkid: 4326 })));
&amp;nbsp;&amp;nbsp; infoTemplate = new esri.InfoTemplate("Observation of " + resultFeatures&lt;I&gt;.attributes.SciName + " ID:" + resultFeatures&lt;I&gt;.attributes.observationid, "Info: " + resultFeatures&lt;I&gt;.attributes.Title);

&amp;nbsp;&amp;nbsp; thisgeometry.setInfoTemplate(infoTemplate);
&amp;nbsp;&amp;nbsp; thisgeometry.setSymbol(symbol);

&amp;nbsp; map.graphics.add(thisgeometry);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var totalObservations = resultFeatures.length;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.byId('messages').innerHTML = "&amp;lt;b&amp;gt;The total Observations within the buffer is &amp;lt;i&amp;gt;" + totalObservations + "&amp;lt;/i&amp;gt;.&amp;lt;/b&amp;gt;";
 });
&amp;nbsp;&amp;nbsp;&amp;nbsp; }

&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.addOnLoad(init);&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 16:02:48 GMT</pubDate>
    <dc:creator>BenStuder</dc:creator>
    <dc:date>2021-12-11T16:02:48Z</dc:date>
    <item>
      <title>&amp;amp;quot;Query map with buffer polygon&amp;amp;quot; - Returns all points, not just those in buffer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/amp-amp-quot-query-map-with-buffer-polygon-amp-amp/m-p/339252#M31444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm finally able to play with the ArcGIS API for JavaScript! To get started, I am playing with deploying the functionality that similar to the sample for "Query Map with buffer polygon:"&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jssamples_start.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jssamples_start.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, now that I &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;think &lt;/SPAN&gt;&lt;SPAN&gt;I have solved the proxy problem (Yikes, Jeremy et al., please include a link in the example of how to install the proxy!), I am finding that the buffer isn't limiting the result to the region inside the buffer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this due to a configuration error on my part with the proxy server?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I always receive 500 results from the full extent of a several thousand point Layer file served VIA REST.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's my code snippet:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.require("esri.map");
&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.require("esri.tasks.query");
&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.require("esri.tasks.geometry");

&amp;nbsp;&amp;nbsp;&amp;nbsp; /*Initialize map, buffer, &amp;amp; query params*/
&amp;nbsp;&amp;nbsp;&amp;nbsp; function init(){
 var startExtent = new esri.geometry.Extent(-119, 40, -110, 50, new esri.SpatialReference({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wkid: 4326
 }));
 var map = new esri.Map("mapDiv", {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; extent: startExtent
 });
 //listen for when map is loaded and then add query functionality
 dojo.connect(map, "onLoad", initFunctionality);

 var streetMap = new esri.layers.ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer");
 map.addLayer(streetMap);
&amp;nbsp;&amp;nbsp;&amp;nbsp; }

&amp;nbsp;&amp;nbsp;&amp;nbsp; function initFunctionality(map){
 var queryTask = new esri.tasks.QueryTask("http://MYDOMAIN/gis/rest/services/develObservations2/MapServer/0/query");

 //identify proxy page to use if the toJson payload to the geometry service is greater than 2000 characters.
 //If this null or not available the buffer operation will not work.&amp;nbsp; Otherwise it will do a http post to the proxy.
 esriConfig.defaults.io.proxyUrl = "../server/proxy.ashx";
 esriConfig.defaults.io.alwaysUseProxy = true;

 // Query
 var query = new esri.tasks.Query();
 query.returnGeometry = true;
 query.outFields = ["MYOUTPUTFIELDS"];


 //Geometry Service Endpoint
 var gsvc = new esri.tasks.GeometryService("http://MYDOMAIN/gis/rest/services/Geometry/GeometryServer");


 // +++++Listen for map onClick event+++++
 dojo.connect(map, "onClick", function(evt){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.graphics.clear();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var symbol = new esri.symbol.SimpleMarkerSymbol();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var graphic = new esri.Graphic(evt.mapPoint, symbol);

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var params = new esri.tasks.BufferParameters();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; params.features = [graphic];

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // CASE [1]: if you want to buffer in linear units such as meters, km, miles etc.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; params.distances = [dojo.byId('bufferDistance').value];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; params.unit = esri.tasks.BufferParameters.UNIT_KILOMETER;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; params.bufferSpatialReference = new esri.SpatialReference({
&amp;nbsp; wkid: 4326
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gsvc.buffer(params);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.byId('messages').innerHTML = "&amp;lt;b&amp;gt;Creating Buffer Using Geometry Service...&amp;lt;/b&amp;gt;";
 });


 // +++++Listen for GeometryService onBufferComplete event+++++
 dojo.connect(gsvc, "onBufferComplete", function(graphics){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var symbol = new esri.symbol.SimpleFillSymbol("none", new esri.symbol.SimpleLineSymbol("solid", new dojo.Color([255, 0, 0]), 2), new dojo.Color([255, 255, 0, 0.25]));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var graphic = new esri.Graphic(graphics[0].geometry, symbol);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.graphics.add(graphic);

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query.geometry = graphic.geometry;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; queryTask.execute(query);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.byId('messages').innerHTML = "&amp;lt;b&amp;gt;Executing Query with Result Buffer Geometry...&amp;lt;/b&amp;gt;";
 });


 // +++++Listen for QueryTask executecomplete event+++++
 dojo.connect(queryTask, "onComplete", function(fset){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //create symbol for selected features
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var symbol = new esri.symbol.SimpleMarkerSymbol();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; symbol.style = esri.symbol.SimpleMarkerSymbol.STYLE_SQUARE;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; symbol.setSize(8);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; symbol.setColor(new dojo.Color([0, 255, 255, 0.5]));

&amp;nbsp;&amp;nbsp;&amp;nbsp; //THERE IS PROBABLY A BETTER WAY TO DO THIS, BUT I HAD ISSUES WITH LABELING POINTS AS A MULTIPOINT
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var resultFeatures = fset.features;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var i = 0, il = resultFeatures.length; i &amp;lt; il; i++) {
&amp;nbsp; var thisx = resultFeatures&lt;I&gt;.attributes.XMin;
&amp;nbsp; var thisy = resultFeatures&lt;I&gt;.attributes.YMin;

&amp;nbsp; thisgeometry = new esri.Graphic(new esri.geometry.Point(thisx, thisy, new esri.SpatialReference({ wkid: 4326 })));
&amp;nbsp;&amp;nbsp; infoTemplate = new esri.InfoTemplate("Observation of " + resultFeatures&lt;I&gt;.attributes.SciName + " ID:" + resultFeatures&lt;I&gt;.attributes.observationid, "Info: " + resultFeatures&lt;I&gt;.attributes.Title);

&amp;nbsp;&amp;nbsp; thisgeometry.setInfoTemplate(infoTemplate);
&amp;nbsp;&amp;nbsp; thisgeometry.setSymbol(symbol);

&amp;nbsp; map.graphics.add(thisgeometry);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var totalObservations = resultFeatures.length;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.byId('messages').innerHTML = "&amp;lt;b&amp;gt;The total Observations within the buffer is &amp;lt;i&amp;gt;" + totalObservations + "&amp;lt;/i&amp;gt;.&amp;lt;/b&amp;gt;";
 });
&amp;nbsp;&amp;nbsp;&amp;nbsp; }

&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.addOnLoad(init);&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:02:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/amp-amp-quot-query-map-with-buffer-polygon-amp-amp/m-p/339252#M31444</guid>
      <dc:creator>BenStuder</dc:creator>
      <dc:date>2021-12-11T16:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: "Query map with buffer polygon" - Returns all points, not just those in buffer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/amp-amp-quot-query-map-with-buffer-polygon-amp-amp/m-p/339253#M31445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you verify that you're setting your query geometry correctly? Double-check that you're handling the result of the buffer properly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 18:51:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/amp-amp-quot-query-map-with-buffer-polygon-amp-amp/m-p/339253#M31445</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2010-08-13T18:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: "Query map with buffer polygon" - Returns all points, not just those in buffer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/amp-amp-quot-query-map-with-buffer-polygon-amp-amp/m-p/339254#M31446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe that you have an error in your configuration but not in your proxy setup.&amp;nbsp; I think you need to increase the maximum records allowed within your config file for your mapservice.&amp;nbsp; The config file defaults to 500 so I'm assuming that is where you getting your returned count from.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once you increase the value in the cfg file, be sure to restart your ArcSOM service (or reboot) as this is needed when making any changes to the cfg files.&amp;nbsp; Sorry I can't give you the path to the cfg file because I don't have access to my server right not but it's something like&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS install path\server\usr\config -----Don't quote me on that.....if you search for .cfg on your ArcGIS Server server the config file will have your map service as part of its name.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Aug 2010 04:59:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/amp-amp-quot-query-map-with-buffer-polygon-amp-amp/m-p/339254#M31446</guid>
      <dc:creator>HaroldBostic</dc:creator>
      <dc:date>2010-08-14T04:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: "Query map with buffer polygon" - Returns all points, not just those in buffer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/amp-amp-quot-query-map-with-buffer-polygon-amp-amp/m-p/339255#M31447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I believe that you have an error in your configuration but not in your proxy setup.&amp;nbsp; I think you need to increase the maximum records allowed within your config file for your mapservice.&amp;nbsp; The config file defaults to 500 so I'm assuming that is where you getting your returned count from.&lt;BR /&gt;&lt;BR /&gt;Once you increase the value in the cfg file, be sure to restart your ArcSOM service (or reboot) as this is needed when making any changes to the cfg files.&amp;nbsp; Sorry I can't give you the path to the cfg file because I don't have access to my server right not but it's something like&lt;BR /&gt;&lt;BR /&gt;ArcGIS install path\server\usr\config -----Don't quote me on that.....if you search for .cfg on your ArcGIS Server server the config file will have your map service as part of its name.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for this answer! It made me realize I need to clarify a little, but its also a question I had going forward, so you beat me to the punch! I'll be using this configuration information in the very near future.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for not being clear.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem in the case I'm having is not that it's only returning 500 records... the data I am using and the buffer I'm using shouldn't be returning more than 50-100 records. The problem is that the points are not within the buffered point.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Aug 2010 15:52:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/amp-amp-quot-query-map-with-buffer-polygon-amp-amp/m-p/339255#M31447</guid>
      <dc:creator>BenStuder</dc:creator>
      <dc:date>2010-08-14T15:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: "Query map with buffer polygon" - Returns all points, not just those in buffer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/amp-amp-quot-query-map-with-buffer-polygon-amp-amp/m-p/339256#M31448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, my apologies...glad it help in another way.....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does the buffer graphic display as you expect it to?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What SR is the query map service in?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Aug 2010 18:32:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/amp-amp-quot-query-map-with-buffer-polygon-amp-amp/m-p/339256#M31448</guid>
      <dc:creator>HaroldBostic</dc:creator>
      <dc:date>2010-08-14T18:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: "Query map with buffer polygon" - Returns all points, not just those in buffer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/amp-amp-quot-query-map-with-buffer-polygon-amp-amp/m-p/339257#M31449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Can you verify that you're setting your query geometry correctly? Double-check that you're handling the result of the buffer properly.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is another piece to the puzzle. I verified that the geometry is correct. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I found is that, the post is being encoded into html, and the (" - quotes) within the json to specify the buffer perimeter (around wkid, and ring for example) don't appear to be un-encoding back to quotes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure if this is caused from any of the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;From the Proxy configuration&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;From the Setup in my JavaScript&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;or, from the Proxy debugger (Charles) I used to verify which parameters were being sent.&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll look into this some more and do some more testing, but when I do a post to the rest query for this layer, it's happy so long as the parameters are not URL-encoded.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Aug 2010 18:51:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/amp-amp-quot-query-map-with-buffer-polygon-amp-amp/m-p/339257#M31449</guid>
      <dc:creator>BenStuder</dc:creator>
      <dc:date>2010-08-14T18:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: "Query map with buffer polygon" - Returns all points, not just those in buffer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/amp-amp-quot-query-map-with-buffer-polygon-amp-amp/m-p/339258#M31450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Ok, my apologies...glad it help in another way.....&lt;BR /&gt;&lt;BR /&gt;Does the buffer graphic display as you expect it to?&lt;BR /&gt;&lt;BR /&gt;What SR is the query map service in?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The buffer graphic displays correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To simplify everything, I verified and am using 4326 (WGS84) for every thing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Aug 2010 18:52:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/amp-amp-quot-query-map-with-buffer-polygon-amp-amp/m-p/339258#M31450</guid>
      <dc:creator>BenStuder</dc:creator>
      <dc:date>2010-08-14T18:52:50Z</dc:date>
    </item>
  </channel>
</rss>

