The Search at Location step matches input locations to reference location features based on the selected spatial predicate and appends selected reference fields to a Data Quality pipeline.
Use Search at Location when your pipeline records contain locations and you want to add attributes from a cataloged spatial reference dataset. The step supports input locations from geometry columns or latitude and longitude columns, then matches each input location against the selected reference geometry column.
The output schema is fixed when you save the step. If an input row has fewer than 10 matches, unused output fields contain null values. If an input row has more than 10 matches, the step returns up to 10 matches.
Search at Location properties
The following table describes the main settings in the Search at Location step.
| Field | Description |
|---|---|
| Geometry Type | Choose whether the step reads a geometry column or latitude and longitude columns from the input dataset. |
| Geometry | Select the input geometry column. Geometry columns render as geometry features in the preview. |
| Latitude and Longitude | Select coordinate columns when the input location is stored as separate latitude and longitude values. |
| Reference or spatial dataset | Select one readable cataloged spatial dataset to search. When you change the reference dataset, the step resets the selected output fields. |
| Reference Geometry Column | Select the geometry column in the reference dataset. The step matches the input location against this column. |
| Output Fields | Select the reference dataset fields to add to the pipeline output. |
| Spatial Predicate | Select Intersect, Within, or Contains. The default value is Intersect, and all predicates remain available as you configure the step. |
| Buffer Distance | Enter a buffer distance when the search should use an area around the input geometry before matching reference features. Supported units are m, km, ft, and mi. |
| Prefix | Enter the prefix for output fields created by this step. The prefix must not duplicate a prefix used by another Search at Location step in the same pipeline. |
| Include Match Count and Include Match Index | Add match summary fields to the output. These fields use the configured prefix. |
Spatial predicates
The spatial predicate controls how the input location is compared with the reference geometry column.
| Predicate | Description |
|---|---|
| Intersect | Returns a match when the input geometry touches or overlaps the reference geometry. |
| Contains | Returns a match when the input geometry fully surrounds the reference geometry. |
| Within | Returns a match when the input geometry falls completely inside the reference geometry. |
Preview results
Select Preview to review the spatial matches before you save the step. Preview results are available in Table, Map, and Both views.
In the expanded map preview, you can choose an input field to identify each row. If you do not choose an identifier field, the preview displays match type information without adding a generated label.
If preview returns no matches, the results area displays a warning that recommends changing the spatial predicate, increasing the buffer distance, or selecting a different reference dataset. The warning clears when you change the step configuration or rerun preview and receive matches.
Validation
The step requires an input location, a reference dataset, selected output fields, and a prefix before you can save the configuration. Invalid geometry selections, unsupported coordinate values, negative buffer distances, and duplicate prefixes prevent preview or save until you correct the configuration.
Runtime and coordinate requirements
For Databricks, Search at Location requires Databricks Runtime (DBR) 17.2 or later.
Search at Location supports spatial data that uses spatial reference identifier (SRID) 4326. SRID 4326 corresponds to World Geodetic System 1984 (WGS 84).