<?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 expected linear unit for angular unit or vice versa in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/expected-linear-unit-for-angular-unit-or-vice/m-p/311721#M28672</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to buffer a simple point, which works fine, but when I set the Unit to UNIT_NAUTICAL_MILE, I get the following error: 'wrong unit type (expected linear unit for angular unit or vice versa)'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am calling the buffer feature of the Geometry service in ArcGIS Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Dec 2015 17:07:22 GMT</pubDate>
    <dc:creator>roberttilson</dc:creator>
    <dc:date>2015-12-15T17:07:22Z</dc:date>
    <item>
      <title>expected linear unit for angular unit or vice versa</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/expected-linear-unit-for-angular-unit-or-vice/m-p/311721#M28672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to buffer a simple point, which works fine, but when I set the Unit to UNIT_NAUTICAL_MILE, I get the following error: 'wrong unit type (expected linear unit for angular unit or vice versa)'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am calling the buffer feature of the Geometry service in ArcGIS Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 17:07:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/expected-linear-unit-for-angular-unit-or-vice/m-p/311721#M28672</guid>
      <dc:creator>roberttilson</dc:creator>
      <dc:date>2015-12-15T17:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: expected linear unit for angular unit or vice versa</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/expected-linear-unit-for-angular-unit-or-vice/m-p/311722#M28673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would recommend using the &lt;A href="https://developers.arcgis.com/javascript/jsapi/esri.geometry.geometryengineasync-amd.html#buffer"&gt;geometryEngine to do the buffering&lt;/A&gt; instead, because it does the work client-side, eliminating the call to the geometry service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to use the geometry service for some reason, though, the first thing I would try is explicitly using the numerical value 9030 instead of the &lt;A href="https://developers.arcgis.com/javascript/jsapi/geometryservice-amd.html"&gt;&lt;SPAN class="str"&gt;esri/tasks/GeometryService.&lt;/SPAN&gt;UNIT_NAUTICAL_MILE&lt;/A&gt; constant to make sure that you're not somehow using the wrong constant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 18:40:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/expected-linear-unit-for-angular-unit-or-vice/m-p/311722#M28673</guid>
      <dc:creator>JeffJacobson</dc:creator>
      <dc:date>2015-12-15T18:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: expected linear unit for angular unit or vice versa</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/expected-linear-unit-for-angular-unit-or-vice/m-p/311723#M28674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jeff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the end I realized I needed to specify the bufferSpatialReference if specifying the units, and was able to replicate using the test harness. The UNIT_NAUTICAL_MILE constant resolved to 9030, so don't think it would matter which I used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's now working OK, but will look at the Geometry Engine solution as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 16:04:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/expected-linear-unit-for-angular-unit-or-vice/m-p/311723#M28674</guid>
      <dc:creator>roberttilson</dc:creator>
      <dc:date>2015-12-16T16:04:41Z</dc:date>
    </item>
  </channel>
</rss>

