API reference

Everything below is generated from the source at build time. The page for a module is its module docstring plus one entry per public name, taken from the docstring of that name — there is no second copy of the API to keep in sync. The facade re-exports every public name, so itacart.geo_to_cell and itacart.cells.geo_to_cell are the same function and either import works.

itacart

ITACaRT - ITA Cadastral Ellipsoidal Reference Tessellation.

Reading order

The package is layered. At import time, each layer below depends on the ones above it and on nothing beneath, so reading downward never requires a forward reference. At call time the line is crossed in one direction only: four modules above it – resolutions, index, hierarchy and cells – and the private existence guard import boundary inside the functions that have to consult the border. Every module is paired with the conceptual page that argues what the module implements: the docstring states the contract, the concept page states why the contract is what it is.

Foundations

itacart.constants

Immutable values transcribed from the paper — the WGS84 ellipsoid, the resolution table, the refinement alphabets, the antemeridian extension zones. Data, not behaviour, with a single exception noted on the page. See The ITACaRT Grid.

itacart.exceptions

Every error the package raises, rooted at ITACaRTError, so a caller can guard a whole pipeline with one except and never catch a stray ValueError. Which failures are refusals rather than bugs is the subject of Cell Validity & Existence.

itacart.geodesy

The ellipsoidal sinusoidal projection and the geodesic solutions, computed from the paper’s equations. PROJ is not called at run time. See The Sinusoidal Construction.

itacart.resolutions

The resolution table and the refinement ratios, as helpers rather than as raw data. See Resolution & Scale.

Addressing

itacart.index

Parsing, composition and canonical form of the compositional index — the bridge between one string and the cells it addresses. See Index Structure and Composition & Decomposition.

itacart.hierarchy

Ascent, descent and compaction across resolutions. Note that the functions here divide into those that answer one value per cell and those that answer many, and that the two families collapse differently for a single cell; each docstring states which it is. See Parent, Children & Descendants, Compaction & Normalization and Lexical Ancestry vs Physical Refinement.

itacart.cells

Quantization and inverse geometry — the core mapping between an address and a position. See Point-to-Cell Indexing and Cell Geometry.

Working against geography

itacart.geometry

Vector geometry against the grid: filling a polygon, mapping vertices, canonical form. See Cell Filling / Polyfill, Containment Modes and Canonical Geometry.

itacart.topology

Neighbourhood and adjacency on the parallelogram lattice. See Neighbors & Grid Traversal and Grid Distance.

itacart.boundary

Prime meridian, antemeridian and extension zones — where the uniform grid stops being uniform. The whole of Boundaries & Global Continuity is the argument behind this module.

Numbering

itacart.integer_index

One 64-bit integer per cell, carrying the resolution, sorting in canonical order and reaching the lexical parent by arithmetic. It sits below the border because existence is the border’s to decide. See The Integer Index.

itacart.intervals

A region as sorted ranges of those integers at a chosen depth, with union, intersection, difference, containment, overlap and count. See Intervals.

Measuring

itacart.metrics

Cell shape metrics, for comparison against other DGGS implementations. Compactness and normalized area follow the conventions of Kmoch, Vasilyev, Virro and Uuemaa (2022) so that the numbers are comparable with that paper’s figures rather than merely accurate; the cell base angle is the ellipsoidal image of the 45 degree angle the ITACaRT paper draws on the sinusoidal plane. Each function’s page states which convention it transcribes and where the convention stops being trustworthy. See Area, Perimeter & Compactness and Base Angle & Shape.

Moving data

itacart.serialization

The binary encodings of indices, geometry and values on cells. See Serialization, GeometryBlob, TreeBlob and DataTreeBlob.

itacart.interop

Export to standard geospatial formats. What an export carries and what it necessarily drops is the subject of Geographic vs Grid Geometry; the format itself is covered in GeoJSON.

Standards

itacart.engine

The OGC-facing engine object, which is the shape the standard expects a reference system to present. What it conforms to, and where it does not, is in Conformance Status.