itacart.resolutions.scale_for_resolution
- itacart.resolutions.scale_for_resolution(resolution, kind='visualization')[source]
Cartographic scale denominator matching a resolution.
visualizationfollows the minimum visible line of 0.1 mm on paper maps (Jenny et al., 2008), hencedenominator = side_m / 1e-4.analysisfollows sampling theory at 0.5 mm (Tobler, 1987), hencedenominator = side_m / 5e-4. The ratio between the two columns is therefore 5 at every resolution.- Parameters:
- Return type:
- Returns:
Scale denominator, e.g.
10_000for 1 – 10 000.- Raises:
ResolutionError – If
resolutionis 0 or out of range, or ifkindis not a known scale family.