<?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: Buffer distance not correct in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-distance-not-correct/m-p/123969#M11567</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The geodesic parameter should be true when performing a buffer under web mercator.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/bufferparameters-amd.html#geodesic"&gt;https://developers.arcgis.com/javascript/jsapi/bufferparameters-amd.html#geodesic&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jan 2014 18:52:52 GMT</pubDate>
    <dc:creator>JianHuang</dc:creator>
    <dc:date>2014-01-28T18:52:52Z</dc:date>
    <item>
      <title>Buffer distance not correct</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-distance-not-correct/m-p/123968#M11566</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'm having difficulty creating an accurate buffer of a polygon.&amp;nbsp; I can request the buffered geometry and display the respective graphic just fine, but when I measure the distance of the buffer to the original polygon (using the esri measure dijit) the distance is not the same as my input distance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When in ArcMap, I buffer the same polygon by the same distance and I get a different buffer than I get from the js Geometry Service so I'm fairly certain that my problem lies with the Geometry Service not the Measurement dijit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var buffDist = dom.byId("BuffDist").value; var gph = graphicArray[0]; var gs = new GeometryService("http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer"); var params = new BufferParameters(); params.distances = [buffDist]; params.unit = GeometryService.UNIT_KILOMETER; params.bufferSpatialReference = map.spatialReference; params.outSpatialReference = map.spatialReference; params.geometries = [gph.geometry]; gs.buffer(params, function (result) {});&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My workflow is quite standard.&amp;nbsp; My input geometries are from a graphic that I received from a user click on the map.&amp;nbsp; The map spatial reference is web mercator (102100), which I thought might be causing the problem so I have been experimenting with converting web mercator to geographic but I have not had any luck getting a successful return from the Geometry Service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone have any ideas what is causing the buffer to be wrong?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 07:43:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-distance-not-correct/m-p/123968#M11566</guid>
      <dc:creator>DanikBourdeau2</dc:creator>
      <dc:date>2014-01-28T07:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer distance not correct</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-distance-not-correct/m-p/123969#M11567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The geodesic parameter should be true when performing a buffer under web mercator.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/bufferparameters-amd.html#geodesic"&gt;https://developers.arcgis.com/javascript/jsapi/bufferparameters-amd.html#geodesic&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 18:52:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-distance-not-correct/m-p/123969#M11567</guid>
      <dc:creator>JianHuang</dc:creator>
      <dc:date>2014-01-28T18:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer distance not correct</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-distance-not-correct/m-p/123970#M11568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jian,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I failed to mention that I had tried setting the geodesic parameter to true but it still does not give me a proper buffer.&amp;nbsp; I wasn't sure if Web Mercator should have the geodesic parameter set to true since it's listed as a projected coordinate system &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/jshelp/pcs.html"&gt;here?&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I took some screen grabs to help illustrate what's going on.&amp;nbsp; The first image is from my web app where I'm buffering using the js api, same parameters as above except that I have now added geodesic=true.&amp;nbsp; The second image is from ArcMap where I have buffered the same polygon by the same amount, 100km.&amp;nbsp; I placed the same basemap under both images to show some context.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]30923[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]30924[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 23:59:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-distance-not-correct/m-p/123970#M11568</guid>
      <dc:creator>DanikBourdeau2</dc:creator>
      <dc:date>2014-01-28T23:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer distance not correct</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-distance-not-correct/m-p/123971#M11569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Danik,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What does the json request look like?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 00:39:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-distance-not-correct/m-p/123971#M11569</guid>
      <dc:creator>JianHuang</dc:creator>
      <dc:date>2014-01-29T00:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer distance not correct</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-distance-not-correct/m-p/123972#M11570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is the request i send out to the buffer service.&amp;nbsp; Is this what you are looking for?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]30925[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 00:57:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-distance-not-correct/m-p/123972#M11570</guid>
      <dc:creator>DanikBourdeau2</dc:creator>
      <dc:date>2014-01-29T00:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer distance not correct</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-distance-not-correct/m-p/123973#M11571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The geometry service you are using on tasks.arcgisonline.com is version 10.04, which doesn't support geodesic parameter. Please try this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/Geometry/GeometryServer/buffer" rel="nofollow" target="_blank"&gt;http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/Geometry/GeometryServer/buffer&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Please note, either services serve the purpose of just samples. It should not be part of your product code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 01:57:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-distance-not-correct/m-p/123973#M11571</guid>
      <dc:creator>JianHuang</dc:creator>
      <dc:date>2014-01-29T01:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer distance not correct</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-distance-not-correct/m-p/123974#M11572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Jian, that makes more sense now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm a bit confused.&amp;nbsp; I thought we could use tasks.arcgisonline.com for production apps?&amp;nbsp; We have an organizational license for ArcGIS Online where we host all our feature services.&amp;nbsp; We tend to develop our own apps in house rather than use arc online's mapping interface.&amp;nbsp; Which Geometry Service should we be using?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 02:06:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-distance-not-correct/m-p/123974#M11572</guid>
      <dc:creator>DanikBourdeau2</dc:creator>
      <dc:date>2014-01-29T02:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer distance not correct</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-distance-not-correct/m-p/123975#M11573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Danik,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for the confusion. I'm not the best person to answer the licensing question. You may want to contact Esri Support. But samplerserver6 definitely is just a 'sample'.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 02:10:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-distance-not-correct/m-p/123975#M11573</guid>
      <dc:creator>JianHuang</dc:creator>
      <dc:date>2014-01-29T02:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer distance not correct</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-distance-not-correct/m-p/123976#M11574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No worries.&amp;nbsp; I may post something in the arc online forums and see what I get.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just changed the Geometry Server to sampleserver6 and everything worked like a charm.&amp;nbsp; Thanks very much for your help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 02:22:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-distance-not-correct/m-p/123976#M11574</guid>
      <dc:creator>DanikBourdeau2</dc:creator>
      <dc:date>2014-01-29T02:22:08Z</dc:date>
    </item>
  </channel>
</rss>

