ReprojectAngleCalculator

Converts a given angle from one coordinate system to another.

Jump to Configuration

Typical Uses

  • Determining angles for text and symbol rotation
  • Reprojecting angles stored as attribute values

How does it work?

The ReprojectAngleCalculator receives features with geometry and reprojects a given angle from one coordinate system to another.

The transformer starts with two points. One is the first coordinate of the input feature’s geometry, and the second is calculated from that point using the Original Line Angle and Original Line Length. Both of these points are reprojected from the Source Coordinate System to the Destination Coordinate System. A new angle is calculated from the reprojected points and added to the output feature as an attribute value.

The Original Line Angle may be provided as an attribute value, constant value, expression, user parameter, or conditional value.

Original Line Length is also required to perform the calculation, in the Source Coordinate System’s ground units. The length may be provided as an attribute, expression, constant, parameter, or conditional value. A length of one (1) is often appropriate for calculating rotation around a point, such as text and symbol rotation angles.

Both the Source and Destination Coordinate Systems must be specified explicitly.

Reprojections are generally performed using the FME (CS-Map) library, however, this transformer will honor the Workspace Parameter Reprojection Engine, and will use the Esri Reprojection Engine if it is selected there, with or without an Esri product being installed.

Z values are not supported.

This transformer assumes all coordinate systems are Cartesian.

Examples

Usage Notes

  • This transformer requires that features have geometry to provide an initial coordinate. Non-spatial features will not produce valid output. To create geometry for non-spatial data with coordinates as attributes, consider using a VertexCreator.

Working With Coordinate System Transformers

FME inherently supports coordinate system transformations and reprojections.

Configuration

Input Ports

Output Ports

Parameters

Editing Transformer Parameters

Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, click beside the applicable parameter. For more information, see Transformer Parameter Menu Options.

Defining Values

There are several ways to define a value for use in a Transformer. The simplest is to simply type in a value or string, which can include functions of various types such as attribute references, math and string functions, and workspace parameters. There are a number of tools and shortcuts that can assist in constructing values, generally available from the drop-down context menu adjacent to the value field.

Dialog Options - Tables

Transformers with table-style parameters have additional tools for populating and manipulating values.

Reference

Processing Behavior

Feature-Based

Feature Holding

No

Dependencies None
Aliases  
History  

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 ReprojectAngleCalculator on the FME Community.

 

Examples may contain information licensed under the Open Government Licence – Vancouver and/or the Open Government Licence – Canada.