VolumeCalculator
Calculates the volume of a solid object and stores the value in an attribute. The volume is calculated in cube map units, whatever they are.
Input Ports
This transformer accepts all geometries.
Output Ports
This transformer calculates the volume of any solid geometries.
For non-3D solid geometries, a volume of zero is always returned.
Parameters
Geometry Part Selection
Use this parameter if you want to isolate only a portion of the geometry passed in to the transformer. If no criteria are specified, the action will apply to the entire geometry at all levels.
Selection can be based on structural location, geometry name, type, appearance information, traits, trait storage types, or definition reference. The syntax used is a restricted set of XQuery, where the return clause is fixed.
The basic Geometry XQuery dialog allows you to construct simple selection queries by automatically writing the necessary query based on specified test clauses. Clicking the Switch to Advanced button opens the Advanced Editor, which allows you to type a query free-form, for more expressive queries.
Note: Once you switch to Advanced mode, you will have to clear all parameters before you can return to Basic mode.
A hierarchical geometry is represented as nodes of type geometry, with attributes containing information about traits, type, and name for each geometry.
Parameters
The attribute that contains the total volume of the solid feature. If the Geometry XQuery parameter is used, then only those sub-parts that are filtered will contribute to this total.
This parameter can be used to scale the volume from being cube ground units (the units of the feature's coordinates) to something else.
This parameter may either be entered as a number, or can be taken from the value of a feature attribute by selecting the attribute name from the pull-down list.
If this parameter is selected, each sub-part of the geometry will have its own volume saved as a trait on that geometry part. The name of the trait will be the same as that specified in the Volume Attribute parameter.
The volume of a part is considered to be the total volume of that part and any sub-parts it may have.
This parameter is often most useful when used with the Geometry XQuery parameter.
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.
Transformer Categories
FME Licensing Level
FME Professional edition and above
Related Transformers
Technical History
Associated FME function or factory: @Area
Search FME Community
Search for samples and information about this transformer on the FME Community.
Tags Keywords: Euclidean