UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

3 lines (2 loc) 641 B
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.8/LICENSE.txt */ 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};