Skip to content

RFC 3: revised draft of tiled and multiscale points - #98

Draft
LucaMarconato wants to merge 6 commits into
rfcsfrom
claude/project-thread-f7qs2b
Draft

LucaMarconato wants to merge 6 commits into
rfcsfrom
claude/project-thread-f7qs2b

Conversation

@LucaMarconato

Copy link
Copy Markdown
Member

Requested by Luca · project thread

Revised draft of RFC 3 (tiled and multiscale points), from several review rounds.

Changes

  • Data model: built on tiles first, then a random value p per point (stored in __spatialdata_p__) that defines bands; a level is the union of its band and all coarser bands. Default rates are the ratio of tile volumes (1/2^d per level when all axes merge); any strictly decreasing rates are allowed, and P(0) = 1 is stated explicitly.
  • Grids: declared per level in the metadata. The only MUSTs are that the tiles cover the points and that each grid refines the next coarser one. The merge rule is a recommended recipe, and a level may keep the grid of the level below (down to a single tile).
  • No limit: the offsets address rows. Row groups and chunks are the writer's choice, aligned with tiles as a SHOULD (with the reasons). Points per tile is now only guidance for choosing the tile size and the rates.
  • Offsets: Zarr arrays in both formats. tile_offsets per band for the tile-major table, and per feature and band for each feature-major table. Chunking is a SHOULD.
  • Metadata: a self-contained spatial_index Zarr convention with version (0.1.0-draft), axes, feature_keys and a levels list. No multiscales convention, and no coordinate-system name.
  • Reading: a client-side budget b reads a representative prefix of each tile.
  • Figures: new summary figure (tile view vs gene view), levels-and-bands figure and orders-as-bands figure. Columns figure redrawn without padding. Removed the levels and storage figures.
  • Text: a Summary table of MUST/SHOULD/MAY, a three-layer overview (data, data model, storage format), and Related work extended with the rejected alternatives (multiscales, key-value metadata, sidecar Parquet, row group per tile, sparse tensor). The patent paragraph is removed.

The commit RFC 3: say tile-major order throughout; add the columns figure was on the local rfcs branch but never pushed, so it is included here.

🤖 Generated with Claude Code

LucaMarconato and others added 2 commits November 16, 2026 20:39
- Data model rebuilt on tiles, then a random value p per point that
  defines bands; levels are unions of bands. Default rates follow the
  ratio of tile volumes; any strictly decreasing rates are allowed.
- Grids are declared per level; refinement is the only MUST, the merge
  rule is a recommended recipe, and a level may keep its grid.
- No `limit`: offsets address rows; row groups and chunks are the
  writer's choice, aligned with tiles as a SHOULD.
- Offsets are Zarr arrays in both formats: `tile_offsets` for the
  tile-major table and, per feature, for each feature-major table.
- Metadata: a self-contained `spatial_index` convention with a version
  (0.1.0-draft), feature_keys and a list of levels; no multiscales.
- New overview, levels-and-bands and orders figures; Summary table of
  MUST/SHOULD/MAY; related work and rejected alternatives updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…o the input from list

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LucaMarconato and others added 3 commits November 19, 2026 15:00
RFC 3: sparse (CSR) feature index with a figure (dense shown as not viable); the same layout in
Parquet and Zarr (spatial/, feature/), a Parquet sidecar listing the part files, their first rows and
the global categories; offsets int32 or int64; p = k / 2^b stored as integers (p_bits); all axes in
the grid; tile size for the typical tile and row groups of 100k-1M rows; per-row-group dictionaries;
Zarr sharding; full reading pseudo-code; compatibility break; motivation from the benchmarks.

RFC 4: optional, only for small shapes (rule of thumb with the kidney numbers); own grid per element,
nested grids recommended; margin in spatial_index; table must annotate the shapes, rows in the order of
the shapes, X_csc as a SHOULD; single level; limitations and possible extensions for large shapes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, Marco Varrone, Mark Keller

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch was successfully deployed

1 active deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant