Creates a set of measures attached to the geometry of the feature, where each value is the distance from the start of the line up to that vertex, multiplied by the given Multiplier.
This transformer is often used to load useful measure values into an attribute for writing to measure-supporting formats such as Shape, Geodatabase, and SDE.
The Length Dimension parameter controls how the distance will be calculated. The distance can be calculated as either a two-dimensional distance (in which case any z coordinates on the features will be ignored), or as a three-dimensional distance.
The first value will always be 0, since the length up to the very first point is 0. The last value will be the length of the entire line multiplied by the value set in the Multiplier parameter.
A Multiplier is applied to each distance before it is added to the list, to potentially scale each measurement by a fixed amount. By default, the multiplier is 1.
A Start Value is added to each distance before it is added to the list, to potentially add an offset to each measurement by a fixed amount. By default, the start value is 0.
You can enter an optional name for the resulting measures.
- To get measures as a list or a series of attributes (for example, if you need to manipulate the calculated measure values), place a MeasureGenerator followed by a MeasureExtractor and a ListConcatenator.
- To calculate the entire length of a feature, use the LengthCalculator.
- To calculate the partial length of a feature, use the LengthToPointCalculator.
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.
Search FME Knowledge Center
Search for samples and information about this transformer on the FME Knowledge Center.
Tags Keywords: chainage