The Spatial Match tool establishes the spatial relationship (contains, intersects, touches, etc) between two sets of spatial objects. The tool accepts a set of spatial objects from the Target Input and a set of spatial objects from the Universe Input. At least one input stream should contain Polygon type spatial objects.
A Universe input connection into this tool is optional (this file can be specified via an input path ), as indicated by the white input connection arrow .
For each record from the Targetâs data stream, the Spatial Match tool analyzes the spatial objectâs extents and attempts to find a record in the Universeâs data stream whose spatial objectâs extents intersect with that of the Target's. If a matching record is found in the Universe Input, it is sent through the Matched output, and joined to the Target record. If no matching Universe Input record is found, the Target record is sent through the Unmatched output.
The Spatial Match tool produces a single or double data stream with one record for each instance of a Target Input record matching a Universe Input record. The schema of the output table is formed by appending the fields from both records into one wide record.
While using spatial tools, you may have more than one spatial object field in the data stream. When you are configuring the final output tool, you must remember that output to files such as.dbf,.xls or.csv will not accept the spatial object fields, and that spatial files will accept only one spatial object field.
The Spatial Match tool accepts two spatial inputs.
When working with polygons on both sides, the physically larger polygons should be on the Targets side. When working with polygons and points, the polygon should be on the Targets side.
Specifying a *.yxdb file for direct import is a more efficient vehicle for running a Spatial Match. In fact, it is good practice to convert any static polygon file (such as basic geographies: States, Counties, etc.) to a pre-sorted *.yxdb file. See the FAQ for more information.
If specifying a Calgary (cydb) file, be aware that the Calgary spatial index uses 5 decimal places of accuracy for compression and speed. The YXDB spatial index uses 6 decimal places. This adds an addition round off error of up to a maximum of 1.8 feet to Calgary indexes. In other words, it is possible that a point can be 1.8 feet inside of a polygon and be found as outside in Calgary.
Specify the type of Spatial Match to calculate:
or
When bringing Line type objects into the Spatial Match, matching is based on the bounding rectangle only.
Notice the check box to output the intersection polygon, when checked the intersection polygon will be included in downstream tools.
This option is only available when Intersects is selected, and is only relevant when matching polygon to polygon.
The intersection polygon refers ONLY to the area occupied by BOTH polygon Objects.
Use the table to modify the incoming data stream. Each row in the table represents a column in the data.
To include a column in data, select the check box to the left of the column name. Deselect the check box to exclude the column.
To reorder the columns of data:
The Unknown column is selected by default. It allows new columns in the data. Move the column to the location where you want a new column to be.
To change the supported length (characters for string and numeric fixed decimal types) or measurement (bytes for other numeric types) of data in a column, click Size and type a number. Size varies by data type and can be edited for fixed decimal numeric types and all string types. See Data Types.
Use the [data type]: Forced option to ensure a column always contains the expected data type; this is helpful when creating macros. See Macros.
To change the name of a column, click Rename and type the new name.
To add a description, click Description and type a description.
After selecting or highlighting rows (columns of data) in the table, click Options to view more configuration options:
There are two Output Streams on the Spatial Match tool:
For more information on the Spatial Match tool, see the Spatial Match Behavior page.
©2018 Alteryx, Inc., all rights reserved. Allocate®, Alteryx®, Guzzler®, and Solocast® are registered trademarks of Alteryx, Inc