/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{tryProject as e}from"../../../../geometry/projectionUtils.js";import{getElevationAtPoint as o}from"../../support/ElevationProvider.js";function r(r,t,i,n=!1){const l=e(r,t);return null==l?null:(l.hasZ&&!n||null==i||(l.z=o(i,l)??0),l)}function t(e,o,r){r.warnOnce(`Failed to project analysis geometry (id: '${e.id}'), projection from spatial reference (wkid: '${o.wkid}') to view spatial reference is not supported. Projection may be possible after calling projectOperator.load().`)}export{r as applyProjectionAndElevationAlignment,t as logFailedGeometryProjectionError};
