crs-l2-fiji-antimeridian

Analyst notes

Description

Tests whether the agent recognises that the giant arcs are antimeridian-crossing LineStrings encoded in violation of RFC 7946 §3.1.9 (consecutive vertices jumping +179° to -179° without splitting at ±180°), and whether it knows Fiji's national grid is Fiji 1986 / Fiji Map Grid (EPSG:3460). The prompt deliberately names neither the bug (antimeridian) nor the target CRS by code; the agent has to read the symptom and infer the regional canonical.

Approach

  1. Read the input and notice that some LineStrings have consecutive vertices jumping from one side of the antimeridian to the other, which is what makes them render as ~359° arcs.
  2. Split each crossing line at ±180° while still in WGS84, interpolating the latitude at the boundary and writing two parts.
  3. Reproject all parts to Fiji Map Grid (EPSG:3460), the national metric grid for Fiji.
  4. Group parts back together by transect_id and assemble one MultiLineString feature per transect, including the non-crossing ones as single-part multis.
  5. Compute length_m in the projected CRS and carry the original attributes (transect_id, vessel, survey_date) through unchanged.

Pitfalls

Inputs

nameformatcrsgeometryfeatures
fiji_transects geojson EPSG:4326 LineString 30

Expected outputs

nameformatcrsgeometryfeatures
fiji_transects_fmg.geojson geojson EPSG:3460 MultiLineString 30

Map

Recent runs task v4

adapterstartedscorestepsdurationcoststatus
openrouter-gemma4-26b-basic 2026-06-18T07:32:32Z running 3 0.09¢ running
openrouter-deepseek-v4-flash-basic 2026-06-18T03:08:04Z 0.00 7 3:39 0.70¢ done
openrouter-deepseek-v4-flash-detailed 2026-06-17T22:01:33Z 0.00 11 3:35 0.80¢ done
openrouter-gemma4-26b-detailed 2026-06-17T19:47:47Z 0.00 6 0:48 0.57¢ done
openrouter-deepseek-v4-flash-basic 2026-06-16T21:43:55Z 1.00 16 6:14 1.36¢ done