1 year ago
#258885
Marc Compere
Cantor pairing function vs. Morton encoding?
why don't the Cantor Pairing function references discuss the Morton code, or Z-order space filling curves?
they seem to generate similar results with a single larger number uniquely represents number pairs or triples.
- Cantor pairing function
- Morton code, or Z-order curves
- there are others, for example the Rosenberg-Strong pairing function
both have encoding and decoding methods.
when to use which method???
the pymorton library seems mature and handles floating point numbers especially for the relevant bits of (lat,lon,elev) geographic points
encoding
pairing
0 Answers
Your Answer