/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import e from"../../core/Logger.js";import{projectOrLoad as r}from"../../geometry/projectionUtils.js";const t=t=>{const o=t;class n extends o{projectOrWarn(t,o){if(null==t)return t;const{geometry:n,pending:c}=r(t,o);return c?null:c||n?n:(e.getLogger(this).warn("geometry could not be projected to the spatial reference",{georeference:this,geometry:t,sourceSpatialReference:t.spatialReference,targetSpatialReference:o}),null)}}return n};export{t as GeoreferenceBaseMixin};
