itacart.constants
Immutable constants of the ITACaRT specification.
All values transcribed from Silva, Dietzsch & Shiguemori (2025), Revista Brasileira de Cartografia, v. 77. DOI: 10.14393/rbcv77n0a-79281
Provenance: itacart_core/resolutions.py and Table 1 of the paper.
The module holds data, not behaviour. The single exception is
refinement_alphabet(), a lookup over REFINEMENT_ALPHABET that
exists so the even/odd predicate is written once in the whole package
(see the warning on QUINARY_CODES).
Reading note: the section comments follow the paper’s own numbering, and every constant carries the figure, table or equation it is taken from, so that checking this module against the PDF is a mechanical exercise.
Module constants
Semi-major axis, in metres. |
|
Inverse flattening (1/f). |
|
Flattening, derived from |
|
|
|
|
|
8.1819190842622e-2. |
|
Second eccentricity squared, |
|
Meridian quadrant of the WGS84 ellipsoid, in metres. |
|
Half-equator length on the sinusoidal plane, |
|
PROJ string of the equivalent projection. |
|
Longitude of the prime meridian, in degrees. |
|
Longitude of the antemeridian, in degrees. |
|
14, from global quadrant to 1 cm. |
|
Base and height of a cell, in metres, indexed by resolution. |
|
Nominal cell area, in square metres, indexed by resolution. |
|
Denominator of the visualization scale (Jenny et al., 2008). |
|
Denominator of the analysis scale (Tobler, 1987). |
|
Resolutions whose cell size is an exact power of ten metres. |
|
Number of FULL 10 km cells along the equator, per quadrant. |
|
Number of FULL 10 km cells along the central meridian, per quadrant. |
|
Lowest resolution-1 address of a quadrant (paper, Table 1). |
|
Highest resolution-1 address of a quadrant (paper, Table 1). |
|
2 x 2. |
|
5 x 5. |
|
1-to-4 refinement codes, used to address EVEN resolutions (2, 4, ..., 12). |
|
1-to-25 refinement codes (A1..E5), addressing ODD resolutions (3, 5, ..., 13). |
|
Number of children produced when descending INTO each resolution. |
|
Alphabet addressing each resolution, derived from |
|
Table 1 as a sequence indexed by resolution. |
|
|
|
Canonical single-cell example from the paper (section 3.1). |
|
two cells, one index. |
|
Eastern-quadrant extensions across the antemeridian. |
|
Longitude precision adopted for extension limits, in degrees. |
|
Every shape a cell may take, in order of decreasing frequency. |
|
Acute angle of the cell on the projection plane, before ellipsoidal distortion. |
|
Base-to-height ratio of the isosceles prime-meridian cell (Figure 4a). |
Functions
Return the refinement alphabet addressing |
Classes
Bounds of one eastern-quadrant extension across the antemeridian. |
|
One row of Table 1, addressable by resolution. |