Geometric intersection

Updated at:

This topic describes how to use the geometric intersection operator.

Purpose

The geometric intersection operator calculates the spatial intersection between a primary table and an associated node.

Scenarios

Compute Link

Compute engine

Supported

Offline

PostgreSQL

Yes

Polar_PG

Yes

AnalyticDB for PostgreSQL (ADB_PG)

Yes

Usage notes

Source nodes

The geometric intersection operator requires two source nodes. Each source node acts as a table and must contain at least one geometry field. The operator uses these fields to find the spatial intersection between the two tables. If a table contains multiple geometry fields, the operator uses the first one by default. You can manually select a different geometry field.

Primary table

One of the input nodes is the primary table. By default, the first input node is the primary table. You can manually set another node as the primary table.

Intersection area threshold

If you do not set an intersection area threshold, the operator returns all records where the geometry fields of the primary table and the associated node intersect. If you set a threshold, the operator returns only the records where the intersection area is greater than or equal to the specified threshold.

Output fields

You can configure the fields that the current node outputs to the descendant node. By default, the output includes a geometry field for the intersection result, named `intersection_result`, and all fields from both source nodes. You can remove fields from the source nodes as needed. If the two source nodes have fields with the same name, the system renames one of the duplicate fields by adding a suffix. You can also manually rename the duplicate fields.