UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 612 B
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.33/esri/copyright.txt for details. */ import{changeMethodMap as e,keepMethodMap as t}from"../changeDetectionUtils.js";import{createRasterFunction as r}from"./utils.js";function o(o){const{raster:s,raster2:p,outputPixelType:h}=o,n=e.toJSON(o.method),u=o.keepMethod&&t.toJSON(o.keepMethod);return r("ComputeChange",{method:n,keepMethod:u,raster:s,raster2:p},h)}function s(e){const{raster:t,outputPixelType:o}=e;return r("Threshold",{thresholdType:1,raster:t},o)}export{o as computeChange,s as threshold};