Spatial Join Transformers

These are transformers that join data on the basis of a spatial relationship. There are many of these in FME Workbench, but the following are some of the key ones.

Overlayers

There are a number of different "overlayer" transformers, each handling a different form of overlay. For example the PointOnAreaOverlayer carries out a spatial join on points that fall inside area (polygon) features. As the help explains, "Each point receives the attributes of the area(s) it is contained in, and each containing area receives the attributes of each point it contains."

Here the facility features are being provided with a postal code depending on which postal code polygon feature they fall inside.

The "_overlaps" attribute is another useful outcome of this transformer. It tells us how many polygons each facility fell inside; in this case it would be an easy way to spot the problem of a facility falling inside more than one postal code.

Conversely, the Area output would have an "_overlaps" attribute that would tell us how many facilities fell inside each postal code.


NeighborFinder

The NeighborFinder transformer carries out a spatial join based on a proximity relationship.

Here the NeighborFinder is being used to identify the closest fire hall to each facility. The FireHallId and FireHallAddress attributes will be merged onto each Facility feature along with a number of useful attributes recording the X/Y coordinate, direction, and distance of the closest fire hall.

The parameters of the NeighborFinder includes the ability to specify a maximum distance for the relationship, or the maximum number of neighbors to find.


FeatureReader

The FeatureReader is the spatial equivalent of the Joiner transformer. It reads from an external dataset and forms a match based on a spatial relationship between the initiating feature and features in that dataset.

Here the FeatureReader is being used to carry out the same overlay of facility and postal code, but the postal code information is being stored in a separate database and queried to retrieve data based on the spatial relationship with the facility.


SpatialFilter

The SpatialFilter - as its name suggests - filters data according to a spatial relationship. However, it does also merge attributes from one feature to another, therefore can be said to be a type of Spatial Join.


Miss Vector says...
Here is a question on data joins. Look at the following screenshot, then answer how many features will appear in the output connection...



1. Eight (8)
2. Eighteen (18)
3. Twenty-six (26)
4. Can't tell

results matching ""

    No results matching ""