Resolution & Scale

The resolution ladder is decimal. That is the reason a cell count can be read directly as an area.

import itacart
table = itacart.resolution_table()
len(table)
14

Fourteen entries. Resolution 0 addresses the quadrant and carries no metric size; the sized levels run from resolution 1 down to resolution 13.

[(row["resolution"], row["cell_size_m"], row["cell_area_m2"])
 for row in table if row["resolution"] in (1, 3, 5, 9, 13)]
[(1, 10000.0, 100000000.0),
 (3, 1000.0, 1000000.0),
 (5, 100.0, 10000.0),
 (9, 1.0, 1.0),
 (13, 0.01, 0.0001)]

Ten kilometres, one kilometre, one hundred metres, one metre, one centimetre — and the areas are the squares of those: one hundred square kilometres down to one square centimetre. Every one is a round metric quantity.

Why the refinement alternates

Getting from ten to one in metric takes two steps, not one: ten halves to five, and five divides by five to one. A grid refines by the same two steps, applied to each axis.

itacart.constants.REFINEMENT_RATIO[2:10]
(4, 25, 4, 25, 4, 25, 4, 25)
The 1-to-25 and 1-to-4 hierarchical refinement

Figure 2 of the paper: the two refinements, side by side. docs/_static/fpaper/fpaper_02_hierarchical_refinement.png

Halving each axis gives four children; dividing each axis by five gives twenty-five. Alternating them walks the decimal ladder exactly, which a single constant ratio cannot do — quadtrees give powers of two and never land on a round metric size, and a uniform 1-to-25 overshoots.

Alternation between the two refinement ratios across resolutions

The alternation across the ladder. docs/_static/f2/f2_01_resolution_alternation.png

The 1-to-4 and 1-to-25 refinement grids

The two refinement grids: four children on even levels, twenty-five on odd. docs/_static/f2/f2_02_refinement_grids.png

The two ratios are also why the index alphabet changes between levels. A level that refines into four needs four codes; a level that refines into twenty-five needs twenty-five, which is where the A1–E5 alphabet comes from. Index Structure reads an address against these alphabets.

Choosing a resolution

Cadastral work spans a wide range of scales — the paper takes roughly 1:500 for urban plots out to 1:10 000 for large rural regions as the range a cadastral hierarchy has to cover. The table carries a suggested scale for each resolution, separately for visualisation and for analysis, because the resolution at which a grid is legible is not the resolution at which it is trustworthy to measure:

[(row["resolution"], row["visualization_scale"], row["analysis_scale"])
 for row in table if row["resolution"] in (1, 9, 13)]
[(1, 100000000, 20000000), (9, 10000, 2000), (13, 100, 20)]

The analysis scale is consistently finer than the visualisation scale — a cell you can see is coarser than a cell you should compute with. Choosing Resolution from Mapping Scale turns this into a procedure for a real parcel.

The ceiling

Resolution 13 is the finest level. Asking for children beyond it is refused rather than approximated:

from itacart.exceptions import MaxResolutionError
finest = itacart.geo_to_cell(-46.6328862, -23.5508962, resolution=13)
try:
    list(itacart.get_children(finest, flatten=True))
except MaxResolutionError as exc:
    print(exc)
'SW(0476/0260(4(A2(4(A4(1(E5(4(D4(1(B2(4(B4)))))))))))))' is at resolution 13 and has no children

One centimetre is below the precision any GNSS-referenced cadastral survey delivers, so the ceiling is not a limitation in practice — it is where the grid stops promising more than the measurement can support.