spa-l2-lagos-hotspot-overlaps

Analyst notes

Description

This task probes whether the agent reasons about scale and projection before doing any geometry. The 100 m² sliver threshold is the gotcha: it only makes sense in a metric CRS, so an agent that filters area in WGS84 degrees keeps all the synthetic slivers and lands on a wrong top-10 % list. The overlay step is also overlap-aware (a hex can intersect several land-use polygons), so the per-cell aggregate has to weight by intersection area, not by polygon count.

Approach

  1. Reproject both inputs into a Lagos-appropriate metric CRS before any area work, so the 100 m² threshold and the area weights are in real units.
  2. Drop land-use polygons whose area is below 100 m² and keep a per-cell count of how many were dropped.
  3. Intersect the kept land-use polygons with the hex grid and, for each hex cell, compute the area-weighted mean of pop_density across all overlapping pieces.
  4. Rank the cells by area-weighted density descending, take the top 10 %, and assign a unique integer rank starting at 1.
  5. Write the two files with the same hex_id set: a GeoParquet with the hex polygons and a plain Parquet with the ranking table plus the overlap and sliver counts.

Pitfalls

Inputs

nameformatcrsgeometryfeatures
lagos_landuse geojson EPSG:4326 Polygon 5,542
lagos_hex_grid geojson EPSG:4326 Polygon 1,782

Expected outputs

nameformatcrsgeometryfeatures
hotspots.geoparquet geoparquet EPSG:26331 Polygon 104
hotspot_ranking.parquet parquet

Map

Recent runs task v3

adapterstartedscorestepsdurationcoststatus
openrouter-gemma4-26b-basic 2026-06-19T01:55:55Z 68 8 2:03 0.39¢ done
openrouter-deepseek-v4-flash-basic 2026-06-18T21:59:58Z 68 5 0:50 0.23¢ done
openrouter-deepseek-v4-flash-basic 2026-06-18T16:43:10Z pending — — — pending
openrouter-deepseek-v4-flash-detailed 2026-06-18T11:57:20Z 79 7 1:37 0.27¢ done
openrouter-gemma4-26b-detailed 2026-06-18T09:34:25Z 79 20 3:17 2.22¢ done