FME Transformers: 2024.2

Categories
Calculated Values
Format Specific
Geometries
Workflows
Related Transformers
GeometryReplacer
PointCloudExtractor
PointCloudReplacer
RasterExtractor
RasterReplacer

GeometryExtractor

Extracts the geometry of a feature according to the setting of the geometry encoding parameter.  

The resulting encoded geometry is added to the feature in an attribute. This attribute can later be restored as the feature's geometry via the GeometryReplacer transformer.

This transformer is often used to make a copy of the feature's geometry into an attribute before some temporary geometry change is made, so that it can later be restored.  Alternatively, the geometry may be extracted to be stored in a database or other file format that cannot handle geometry, but can handle large attributes as blobs or text strings.  Later, FME can read this data back and restore the geometry via the GeometryReplacer transformer.

Note that geometry-related format-specific attributes (such as such as geodb_type, autocad_entity, or shapefile_type) and coordinate systems are not extracted.

Usage Notes

  • GeometryExtractor does not perform any repairs to feature geometries during extraction. Geometries are extracted in their current state.

  • To carry out a similar operation on raster data, please use the RasterExtractor transformer. For point cloud data, please use the PointCloudExtractor.

  • Be sure to position this transformer as close as possible to where the geometry attribute is being used. Positioning the transformer too early can cause unnecessary use of system resources.

  • Geometry stored as an attribute may not retain its coordinate system. Use a CoordinateSystemExtractor if necessary.

Configuration

Output Ports

Note  Feature order may change in relation to other output ports. Feature order per port is maintained.

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.

Transformer History

This transformer contains the functionality of the now-deprecated OGCGeometryExtractor and XMLGeometryExtractor.

FME Community

The FME Community has a wealth of FME knowledge with over 20,000 active members worldwide. Get help with FME, share knowledge, and connect with users globally.

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