<?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 GeometryService Buffer action on many features (through JSAPI) in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/geometryservice-buffer-action-on-many-features/m-p/255674#M1235</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using the JSAPI to call the GeometryService over REST and return a buffer of many features (0-200). The features are generally very simple polygons (4-10 verticies) but some could have 100 or so.&amp;nbsp; It seems to be ok for up to about 25 features but the wait time then gets exponentially longer as more features are added.&amp;nbsp; The XHR call for the GeometryService timesout at 1 minute which basically rules using this out for more than 80 features.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I understand that these geometry actions can be intensive but this seems excessive.&amp;nbsp; I have a similar action in a WebADF app which can buffer hundreds of features in around 5-10 seconds and update the map so surely the server can handle this kind of request easily?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there any guidelines available on the best way to use the GeometryService and its limitations in terms of request sizes?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just to clarify, I am using a proxy page and JSAPI v1.5.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be appreciated as my bosses are not too impressed that the 6 year old ArcIMS app this is replacing can do it faster!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Sep 2010 07:56:36 GMT</pubDate>
    <dc:creator>AndrewJones</dc:creator>
    <dc:date>2010-09-07T07:56:36Z</dc:date>
    <item>
      <title>GeometryService Buffer action on many features (through JSAPI)</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/geometryservice-buffer-action-on-many-features/m-p/255674#M1235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using the JSAPI to call the GeometryService over REST and return a buffer of many features (0-200). The features are generally very simple polygons (4-10 verticies) but some could have 100 or so.&amp;nbsp; It seems to be ok for up to about 25 features but the wait time then gets exponentially longer as more features are added.&amp;nbsp; The XHR call for the GeometryService timesout at 1 minute which basically rules using this out for more than 80 features.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I understand that these geometry actions can be intensive but this seems excessive.&amp;nbsp; I have a similar action in a WebADF app which can buffer hundreds of features in around 5-10 seconds and update the map so surely the server can handle this kind of request easily?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there any guidelines available on the best way to use the GeometryService and its limitations in terms of request sizes?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just to clarify, I am using a proxy page and JSAPI v1.5.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be appreciated as my bosses are not too impressed that the 6 year old ArcIMS app this is replacing can do it faster!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Sep 2010 07:56:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/geometryservice-buffer-action-on-many-features/m-p/255674#M1235</guid>
      <dc:creator>AndrewJones</dc:creator>
      <dc:date>2010-09-07T07:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: GeometryService Buffer action on many features (through JSAPI)</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/geometryservice-buffer-action-on-many-features/m-p/255675#M1236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I ran a quick test and was able to buffer 200 features in approximately 3 seconds. It sounds like your scenario is different do you have a code snippet you can post that shows what you are doing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function bufferGeom(){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var geometryService = new esri.tasks.GeometryService("http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var params = new esri.tasks.BufferParameters();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; params.distances = [10];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; params.unit = esri.tasks.GeometryService.UNIT_KILOMETER;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; params.bufferSpatialReference = map.spatialReference;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; params.outSpatialReference = map.spatialReference;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var query = new esri.tasks.Query();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query.where = "OBJECTID &amp;lt; 201";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; featureLayer.selectFeatures(query,esri.layers.FeatureLayer.SELECTION_NEW,function(features){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log('selected');
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var infeatures = dojo.map(features,function(feature){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return feature.geometry;
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; params.geometries = infeatures;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; geometryService.buffer(params,showBuffer,function(error){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("error");
&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;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:37:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/geometryservice-buffer-action-on-many-features/m-p/255675#M1236</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2021-12-11T12:37:15Z</dc:date>
    </item>
  </channel>
</rss>

