Devolver la distancia temporal de saltos en la cuadrícula (número de pasos de una sola celda) entre dos celdas temporales. De forma equivalente, el operador <-> devuelve la misma distancia. Los dos operandos se sincronizan sobre su eje de tiempo compartido.
th3GridDistance(th3index,th3index) → tbigint th3index <-> th3index → tbigint
SELECT th3index '880326b885fffff@2001-01-01' <-> th3index '880326b88dfffff@2001-01-01'; -- 1@2001-01-01
Convertir entre una celda temporal y un par de coordenadas locales (I, J) temporales relativas a una celda temporal de origen. La coordenada local se expone como un tgeompoint con el eje I en el slot x y J en y.
th3CellToLocalIj(th3index,th3index) → tgeompoint th3LocalIjToCell(th3index,tgeompoint) → th3index
SELECT asText(th3CellToLocalIj(th3index '871fa44a8ffffff@2001-01-01',
th3index '871fa44aeffffff@2001-01-01'));
-- POINT(497 320)@2001-01-01
-- The two are inverse of each other.
SELECT th3LocalIjToCell(th3index '871fa44a8ffffff@2001-01-01',
th3CellToLocalIj(th3index '871fa44a8ffffff@2001-01-01',
th3index '871fa44aeffffff@2001-01-01'));
-- 871fa44aeffffff@2001-01-01