Does it run and produce a trustworthy spatial result?
Check runtime status, artifact existence, spatial logic, and quality metrics together.
Project note · 2025
GeoAgent
Turning GIS code generation from a one-shot answer into a loop of document retrieval, generation, execution, repair, and evaluation.
Why I started
The real question
How can a natural-language request move through reliable knowledge, data selection, and execution feedback to become a verifiable GIS result?
Choices I made
A vertical task needs stable data boundaries and example coverage; it cannot rely only on model memory or scattered prompts.
GIS APIs change and parameters are specific. Retrieval provides traceable grounding and is more maintainable than an ever-longer prompt.
Early review showed that code resembling an answer is not the same as a deliverable task. Execution feedback exposes dependencies, paths, tool use, and exception handling.
How the system moves
State the goal, input data, spatial relationships, and expected artifact.
Recall official APIs and examples, then inspect files, projections, and fields.
Choose tools, sequence, and parameters, then produce an executable script.
Check runtime status, artifact existence, spatial logic, and quality metrics together.
Preserve data, parameters, and evaluation evidence for reproducibility.
Feed dependency, path, API, or parameter failures back into generation.
Request files, projection, field meaning, or a clearer expected output.
Locate the failure in knowledge, data, planning, execution, or evaluation, then rerun instead of hiding it in the final answer.
Business meaningThe core is not code generation alone. It is a loop that connects grounding, data selection, execution feedback, and spatial validation so plausible but undeliverable answers are exposed.
What I made
Parse the spatial task, inputs, and expected artifact.
Retrieve relevant knowledge and select files, tools, and sequence.
Execute generated code, repair errors, and evaluate output quality.
What the work left behind
Code similarity and a small task set do not establish production reliability. The first site release does not link the research repository because it contains local path traces.
Expand spatial-result validation and failure coverage, prioritizing “is the result trustworthy?” over “was code generated?”