How yash12birth/cadastre_3d_pot works
Purpose and entry points
This is a geospatial imagery analysis pipeline centered on an orthomosaic and digital surface model (DSM), likely for detecting objects and estimating their heights. Primary executable entry points are:
• download_day1.py — acquires the Day 1 image input.
• verify_day1.py — validates downloaded/input imagery.
• create_dummy_data.py — creates local sample geospatial data.
• src/ai_extraction.py and src/height_estimation.py — core analysis stages.
Input acquisition and validation
The pipeline accepts image data under day1_input/images and raster products under data/.
• download_day1.py
• verify_day1.py
• day1_input/images
Acquisition and verification are an upstream boundary: downstream analysis should operate on validated imagery/raster files rather than external download results.
Geospatial data layer
Two checked-in raster artifacts form the principal analysis inputs:
• data/orthomosaic.tif
• data/dsm.tif
The orthomosaic supplies spatially aligned visual imagery for AI extraction. The DSM supplies elevation values used to derive height measurements. Their coordinate alignment, raster dimensions, and georeferencing are critical implicit contracts between stages.
AI extraction stage
Object/feature detection is implemented in:
• src/ai_extraction.py
• src/__init__.py
This stage consumes imagery, most plausibly the orthomosaic or Day 1 images, and produces detected regions, masks, coordinates, or feature records for later measurement. It is the boundary between image-understanding logic and geospatial quantification.
Height estimation stage
Height calculation is isolated in:
• src/height_estimation.py
• data/dsm.tif
• data/orthomosaic.tif
This component should join AI-extracted feature locations with DSM elevation samples. Its output is expected to enrich detections with height-related metrics; it depends on consistent pixel/world-coordinate mapping across source rasters.
Configuration and presentation surface
Shared runtime settings are centralized in:
• config.py
A standalone HTML artifact may be intended for displaying outputs or results, but no application structure is visible from the tree:
• index.html
No server, deployment manifest, database, or cloud infrastructure is present. The repository appears designed for local Python execution over filesystem-based GeoTIFF inputs and outputs.
Main entry points: height_estimation.py Height estimation · ai_extraction.py AI extraction · create_dummy_data.py Sample data creator · orthomosaic.tif Orthomosaic
Components 13
Input preparation
- Day 1 download · Acquires Day 1 imagery.
download_day1.py - Imagery verification · Validates imagery before analysis.
verify_day1.py - Sample data creator · Creates local geospatial sample data.
create_dummy_data.py - Day 1 images
day1_input/images
Geospatial analysis
- Orthomosaic · Spatially aligned visual imagery.
data/orthomosaic.tif - Digital surface model · Elevation raster used for measurements.
data/dsm.tif - Runtime settings
config.py - AI extraction · Converts imagery into detected features.
src/ai_extraction.py - Analysis package
src/__init__.py - Detected features · Regions, masks, or coordinates for measurement.
- Height estimation · Samples elevation and enriches detected features.
src/height_estimation.py
Results surface
- Height-enriched results
- Results page · Standalone display surface for outputs.
index.html
Connections 17
- Day 1 download → Day 1 images: acquires
- Sample data creator → Day 1 images: can create
- Sample data creator → Orthomosaic: can create
- Sample data creator → Digital surface model: can create
- Day 1 images → Imagery verification: validates
- Imagery verification → AI extraction: approved imagery
- Orthomosaic → AI extraction: imagery input
- Runtime settings → AI extraction: settings
- Analysis package → AI extraction: packages
- AI extraction → Detected features: produces
- Detected features → Height estimation: feature locations
- Orthomosaic → Height estimation: coordinate reference · Provides aligned pixel/world mapping.
- Digital surface model → Height estimation: elevation samples
- Runtime settings → Height estimation: settings
- Analysis package → Height estimation: packages
- Height estimation → Height-enriched results: produces
- Height-enriched results → Results page: may display