/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{convertFromSpatialReferenceUnit as e}from"../core/units.js";import{fromGeometry as t,getSpatialReference as o}from"../geometry/operators/support/apiConverter.js";function r(r,s={}){const{unit:n}=s;let u=t(r).calculateLength2D();if(u&&n){const t=o(r);u=e(u,t,n)}return u}const s=!0,n=Object.freeze(Object.defineProperty({__proto__:null,execute:r,supportsCurves:s},Symbol.toStringTag,{value:"Module"}));export{r as e,n as l,s};
