How nesar123sbr/geotanah-deliserdang works
GeoTanah Dairi is a cadastral WebGIS for parcel verification and field surveys. The principal workflow runs from dashboard parcel review and spatial metrics to field collection/import, photo documentation, and survey submission, with updated parcel data available for review and export. The graph preserves documented capabilities such as filters, overlap/area checks, realtime updates, and audit/RLS. Some page and database wiring is described in the README rather than sampled source, so those links reflect that documentation; uncertain implementation details are omitted.
Main entry points: app/page.tsx Parcel dashboard · survey/page.tsx Survey workflow · supabase.ts Supabase client · database.ts Parcel data and metrics
Components 17
Web workflows
- Parcel dashboard
app/page.tsx - Login and recovery
components/AuthModal.tsx - Survey workflow
app/survey/page.tsx - Password reset
app/reset-password/page.tsx
Mapping and spatial data
- Parcel map
components/ParcelMap.tsx - Survey digitizer
components/SurveyDrawMap.tsx - GPS file parser
lib/parseGeoFile.ts
Supabase services
- Supabase client
lib/supabase.ts - Parcel data and metrics
types/database.ts - Photo storage
lib/supabase.ts - RLS and audit
supabase/migrations
Survey deliverables
- Export controls
components/ExportModal.tsx - Geodatabase exporter
lib/exportGeodatabase.ts - ZIP deliverables
Other components
- Reviewer
- Field surveyor
- Map imagery
Connections 25
- Reviewer → Parcel dashboard: reviews parcels
- Field surveyor → Survey workflow: records survey
- Parcel dashboard → Supabase client: requests parcel data
- Supabase client → Parcel data and metrics: calls metrics RPC
- Parcel data and metrics → Parcel dashboard: returns metrics
- Parcel data and metrics → Parcel dashboard: streams updates
- Parcel dashboard → Parcel map: renders parcels
- Map imagery → Parcel map: provides tiles
- Parcel dashboard → Login and recovery: opens login
- Login and recovery → Supabase client: authenticates
- Password reset → Supabase client: resets password
- Survey workflow → GPS file parser: parses GPS file
- GPS file parser → Survey workflow: returns polygon metadata
- Survey workflow → Survey digitizer: displays digitizing map
- Map imagery → Survey digitizer: provides tiles
- Survey workflow → Supabase client: submits survey
- Supabase client → Parcel data and metrics: calls survey RPC
- Survey workflow → Photo storage: uploads photos
- Parcel dashboard → Photo storage: removes parcel photos
- Parcel data and metrics → RLS and audit: enforces access and audit
- Parcel dashboard → Export controls: opens export
- Export controls → Geodatabase exporter: starts export
- Geodatabase exporter → Photo storage: fetches transformed photos
- Geodatabase exporter → ZIP deliverables: packages ZIP
- ZIP deliverables → Reviewer: downloads