+ Spatial analysis powered by GeoLibre · MapLibre GL · PostGIS · Turf.js · H3 +
+{tool.description}
++ No field collections yet. Start collecting farm boundaries and crop observations. +
++ Synced: {new Date(col.synced_at as string).toLocaleDateString()} +
++ No spectral analyses yet. Calculate NDVI, NDWI, EVI from satellite imagery. +
++ Pre-download map tiles for offline use in rural agricultural regions. +
++ Navigate to the Offline Tile Cache tool to download specific areas. +
++ Capture farm boundaries, crop observations, and warehouse data via GPS or map tap +
+| Type | +Coordinates | +Accuracy | +Time | +Properties | +
|---|---|---|---|---|
|
+ |
+ + {f.geometry.type === "Point" + ? (f.geometry.coordinates as number[]).map(c => c.toFixed(4)).join(", ") + : `${(f.geometry.coordinates as number[][][]).length} rings`} + | ++ {f.metadata.accuracy ? `${f.metadata.accuracy.toFixed(0)}m` : "—"} + | ++ {new Date(f.metadata.collectedAt).toLocaleTimeString()} + | ++ {Object.entries(f.properties).filter(([,v]) => v).map(([k,v]) => `${k}: ${v}`).join(", ") || "—"} + | +
+ Spatial binning for demand/supply heatmaps and distributor coverage optimization +
++ Res {resolution} ≈ {resolution <= 3 ? "country" : resolution <= 5 ? "regional" : resolution <= 7 ? "city" : "neighborhood"} scale +
++ Select a mode and click "Run Analysis" to generate H3 hexagonal grid results +
++ {distributorsQuery.data?.distributors + ? `${(distributorsQuery.data.distributors as unknown[]).length} distributors available` + : "Loading distributor data..."} +
+| H3 Index | +Center | +Count | +Value | +Density | +
|---|---|---|---|---|
| + {cell.h3Index} + | ++ {cell.center[0].toFixed(2)}, {cell.center[1].toFixed(2)} + | +{cell.count} | +{cell.value.toFixed(0)} | ++ + | +
+ Calculate crop health indices from satellite imagery — processes entirely in your browser +
++ Cloud-Optimized GeoTIFF from Sentinel Hub, Planetary Computer, or other sources +
+No analyses yet
+ ) : ( ++ Pre-download map tiles for offline use in areas with poor connectivity +
++ No cached areas yet. Download a region above. +
+ ) : ( ++ Client-side spatial analysis — all processing runs in your browser via Turf.js +
+Higher = more simplified
+Load a GeoJSON file and run a tool
+