/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{getMetersPerUnitForSR as r}from"../../../../../core/units.js";import{fromSpatialReference as e}from"../../../../../geometry/operators/support/apiConverter.js";function o(o,t=.001){if(null!=o.xyTolerance)return o.xyTolerance;const n=e(o),l=n?.getTolerance();return null!=l?l:t/r(o)}export{o as findSpatialReferenceXYTolerance};
