A tquadbin value shares the same on-disk representation as tbigint. The binary-coercion cast between them is explicit — requiring :: — so quadbin-specific functions cannot be silently called on arbitrary bigint trajectories.
Convert between a tquadbin and a tbigint (explicit, zero-cost)
tbigint::tquadbin
tquadbin::tbigint
SELECT (tbigint '5192650370358181887@2001-01-01')::tquadbin; -- 480fffffffffffff@2001-01-01 SELECT ((tquadbin '480fffffffffffff@2001-01-01')::tbigint)::tquadbin = tquadbin '480fffffffffffff@2001-01-01'; -- true
Cast a temporal QUADBIN cell to a temporal planar (SRID 4326) point of cell centroids. The cast delegates to tquadbinCellToPoint.
tquadbin::tgeompoint
SELECT (tquadbin '480fffffffffffff@2001-01-01')::tgeompoint;