/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{convertFromSpatialReferenceUnit as t}from"../../../core/units.js";import{fromGeometryToGXGeometry as o,getSpatialReference as r}from"../support/jsonConverter.js";function n(n,e={}){const{unit:s}=e;let c=o(n).calculateLength2D();const u=r(n);return c&&s&&u&&(c=t(c,u,s)),c}export{n as execute};
