can calculated from the least (or most?) significant bit
the length of hilbert curve quadkey / quadtree string is the level
if the level is explicit then the extra digits are dropped or added (from / to the end?)
id encoding
Note that + means concat and NOT add
face bits + position bits + 1 + pad(bits, 0)
// id 9749618446378729472
// quadkey 4/032212303102210
// base 4 10 032212303102210 1000000000000000
// base 10 100 001110100110110011010010100100 1000000000000000000000000000000
Note that + means concat and NOT add
// psuedo-code
// This WON'T work because JavaScript uses 31-bit integers (53-bit floats)
var faceBits = 3;
var maxLevel = 30;
var maxBits = (maxLevel * 2) + 1; // one bit is lost to the marker
var str = face.toString(2) + position.toString(2) + '1';
str = padRight(str, maxBits, '0');
// 4/032212303102210
// 4 032212303102210 1000000000000000
// 100 0001110100110110011010010100100 1000000000000000000000000000000
Is it possible to directly derive a CellId, such as 9749618446378729472 from the face,quadtree pair, such as 4/032212303102210?
face encoding
position encoding
level encoding
id encoding
Note that
+
meansconcat
and NOTadd
Note that
+
meansconcat
and NOTadd
Expected: