Skip to content
import { execute, executeMany, supportsCurves } from "@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

execute

Function

Executes an affine transformation on the geometry.

Signature
execute (geometry: GeometryUnion, transformation: Transformation): GeometryWithoutMeshUnion
Parameters
ParameterTypeDescriptionRequired
geometry

The geometry to be transformed.

transformation

The transformation to apply to the geometry.

Returns
GeometryWithoutMeshUnion

Returns the transformed geometry.

executeMany

Function

Executes an affine transformation on multiple geometries.

Signature
executeMany (geometries: GeometryUnion[], transformation: Transformation): GeometryWithoutMeshUnion[]
Parameters
ParameterTypeDescriptionRequired
geometries

The geometries to be transformed. All the geometries must have the same spatial reference.

transformation

The transformation to apply to the geometries.

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