文档

被包含算子

更新时间:

判断右侧对象的外包框是否在指定维度上包含左侧对象的外包框。

语法

{geometry, trajectory, boxndf} /<@/ {geometry, trajectory, boxndf}
{trajectory, boxndf} #<@# {trajectory, boxndf}
{geometry, trajectory, boxndf} <@ {geometry, trajectory, boxndf}
{geometry, trajectory, boxndf} </@ {geometry, trajectory, boxndf}
{trajectory, boxndf} <#@ {trajectory, boxndf}
{trajectory, boxndf} </#@ {trajectory, boxndf}

参数

参数名称

描述

算子左侧参数

包含对象。

算子右侧参数

被包含对象。

描述

判断右侧对象的外包框(由ST_MakeBox函数生成的BoxNDF类型)是否在指定的维度上包含左侧对象的外包框,与包含算子含义相反。

支持的被包含算子如下:

  • /<@/:左侧z维度被右侧z维度包含。

  • #<@#:左侧t维度被右侧t维度包含。

  • <@:左侧xy二维空间被右侧xy二维空间包含。

  • <&@:左侧xyz三维空间被右侧xyz三维空间包含。

  • <#@:左侧xyt二维时空被右侧xyt二维时空包含。

  • </#@:左侧xyzt三维时空被右侧xyzt三维时空包含。

示例

WITH box AS(
    SELECT ST_MakeBox3dt(0,0,0, '2010-01-01 00:00:00',10,10,10, '2012-01-01 00:00:00') a,
           ST_MakeBox3dt(6,6,3,'2010-01-01 00:00:00',8,8,5,'2013-01-01 00:00:00') b
)
SELECT b /<@/ a AS OpZ, b #<@# a AS OpT, b <@ a AS Op2D, b </@ a AS Op3D, b <#@ a AS Op2DT, b </#@ a AS Op3DT from box;
 opz | opt | op2d | op3d | op2dt | op3dt 
-----+-----+------+------+-------+-------
 t   | f   | t    | t    | f     | f
  • 本页导读 (1)
文档反馈