FME Transformers: 2024.2

Categories
Spatial Analysis
Workflows
Related Transformers
ListSorter
Sorter

SpatialSorter

Sorts features geographically (by location).

Jump to Configuration

Typical Uses

  • Sorting features according to their location.

How does it work?

The SpatialSorter receives features and sorts them based on their location. Output features are ordered so that features appearing consecutively in the output order were spatially located near each other in the input.

Features may be sorted in either 2D or 3D.

Note that a difference in the order of the input features can produce slightly varying output order results when there are multiple possible partition points with the same median coordinate values in the group.

Hilbert sort in 2D

The sorting location used for each geometry is the center of its bounding box. Geometries with no coordinates are output last.

Hilbert sort in 3D

The sorting location used for each geometry is the center of its bounding cube. 2D geometries processed with the 3D curve will have a z value assigned of 0.0. Geometries with no coordinates are output last.

Usage Notes

  • This transformer tries to balance speed and memory usage by storing some features in memory and some in a temporary disk file.

Configuration

Input Ports

Output Ports

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.

Reference

Processing Behavior

Group-Based

Feature Holding

Yes

Dependencies None
Aliases  
History  

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

 

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