Crosses

Description

Determines if a geometry (testGeometry) object crosses (touches) another geometry (containerGeometry) object.

Syntax

Crosses ( testGeometry, containerGeometry )

Arguments

containerGeometry and testGeometry are geometry objects (or expressions),

Example

Determines if the defined box crosses any of the specified countries.

select Crosses(MI_Box(-13.36676789,8.05796847,79.06334219,62.70540978,'epsg:4326'),[Geometry_Column]) from countries where country = ANY ('Mauritania','Mali','Algeria')

Remarks

Returns true if testGeometry crosses the containerGeometry, false otherwise. The Crosses operation will return false in cases where either WITHIN or CONTAINS are true. If either containerGeometry or testGeometry are null, false is returned. The function is performed using the coordinate system of the (containerGeometry).