Comparisons

Ever and Always Comparisons

The probe operand may be a bare h3index H3 cell identifier or another th3index trajectory; both are supported in either operand position.

  • Return true if a temporal H3 cell is ever equal to the probe at at least one instant

    ever_eq({h3index,th3index},th3index) → boolean

    ever_eq(th3index,h3index) → boolean

    {h3index,th3index} ?= th3index

    th3index ?= h3index

    SELECT th3index
      '[831c02fffffffff@2001-01-01, 880326b885fffff@2001-01-05]'
      ?= 880326b885fffff::h3index;
    -- true
    
  • Return true if a temporal H3 cell is always equal to the probe across its entire time axis

    always_eq({h3index,th3index},th3index) → boolean

    always_eq(th3index,h3index) → boolean

    {h3index,th3index} %= th3index

    th3index %= h3index

  • Return true if a temporal H3 cell is ever different from the probe

    ever_ne({h3index,th3index},th3index) → boolean

    ever_ne(th3index,h3index) → boolean

    {h3index,th3index} ?<> th3index

    th3index ?<> h3index

  • Return true if a temporal H3 cell is always different from the probe

    always_ne({h3index,th3index},th3index) → boolean

    always_ne(th3index,h3index) → boolean

    {h3index,th3index} %<> th3index

    th3index %<> h3index

Temporal Comparisons

  • Return a temporal boolean giving the per-instant equality (or inequality) between a temporal H3 cell and a probe

    temporal_teq({h3index,th3index},th3index) → tbool

    temporal_teq(th3index,h3index) → tbool

    temporal_tne({h3index,th3index},th3index) → tbool

    temporal_tne(th3index,h3index) → tbool

    {h3index,th3index} #= th3index

    th3index #= h3index

    {h3index,th3index} #<> th3index

    th3index #<> h3index