<?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: incorrect geodeticLengthOperator geodeticArea Operator measurements in imperial units. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/incorrect-geodeticlengthoperator-geodeticarea/m-p/1667557#M87904</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/14521"&gt;@LefterisKoumis&lt;/a&gt;&amp;nbsp;good catch on the documentation bug in the tutorial. We'll get it changed from unit(s) to unit, which is the correct parameter. It's documented in both the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-geodeticAreaOperator.html#execute" target="_self"&gt;geodeticAreaOperator&lt;/A&gt; and &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-geodeticLengthOperator.html#execute" target="_self"&gt;geodeticLengthOperator&lt;/A&gt; under options..&lt;/P&gt;</description>
    <pubDate>Thu, 20 Nov 2025 16:13:10 GMT</pubDate>
    <dc:creator>AndyGup</dc:creator>
    <dc:date>2025-11-20T16:13:10Z</dc:date>
    <item>
      <title>incorrect geodeticLengthOperator geodeticArea Operator measurements in imperial units.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/incorrect-geodeticlengthoperator-geodeticarea/m-p/1667272#M87901</link>
      <description>&lt;P data-unlink="true"&gt;I am using the example as posted &lt;A href="https://developers.arcgis.com/javascript/latest/tutorials/find-length-and-area/" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;to calculate the geodetic length and area of a location. Wanted to use imperial units (ft and miles).&lt;/P&gt;&lt;P data-unlink="true"&gt;So, I changed&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const geodesicLength = geodeticLengthOperator.execute(line, { units: "kilometers" });
const planarLength = lengthOperator.execute(line, { units: "kilometers" });


const geodesicArea = geodeticAreaOperator.execute(polygon, { units: "square-kilometers" });
const planarArea = areaOperator.execute(polygon, { units: "square-kilometers" });&lt;/LI-CODE&gt;&lt;P&gt;to:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const geodesicLength = geodeticLengthOperator.execute(line, { units: "miles" });
const planarLength = lengthOperator.execute(line, { units: "feet" });

const geodesicArea = geodeticAreaOperator.execute(polygon, { units: "square-miles" });
        const planarArea = areaOperator.execute(polygon, { units: "square-feet" });
&lt;/LI-CODE&gt;&lt;P&gt;Then I noticed that the geodetic measurements were way off incorrect&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LefterisKoumis_1-1763576466016.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/144134i4BD94B57CBB900DC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LefterisKoumis_1-1763576466016.png" alt="LefterisKoumis_1-1763576466016.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LefterisKoumis_2-1763576497026.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/144135iBAC7BB89F9A1867E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LefterisKoumis_2-1763576497026.png" alt="LefterisKoumis_2-1763576497026.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then I changed the "units" to "unit" for geodetic measurements&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const geodesicLength = geodeticLengthOperator.execute(line, { unit: "miles" });
const planarLength = lengthOperator.execute(line, { units: "feet" });

const geodesicArea = geodeticAreaOperator.execute(polygon, { unit: "square-miles" });
        const planarArea = areaOperator.execute(polygon, { units: "square-feet" });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and now I get correct results!!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LefterisKoumis_3-1763576705256.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/144136iC37C26827C9B6022/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LefterisKoumis_3-1763576705256.png" alt="LefterisKoumis_3-1763576705256.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LefterisKoumis_4-1763576725215.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/144137iC39B772CA145C923/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LefterisKoumis_4-1763576725215.png" alt="LefterisKoumis_4-1763576725215.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I don't see anywhere in the documentation stating to use unit instead of units for geodetic measurements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2025 18:28:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/incorrect-geodeticlengthoperator-geodeticarea/m-p/1667272#M87901</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2025-11-19T18:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: incorrect geodeticLengthOperator geodeticArea Operator measurements in imperial units.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/incorrect-geodeticlengthoperator-geodeticarea/m-p/1667557#M87904</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/14521"&gt;@LefterisKoumis&lt;/a&gt;&amp;nbsp;good catch on the documentation bug in the tutorial. We'll get it changed from unit(s) to unit, which is the correct parameter. It's documented in both the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-geodeticAreaOperator.html#execute" target="_self"&gt;geodeticAreaOperator&lt;/A&gt; and &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-geodeticLengthOperator.html#execute" target="_self"&gt;geodeticLengthOperator&lt;/A&gt; under options..&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2025 16:13:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/incorrect-geodeticlengthoperator-geodeticarea/m-p/1667557#M87904</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2025-11-20T16:13:10Z</dc:date>
    </item>
  </channel>
</rss>

