geo-l2-bangkok-landuse-intersect

Analyst notes

Description

Tests whether the agent can chain four geometric operations in the right order (repair invalid input rings, intersect against the study area, simplify, coerce single Polygons to MultiPolygon) while picking the right CRS for each step. The hidden gotcha is units: `area_m2` is square metres, so the agent has to compute area in a metric CRS even though the GeoJSON output is conventionally WGS84.

Approach

  1. Read both inputs and notice the land-cover layer carries self-intersecting rings that will trip up the intersection step if left alone.
  2. Repair the invalid geometries before doing any overlay work.
  3. Intersect each cleaned land-cover polygon with the BMA study-area polygon and drop anything that ends up empty.
  4. Stay in the inputs' metric CRS long enough to compute `area_m2` in square metres and to simplify at a tolerance that is small relative to the polygon edges.
  5. Coerce every surviving feature to MultiPolygon and write the result as a GeoJSON FeatureCollection, reprojecting to WGS84 for the on-disk file.

Pitfalls

Inputs

nameformatcrsgeometryfeatures
landcover geoparquet EPSG:32647 Polygon 21,660
study_area geojson EPSG:32647 Polygon 1

Expected outputs

nameformatcrsgeometryfeatures
bma_landcover_intersect.geojson geojson EPSG:4326 MultiPolygon 3,453

Map

Recent runs task v4

adapterstartedscorestepsdurationcoststatus
openrouter-gemma4-26b-basic 2026-06-18T07:32:32Z pending pending
openrouter-deepseek-v4-flash-basic 2026-06-18T03:08:04Z 0.00 9 1:14 0.38¢ done
openrouter-deepseek-v4-flash-detailed 2026-06-17T22:01:33Z 0.00 11 1:18 0.36¢ done
openrouter-gemma4-26b-detailed 2026-06-17T19:47:47Z 0.00 20 3:17 1.48¢ done
openrouter-deepseek-v4-flash-basic 2026-06-16T21:43:55Z 0.87 9 1:07 0.32¢ done