import * as affineTransformOperator from "@arcgis/core/geometry/operators/affineTransformOperator.js";
const affineTransformOperator = await $arcgis.import("@arcgis/core/geometry/operators/affineTransformOperator.js");
@arcgis/core/geometry/operators/affineTransformOperator
Applies an affine transformation to 2D geometries via the Transformation class.
Property Overview
| Name | Type | Summary | Object |
|---|---|---|---|
Indicates if the operator supports input geometries that contain curves. | affineTransformOperator |
Property Details
-
supportsCurves
PropertysupportsCurves Booleanreadonly -
Indicates if the operator supports input geometries that contain curves. The value will always be
true.
Method Overview
| Name | Return Type | Summary | Object |
|---|---|---|---|
Executes an affine transformation on the geometry. | affineTransformOperator | ||
Executes an affine transformation on multiple geometries. | affineTransformOperator |
Method Details
-
execute
Methodexecute(geometry, transformation){GeometryUnion} -
Executes an affine transformation on the geometry.
Parametersgeometry GeometryUnionThe geometry to be transformed.
transformation TransformationThe transformation to apply to the
geometry.ReturnsType Description GeometryUnion Returns the transformed geometry.
-
executeMany
MethodexecuteMany(geometries, transformation){GeometryUnion[]} -
Executes an affine transformation on multiple geometries.
Parametersgeometries GeometryUnion[]The geometries to be transformed. All the geometries must have the same spatial reference.
transformation TransformationThe transformation to apply to the
geometries.ReturnsType Description GeometryUnion[] Returns the transformed geometries.