AverageElevationCalculator

From Fmepedia

The transformer calculates an average elevation of area or linear features based on vertex elevations.

For area features the last point is excluded from calculation.

For linear features, even when they are closed, the last vertex is considered in the calculation.

The transformer adds a new attribute _AverageElevation.

There is an interesting technique used in the transformer. StringReplacer, Concatenator and TCLCaller form and execute a TCL script where the actual calculation is happening.

The workspace included into archive illustrates how this transformer works with both areas and linear features.

This transformer was created as a part of a bigger workspace requested by a customer.

Attached Files
filesizedate
AverageElevationCalculator.zip14.6 kB01/17/07
User Comments Add a new comment