How someshwar-prox/aero-view-ml works
AERO-VIEW is a project-based 3D vertical cadastre: users choose an area, inspect parcels and stacked building/floor/unit rights, and explore underground infrastructure and contextual overlays. API handlers serve project data with PostGIS-first, snapshot fallback, access control, editing, and topology validation; the Cesium viewer and detail UI present those results and provenance. The README also documents a separate ML data-preparation pipeline. Edges reflect only excerpted calls or explicit README statements; unsampled capabilities are represented without speculative internal wiring.
Main entry points: handlers.ts Domain handlers · CesiumRoot.tsx Cesium scene · DetailPanel.tsx Detail and provenance · pipeline.py Aerial tile generation
Components 26
Project access
- Project gallery
app/page.tsx - Sign-in
app/login/LoginForm.tsx - Project viewer
app/p/[slug]/ProjectViewer.tsx
Cadastral API
- Session signing
lib/auth/session.ts - Access guards
lib/auth/guards.ts - API routes
app/api/p/[slug]/buildings/route.ts - Domain handlers
lib/api/handlers.ts - Project registry
lib/projects.ts - PostGIS and snapshots
lib/db.ts - Response cache
lib/cache/store.ts - Validated edits
lib/data/edits.ts - Topology validation
lib/topology.ts
3D viewer
- Cesium scene
components/globe/CesiumRoot.tsx - Building stack
components/layers/BuildingsLayer.tsx - Floors and units
components/layers/UnitsLayer.tsx - Underground layers
components/layers/UtilitiesLayer.tsx - Context overlays
components/layers/HazardRiskLayer.tsx - Detail and provenance
components/ui/DetailPanel.tsx - LADM rights
components/ui/detail/LadmTab.tsx - Deed certificate
lib/deed/certificate.ts
ML preparation
- Aerial tile generation
ML-PIPELINE/tif-generator/pipeline.py - Elevation inference
ML-PIPELINE/elevation-engine/pipeline.py - LiDAR heights
ML-PIPELINE/elevation-engine/lidar_engine.py - Height consensus
ML-PIPELINE/elevation-engine/consensus.py - Parcel generation
ML-PIPELINE/parcel-generator/pipeline.py
Other components
- Visitor
Connections 24
- Visitor → Project gallery: browses
README.md - Visitor → Sign-in: signs in
README.md - Project gallery → Project viewer: opens project
app/page.tsx - Project viewer → Cesium scene: renders
- Sign-in → Session signing: issues session
- API routes → Domain handlers: dispatches
- Domain handlers → Access guards: checks access
lib/api/handlers.ts - Domain handlers → PostGIS and snapshots: loads data
lib/api/handlers.ts - Domain handlers → Response cache: reads conflicts
lib/api/handlers.ts - Domain handlers → Project registry: resolves project
lib/api/handlers.ts - Domain handlers → Validated edits: validates edits
lib/api/handlers.ts - Domain handlers → Topology validation: runs check
- Cesium scene → Building stack: renders layer
- Cesium scene → Floors and units: renders layer
- Cesium scene → Underground layers: renders layer
- Cesium scene → Context overlays: renders overlay
- Detail and provenance → LADM rights: renders tab
components/ui/DetailPanel.tsx - Detail and provenance → Height consensus: shows provenance
- Detail and provenance → Deed certificate: offers certificate
- Visitor → Aerial tile generation: prepares imagery
- Aerial tile generation → Elevation inference: supplies tiles
ML-PIPELINE/elevation-engine/pipeline.py - Elevation inference → Height consensus: fuses heights
ML-PIPELINE/elevation-engine/pipeline.py - LiDAR heights → Height consensus: provides candidates
- Aerial tile generation → Parcel generation: supports footprints
ML-PIPELINE/parcel-generator/pipeline.py