OGC / ISO 19170 Overview

What the standard asks of a discrete global grid reference system, in the terms the standard itself uses.

import itacart
report = itacart.conformance()
report["standard"], list(report["classes"])
('OGC 20-040r3 (ISO 19170-1)', ['core', 'eaers'])

OGC 20-040r3, published as ISO 19170-1 — Topic 21, Discrete Global Grid Systems. Two conformance classes concern a system like this one: Core, the baseline every DGGS must meet, and EAERS, the Equal Area Earth Reference System class.

What Core asks for

Core is about being a reference system at all. Its requirements cover the things a client has to be able to rely on: a harmonized data model, a defined coordinate reference system, simple cell geometry, a designated direct position for each cell, globally unique addresses, quantization functions that take positions to cells, and topological query functions that give parent, child and neighbour relationships.

The last of those is worth drawing out, because it shapes the whole index design. The standard expects these relations to be computed from the cell identifiers, not from geometry — which is why ancestry in ITACaRT is a property of the index string and neighbours are arithmetic on codes. Index Structure is that design; Lexical Ancestry vs Physical Refinement is where it is qualified.

What EAERS asks for

EAERS is stricter and narrower: it asks that the system be built from a base unit polyhedron mapped to the surface, that it present the polyhedral interface of the harmonized model, and that cell areas be equal within a stated budget.

Two of those three are where ITACaRT diverges, and it diverges by construction. The grid tessellates the ellipsoid directly, so there is no polyhedron and no polyhedral interface to describe. Design Decisions is the argument for that choice.

How the system describes itself

The standard expects a reference system to be able to announce what it is, and the engine does:

description = itacart.describe()
{k: description[k] for k in ("identifier", "title", "standard")}
{'identifier': 'ITACaRT',
 'title': 'ITA Cadastral Ellipsoidal Reference Tessellation',
 'standard': {'document': 'OGC 20-040r3',
  'title': 'Topic 21 - Discrete Global Grid Systems - Part 1: Core Reference System and Operations and Equal Area Earth Reference System',
  'also_published_as': 'ISO 19170-1'}}
description["tessellation"], description["constraints"]
({'method': 'direct surface tessellation',
  'projection': 'ellipsoidal sinusoidal (parallels plane)',
  'base_unit_polyhedron': None,
  'note': 'Cells are tessellated directly on the WGS84 ellipsoid from base and height measured on it, per section 3 of the paper. No polyhedron is mapped to the surface, which is why Requirement 22 is not met.'},
 {'cellEqualSized': True,
  'exceptions': ['trapezoid', 'polar cap', 'polar row']})

Note the constraints entry: cellEqualSized is asserted with its exceptions named in the same object. A client reading this description learns both that the grid is equal-area and exactly which families are not, without having to read a paper.

description["crs"]
{'datum': 'WGS84',
 'authority': 'EPSG',
 'code': 4326,
 'coordinate_epoch': None,
 'ellipsoid': {'name': 'WGS 84',
  'semi_major_axis_m': 6378137.0,
  'inverse_flattening': 298.257223563,
  'semi_minor_axis_m': 6356752.314245179,
  'flattening': 0.0033528106647474805,
  'first_eccentricity_squared': 0.0066943799901413165},
 'projection': {'name': 'ellipsoidal sinusoidal (parallels plane)',
  'proj_string': '+proj=sinu +lon_0=0 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs',
  'equations': {'x': 'lambda * nu(phi) * cos(phi)',
   'y': 'M(phi), the meridian arc from the equator'},
  'equal_area': True,
  'note': 'Equations (1) and (2) of section 3 of the paper, computed directly. The PROJ string is given for interoperability; PROJ is not called at runtime and is not a dependency.'}}

Reading a conformance claim

Three words in the standard do different work, and the package’s report keeps them apart: conformant is the formal yes-or-no against a shall; coverage is full, partial or none and describes how much of the requirement is substantively met; justification says why.

A requirement can be substantively almost entirely met and still formally non-conformant, because a shall does not accept “nearly”. Conformance Status is where that distinction does the most work.