ST_Intersects - Spectrum_Location_Intelligence_for_Big_Data - 5.2.1

Location Intelligence SDK for Big Data Guide

Product type
Software
Portfolio
Locate
Product family
Spectrum
Product
Spatial Big Data > Location Intelligence SDK for Big Data
Version
5.2.1
Language
English
Product name
Location Intelligence for Big Data
Title
Location Intelligence SDK for Big Data Guide
Copyright
2024
First publish date
2015
Last updated
2024-10-16
Published on
2024-10-16T13:55:01.634374

Description

The ST_Intersects function determines whether or not one geometry object intersects another geometry object.

Syntax

ST_Intersects(WritableGeometry geometry1, WritableGeometry geometry2)

Parameters

Parameter Type Description
geometry1 WritableGeometry The first instance of a WritableGeometry.
geometry2 WritableGeometry The second instance of a WritableGeometry.

Return Values

Return Type Description
Boolean True, if there is any direct position in common between the two geometries; otherwise, False.

If either geometry1 or geometry2 are null, Null is returned.

Examples

SELECT ST_Intersects(ST_GeomFromWKT(t1.geometry, 'epsg:4326'), ST_GeomFromWKT(t2.geometry, 'epsg:4326')) 
FROM table1 t1, table2 t2;
SELECT R.highway FROM USA_RIVERS L, usa_highways R WHERE L.name='Hudson River' AND 
ST_Intersects(st_GeomFromWKT(L.geom), ST_GeomFromWKT(R.geom));