import { execute, executeMany, supportsCurves } from "@arcgis/core/geometry/operators/affineTransformOperator.js";const { execute, executeMany, supportsCurves } = await $arcgis.import("@arcgis/core/geometry/operators/affineTransformOperator.js");- Since
- ArcGIS Maps SDK for JavaScript 4.31
Applies an affine transformation to 2D geometries via the Transformation class.
Functions
| Name | Return Type | Object |
|---|---|---|
| | ||
| | ||
| |
execute
Function
Executes an affine transformation on the geometry.
- Signature
-
execute (geometry: GeometryUnion, transformation: Transformation): GeometryWithoutMeshUnion
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| geometry | The geometry to be transformed. | | |
| transformation | The transformation to apply to the | |
- Returns
- GeometryWithoutMeshUnion
Returns the transformed geometry.
executeMany
Function
Executes an affine transformation on multiple geometries.
- Signature
-
executeMany (geometries: GeometryUnion[], transformation: Transformation): GeometryWithoutMeshUnion[]
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| geometries | The geometries to be transformed. All the geometries must have the same spatial reference. | | |
| transformation | The transformation to apply to the | |
- Returns
- GeometryWithoutMeshUnion[]
Returns the transformed geometries.
Variables
supportsCurves
Variable
Indicates if the operator supports input geometries that contain curves.
The value will always be true.
- Type
- boolean