UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 620 B
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.32/esri/copyright.txt for details. */ import{execute as e,executeMany as t,isSimpleAsFeature as r}from"../gx/operatorSimplify.js";import{fromGeometry as o,toGeometry as n,fromGeometries as c}from"../support/jsonConverter.js";function p(t){const r=o(t),c=r.getSpatialReference();return n(e(r.getGeometry(),c,!1),c)}function a(e){const[r,o]=c(e);return t(r,o,!1).map((e=>n(e,o)))}function i(e){const t=o(e);return r(t.getGeometry(),t.getSpatialReference(),!1)}export{p as execute,a as executeMany,i as isSimple};