Functions and Operators for Box Types

Constructor Functions

Casting

Accessor Functions

  • hasX: Has X dimension?

  • hasZ: Has Z dimension?

  • hasT: Has T dimension?

  • Xmin: Get the minimum X value

  • Xmax: Get the maximum X value

  • Ymin: Get the minimum Y value

  • Ymax: Get the maximum Y value

  • Zmin: Get the minimum Z value

  • Zmax: Get the maximum Z value

  • Tmin: Get the minimum timestamp

  • Tmax: Get the maximum timestamp

Modification Functions

  • expandValue: Expand the numeric value dimension of the bounding box by a float value

  • expandSpatial: Expand the spatial value dimension of the bounding box by a float value

  • expandTemporal: Expand the temporal dimension of the bounding box by a time interval

  • setPrecision: Round the value or the coordinates of the bounding box to a number of decimal places

Spatial Reference System Functions

  • SRID: Get the spatial reference identifier

  • setSRID: Set the spatial reference identifier

  • transform: Transform to a different spatial reference

Comparison Operators

  • =: Are the bounding boxes equal?

  • <>: Are the bounding boxes different?

  • <: Is the first bouding box less than the second one?

  • >: Is the first bouding box greater than the second one?

  • <=: Is the first bouding box less than or equal to the second one?

  • >=: Is the first bouding box greater than or equal to the second one?

Set Operators

  • +: Union of the bounding boxes

  • *: Intersection of the bounding boxes

Topological Operators

  • &&: Do the bounding boxes overlap?

  • @>: Does the first bounding box contain the second one?

  • <@: Is the first bounding box contained in the second one?

  • ~=: Are the bounding boxes equal in their common dimensions?

  • -|-: Are the bounding boxes adjacent?

Relative Position Operators

  • <<: Are the X values of the first bounding box strictly less than those of the second one?

  • >>: Are the X values of the first bounding box strictly greater than those of the second one?

  • &<: Are the X values of the first bounding box not greater than those of the second one?

  • &>: Are the X values of the first bounding box not less than those of the second one?

  • <<: Are the X values of the first bounding box strictly to the left of those of the second one?

  • >>: Are the X values of the first bounding box strictly to the right of those of the second one?

  • &<: Are the X values of the first bounding box not to the right of those of the second one?

  • &>: Are the X values of the first bounding box not to the left of those of the second one?

  • <<|: Are the Y values of the first bounding box strictly below of those of the second one?

  • |>>: Are the Y values of the first bounding box strictly above of those of the second one?

  • &<|: Are the Y values of the first bounding box not above of those of the second one?

  • |&>: Are the Y values of the first bounding box not below of those of the second one?

  • <</: Are the Z values of the first bounding box strictly in front of those of the second one?

  • />>: Are the Z values of the first bounding box strictly back of those of the second one?

  • &</: Are the Z values of the first bounding box not back of those of the second one?

  • /&>: Are the Z values of the first bounding box not in front of those of the second one?

  • <<#: Are the T values of the first bounding box strictly before those of the second one?

  • #>>: Are the T values of the first bounding box strictly after those of the second one?

  • &<#: Are the T values of the first bounding box not after those of the second one?

  • #&>: Are the T values of the first bounding box not before those of the second one?