dc-l1-bangkok-attribute-coercion

Analyst notes

Description

Tests whether the agent recognises an attribute-type problem in a malformed vendor GeoJSON: every numeric column arrives as a JSON string, so client-side parseFloat in the dashboard silently returns NaN. The prompt deliberately names the symptom (NaN averages) instead of the operation (type coercion), the affected columns, or the int-versus-float split, so the agent has to inspect the file and work out what the defect is on its own.

Approach

  1. Open the input GeoJSON and inspect a few features to see how each property is encoded.
  2. Notice that every numeric column is serialised as a JSON string and that the dashboard's parseFloat fails on those.
  3. Decide which fields are integer identifiers and which are floating-point measurements based on what the values look like.
  4. Rewrite every numeric property as a proper JSON number, keeping the station_id as an integer and the measurement columns as floats.
  5. Leave the Thai-script name field, any other string columns, and the point geometry untouched, and write the result back as GeoJSON.

Pitfalls

Inputs

nameformatcrsgeometryfeatures
bangkok_aq_stations geojson EPSG:4326 Point 100

Expected outputs

nameformatcrsgeometryfeatures
bangkok_aq_typed.geojson geojson EPSG:4326 Point 100

Map

Recent runs task v3

adapterstartedscorestepsdurationcoststatus
openrouter-gemma4-26b-basic 2026-06-18T07:32:32Z pending pending
openrouter-deepseek-v4-flash-basic 2026-06-18T03:08:04Z 0.00 5 0:42 0.62¢ done
openrouter-deepseek-v4-flash-detailed 2026-06-17T22:01:33Z 0.00 7 0:50 0.22¢ done
openrouter-gemma4-26b-detailed 2026-06-17T19:47:47Z 0.00 13 0:38 0.55¢ done
openrouter-deepseek-v4-flash-basic 2026-06-16T21:43:55Z 0.84 7 1:17 0.55¢ done