Nombre

Intersects — Devuelve verdadero si cualquier par de primitivas de las dos topogeometries se intersectan.

Sinopsis

boolean Intersects(topogeometry tg1, topogeometry tg2);

Description

Devuelve verdadero si cualquier par de primitivas de las dos topogeometries se intersectan.

[Nota]

This function not supported for topogeometries that are geometry collections. It also can not compare topogeometries from different topologies. Also not currently supported for hierarchical topogeometries (topogeometries composed of other topogeometries).

Disponibilidad: 1.1.0

This function supports 3d and will not drop the z-index.

Ejemplos

The following example uses the nei_topo table created in the toTopoGeom examples.

Code
SELECT topology.Intersects(a.topo, b.topo)
FROM nei_topo AS a
JOIN nei_topo AS b ON b.gid = a.gid
WHERE a.gid = 1;
Output
t

Ver también

ST_Intersects