Set and Span Types

Input and Output

Constructors

  • set: Constructor for set types

  • span: Constructor for span types

  • spanset: Constructor for span set types

Conversions

Accessors

Transformations

  • expand: Expand or shrink the bounds by a value or an interval

  • shift: Shift by a value or interval

  • scale: Scale by a value or interval

  • shiftScale: Shift and scale by the values or intervals

  • floor, ceil: Round down or up to the nearest integer

  • round: Round to a number of decimal places

  • degrees, radians: Convert to degrees or radians

  • lower, upper, initcap: Transform to lowercase, uppercase, or initcap

  • ||: Text concatenation

  • tprecision: Set the temporal precision of the time value to the interval with respect to the origin

Spatial Reference System

Set Operations

  • +, -, *: Union, difference, or intersection of sets or spans

Bounding Box Operations

Topological Operations

  • &&: Do the values overlap (have values in common)?

  • @>: Does the first value contain the second one?

  • <@: Is the first value contained by the second one?

  • -|-: Is the first value adjacent to the second one?

Position Operations

  • <<, <<#: Is the first value strictly left of the second one?

  • >>, #>>: Is the first value strictly to the right of the second one?

  • &<, &<#: Is the first value not to the right of the second one?

  • &>, #&>: Is the first value not to the left of the second one?

Splitting Operations

  • splitNSpans: Return an array of N spans obtained by merging the elements of a set or the spans of a spanset

  • splitEachNSpans: Return an array of spans obtained by merging N consecutive elements of a set or N consecutive spans of a spanset

Distance Operations

  • <->: Return the smallest distance ever

Comparisons

Aggregations