itacart.resolutions.is_tokenizable_resolution
- itacart.resolutions.is_tokenizable_resolution(resolution)[source]
Whether cells at this resolution carry a whole-number metric area.
Decimal convergence is what makes one token equal one standard unit of area in a blockchain registry. Resolution 13 gives exactly 1 cm2.
True at resolution 1 and at every odd resolution, whose sides are exact powers of ten metres. Even resolutions carry sides of the form 5 x 10^k, regular but not decimal.
Resolution 1 is a deliberate divergence from the origin, which enumerates only the odd levels. Its side of 10 km is 10^4 m and its area 10^8 m2, so it satisfies the stated property, and the paper does not enumerate the set either way.
Provenance:
itacart_core/engine.py(IDGGSEngine) anditacart_core/resolutions.py(_TOKENIZABLE_RESOLUTIONS).- Parameters:
resolution (
int) – Resolution level, 1 to 13.- Return type:
- Returns:
Truewhen the nominal area is a whole number in its natural metric unit.- Raises:
ResolutionError – If
resolutionis 0 or out of range.