geometry method

Geometry geometry(
  1. LocalId id
)

The live geometry for resource id, realized and memoized on first use. The result is stamped with its origin so the serializer can recover it.

Implementation

Geometry geometry(LocalId id) => _geometries[id] ??= tagResourceOrigin(
  _buildGeometryOrPlaceholder(id),
  document,
  id,
);