itacart.resolutions.scale_for_resolution

itacart.resolutions.scale_for_resolution(resolution, kind='visualization')[source]

Cartographic scale denominator matching a resolution.

visualization follows the minimum visible line of 0.1 mm on paper maps (Jenny et al., 2008), hence denominator = side_m / 1e-4. analysis follows sampling theory at 0.5 mm (Tobler, 1987), hence denominator = side_m / 5e-4. The ratio between the two columns is therefore 5 at every resolution.

Parameters:
  • resolution (int) – Resolution level, 1 to 13.

  • kind (Literal['visualization', 'analysis'], default: "visualization") – Which of the two scale families to report.

Return type:

int

Returns:

Scale denominator, e.g. 10_000 for 1 – 10 000.

Raises:

ResolutionError – If resolution is 0 or out of range, or if kind is not a known scale family.