affineTransformOperator

AMD: require(["esri/geometry/operators/affineTransformOperator"], (affineTransformOperator) => { /* code goes here */ });
ESM: import * as affineTransformOperator from "@arcgis/core/geometry/operators/affineTransformOperator.js";
Object: esri/geometry/operators/affineTransformOperator
Since: ArcGIS Maps SDK for JavaScript 4.31

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

Property
supportsCurves Booleanreadonly

Indicates if the operator supports input geometries that contain curves.

Default Value: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

Method
execute(geometry, transformation){GeometryUnion}

Executes an affine transformation on the geometry.

Parameters
geometry GeometryUnion

The geometry to be transformed.

transformation Transformation

The transformation to apply to the geometry.

Returns
Type Description
GeometryUnion Returns the transformed geometry.

executeMany

Method
executeMany(geometries, transformation){GeometryUnion[]}

Executes an affine transformation on multiple geometries.

Parameters
geometries GeometryUnion[]

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

transformation Transformation

The transformation to apply to the geometries.

Returns
Type Description
GeometryUnion[] Returns the transformed geometries.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.