/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{convertFlatToOptimizedGeometry as t,convertOptimizedGeometryToFlat as e}from"../../../geometry/FlatGeometry.js";import{featureGeometryTypeKebabDictionary as r}from"../../../geometry/support/typeUtils.js";import{FlatFeature as o}from"../FlatFeature.js";const m={getObjectId:t=>t.objectId,getAttributes:t=>t.attributes,getAttribute:(t,e)=>t.attributes[e],cloneWithGeometry:(t,m,i)=>new o(e(r.fromJSON(i),m),t.attributes,null,t.objectId,t.displayId,t.distance),getGeometry:e=>e.geometry&&t(e.geometry),getGeometryWithCurves:t=>t.geometry,getCentroid:(t,e)=>t.ensureCentroid(e)};export{m as flatFeatureQueryEngineAdapter};
