/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import t from"../../../core/Error.js";import{isGeometryWithZ as o,getJsonType as r}from"../../support/jsonTypeUtils.js";import{getGeometryZScaler as e}from"../../support/zscale.js";function s(t,s,n){let p;for(const c of t)if(c&&o(c)&&!("vertexAttributes"in c)){if(!p){null==s.vcsWkid&&null==n.vcsWkid||i(s,n);const t="type"in c?c.type:r(c);if(p=e(t,s,n),!p)return}p(c)}}class n extends t{constructor(){super("projection:z-unsupported","projection of z values is unsupported between different vertical coordinate systems")}}function i({vcsWkid:t},{vcsWkid:o}){if((t??null)!==(o??null))throw new n}export{n as ProjectZUnsupportedError,s as applyZConversionAfterProjection,i as validateVCSForZConversion};
