FME Transformers: 2024.1

Categories
Geometries
Spatial Analysis

AffineWarper

Performs warping operations on the spatial coordinates of features. It is used to adjust a set of observed input features according to a spatial transform defined by a set of control vectors. This transformer computes an affine (scale, rotation, and offset) transformation based on Control vector features and applies this transformation to the Observed features to generate output, and produces good corrections when the entire set of Observed data requires a single transformation.

Each Control feature represents a control vector (a 2-point line feature) whose start point is at some location in the original Observed data space, and whose end point is at the corresponding location in the desired output data space. Each control vector represents the correction required to go from the observed vertex to the desired vertex, in terms of direction and distance. Control vectors with only one point are interpreted as a requirement that this location not change from the observed dataset to the reference dataset. This is often referred to as a tie point.

Control vectors can be stored in a dataset of any format and read into FME, or generated directly in an FME workspace, which is often the case when the vectors are not known in advance and must be generated from incoming data.

Usage Notes

  • The RubberSheeter transformer provides similar functionality but applies a different transformation to each Observed vertex, depending on its distance to nearby Control vectors. This makes the RubberSheeter more appropriate for cases when the distortions in the data are not constant.
  • Please also see the Affiner, which performs an affine transformation on the coordinates of the feature.

Configuration

Input Ports

Two sets of features must be routed into this transformer.

Output Ports

Parameters

Editing Transformer Parameters

Transformer parameters can be set by directly entering values, using expressions, or referencing other elements in the workspace such as attribute values or user parameters. Various editors and context menus are available to assist. To see what is available, click beside the applicable parameter.

For more information, see Transformer Parameter Menu Options.

FME Community

The FME Community is the place for demos, how-tos, articles, FAQs, and more. Get answers to your questions, learn from other users, and suggest, vote, and comment on new features.

Search for all results about the AffineWarper on the FME Community.