Search Shortcut cmd + k | ctrl + k
lindel

Linearization/Delinearization, Z-Order, Hilbert and Morton Curves

Maintainer(s): rustyconover

Installing and Loading

INSTALL lindel FROM community;
LOAD lindel;

About lindel

For more information regarding usage, see the documentation.

Added Functions

function_name function_type description comment examples
hilbert_encode scalar Encode an array of values using the Hilbert space filling curve NULL [select hilbert_encode([43, 3]::integer[2]);]
hilbert_decode scalar Decode a Hilbert encoded set of values NULL [select hilbert_decode(7::uint16, 2, false, true) as values;]
morton_encode scalar Encode an array of values using Morton encoding NULL [select morton_encode([43, 3]::integer[2]);]
morton_decode scalar Decode an array of values using Morton encoding NULL [select morton_decode(7::uint16, 2, false, true) as values;]