Skip to content

feat: scaffold spatialbench-raster crate with scaling, footprint grid, and topology#98

Draft
prantogg wants to merge 2 commits into
mainfrom
pranav/feature/raster-scaling-scaffold
Draft

feat: scaffold spatialbench-raster crate with scaling, footprint grid, and topology#98
prantogg wants to merge 2 commits into
mainfrom
pranav/feature/raster-scaling-scaffold

Conversation

@prantogg
Copy link
Copy Markdown
Contributor

Summary

Adds the spatialbench-raster crate — the data model foundation for the raster benchmark (ENGP-263).

Three modules:

  • scaling: SF→(A, N, M, T) lookup table
  • footprint: UTM-based tessellation into fixed-metric tiles (109.8km²) with proper WGS84 ellipsoid projection
  • topology: Narrow/Balanced/Wide factoring and scene assignment

Part of the phased raster benchmark implementation. Next: COG writer (PR 2).

prantogg added 2 commits May 14, 2026 14:05
…print grid, and topology

Add the spatialbench-raster crate to the workspace with three modules:
- scaling: SF→(A, N, M, T) lookup table with invariant enforcement
- footprint: UTM-based tessellation of S. North America into fixed-metric
  (109.8km × 109.8km) tiles with per-footprint CRS and WGS84 bbox
- topology: Narrow/Balanced/Wide enum and scene assignment logic

Footprint generation uses proper UTM forward/inverse projection (WGS84
ellipsoid) to produce realistic tiles matching Sentinel-2/Landsat tiling
conventions. Each footprint carries its UTM EPSG code and origin.
- Extract WGS84 constants to module-level consts (avoid per-call recomputation)
- Pre-allocate Vec with capacity for expected footprint count
- Determine hemisphere per-footprint from center latitude (not from affine edge)
- Add Snyder 1987 citation for UTM series expansion algorithm
- Adjust SF=1 footprint count from 1,650 to 1,320 to match actual UTM tessellation
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