Spatial Relationships

The spatial relationships evaluate a th3index argument through its per-instant cell-boundary geometry — the hexagonal footprint of each cell, as returned by th3CellToBoundary — and then apply the corresponding relationship of the temporal geometry types. Each relationship has three quantified forms: the e-prefixed ever form returns true when the relationship holds at some instant, the a-prefixed always form when it holds at every instant, and the t-prefixed temporal form returns a tbool of the instant-by-instant result. Every form accepts the three argument orderings (geometry, th3index), (th3index, geometry), and (th3index, th3index).

SELECT eContains(
  geometry 'SRID=4326;Polygon((4.20 50.70, 4.50 50.70, 4.50 50.90, 4.20 50.90, 4.20 50.70))',
  th3index '871fa44a8ffffff@2001-01-01');
-- true