WKT_SPATIAL_CONTAINS | Qlik Cloud Help
Skip to main content Skip to complementary content

WKT_SPATIAL_CONTAINS

Last updated: 9/21/2026

Checks if the first WKT formatted spatial object contains the second.

Syntax

WKT_SPATIAL_CONTAINS(first, second)

Arguments

Name Type Description Default Value
first string The WKT formatted spatial object which should be contained by the second argument
second string The WKT formatted spatial object which should contain the first object

Examples

first second Output
"POLYGON((-10 30, -40 40, -10 -20, 40 20, 0 0, -10 30))" "POINT(10 0)" true
"POLYGON((-10 30, -40 40, -10 -20, 40 20, 0 0, -10 30))" "POINT(15 0)" false

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!