Evaluation of Code LLMs on Geospatial Code Generation
Not on the map. Why?
Abstract (arXiv)
Software development support tools have been studied for a long time, with recent approaches using Large Language Models (LLMs) for code generation. These models can generate Python code for data science and machine learning applications. LLMs are helpful for software engineers because they increase productivity in daily work. An LLM can also serve as a "mentor" for inexperienced software developers, and be a viable learning support. High-quality code generation with LLMs can also be beneficial in geospatial data science. However, this domain poses different challenges, and code generation LLMs are typically not evaluated on geospatial tasks. Here, we show how we constructed an evaluation benchmark for code generation models, based on a selection of geospatial tasks. We categorised geospatial tasks based on their complexity and required tools. Then, we created a dataset with tasks that test model capabilities in spatial reasoning, spatial data processing, and geospatial tools usage. The dataset consists of specific coding problems that were manually created for high quality. For every problem, we proposed a set of test scenarios that make it possible to automatically check the generated code for correctness. In addition, we tested a selection of existing code generation LLMs for code generation in the geospatial domain. We share our dataset and reproducible evaluation code on a public GitHub repository, arguing that this can serve as an evaluation benchmark for new LLMs in the future. Our dataset will hopefully contribute to the development new models capable of solving geospatial coding tasks with high accuracy. These models will enable the creation of coding assistants tailored for geospatial applications.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Builds on 16 of its 35 references that are in the map. First posted on arXiv 6 Oct 2024.
Builds on
16 of 35 references.
References · 16
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
- 2024Gemma: Open Models Based on Gemini Research and Technologycited by 916
- 2021Measuring Coding Challenge Competence With APPScited by 902
- 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 452
- 2022The Stack: 3 TB of permissively licensed source codecited by 359
- 2024CodeGemma: Open Code Models Based on Gemmacited by 150
- 2022Large Language Models Meet NL2Code: A Surveycited by 138
- 2024Granite Code Models: A Family of Open Foundation Models for Code Intelligencecited by 117
- 2022CERT: Continual Pre-Training on Sketches for Library-Oriented Code Generationcited by 87
4 more
- 2023GPT4GEO: How a Language Model Sees the World's Geographycited by 68
- 2023Autonomous GIS: the next-generation AI-powered GIScited by 53
- 2023Are Large Language Models Geospatially Knowledgeable?cited by 30
- 2021Geographic Question Answering: Challenges, Uniqueness, Classification, and Future Directionscited by 24
Built on by
Citing papers per year: 2024: 1; 2025: 5; 2026: 2.
8 papers.
- 2025Foundation Models for Geospatial Reasoning: Assessing Capabilities of Large Language Models in Understanding Geometries and Topological Spatial Relationscited by 23
- 2025GeoBenchX: Benchmarking LLMs in Agent Solving Multistep Geospatial Taskscited by 14
- 2025GeoAnalystBench: A GeoAI benchmark for assessing large language models for spatial analysis workflow and code generationcited by 10
- 2024Geo-FuB: A Method for Constructing an Operator-Function Knowledge Base for Geospatial Code Generation Tasks Using Large Language Modelscited by 1
- 2025Thinking on Maps: How Foundation Model Agents Explore, Remember, and Reason Map Environmentscited by 1
- 2026GISAgentBench: A Practitioner-Sourced Benchmark for Evaluating LLM Agents on GIS Taskscited by 1
- 2025AutoGEEval: A Multimodal and Automated Framework for Geospatial Code Generation on GEE with Large Language Modelscited by 0
- 2026GeoContra: From Fluent GIS Code to Verifiable Spatial Analysis with Geography-Grounded Repaircited by 0
- 2026GISAgentBench: A Practitioner-Sourced Benchmark for Evaluating LLM Agents on GIS Tasks3 Aug 2026
- 2026GeoContra: From Fluent GIS Code to Verifiable Spatial Analysis with Geography-Grounded Repair1 May 2026
- 2025Thinking on Maps: How Foundation Model Agents Explore, Remember, and Reason Map Environments30 Dec 2025
- 2025GeoAnalystBench: A GeoAI benchmark for assessing large language models for spatial analysis workflow and code generation7 Sep 2025
- 2025Foundation Models for Geospatial Reasoning: Assessing Capabilities of Large Language Models in Understanding Geometries and Topological Spatial Relations22 May 2025
- 2025AutoGEEval: A Multimodal and Automated Framework for Geospatial Code Generation on GEE with Large Language Models19 May 2025
- 2025GeoBenchX: Benchmarking LLMs in Agent Solving Multistep Geospatial Tasks23 Mar 2025
- 2024Geo-FuB: A Method for Constructing an Operator-Function Knowledge Base for Geospatial Code Generation Tasks Using Large Language Models28 Oct 2024
Similar, not cited
Close in wording, no citation either way
- 2024Can Large Language Models Generate Geospatial Code?
- 2024An LLM Agent for Automatic Geospatial Data Analysis
- 2025Holistic Evaluation of State-of-the-Art LLMs for Code Generation
- 2025GeoJSON Agents:A Multi-Agent LLM Architecture for Geospatial Analysis-Function Calling vs Code Generation
- 2024GEE-OPs: An Operator Knowledge Base for Geospatial Code Generation on the Google Earth Engine Platform Powered by Large Language Models
- 2025MRG-Bench: Evaluating and Exploring the Requirements of Context for Repository-Level Code Generation
- 2026CodeEval: A pedagogical approach for targeted evaluation of code-trained Large Language Models
- 2024Low-Cost Language Models: Survey and Performance Evaluation on Python Code Generation