HOU Shuyang, JIAO Haoyue, LIU Ziqi, XIE Lutong, CHEN Guanyu, SHEN Zhangxiao, WU Shaowen, XU Zhangyan, QING Yaxian, LIANG Jianyuan, GUAN Xuefeng, WU Huayi
[Background] The emergence of Large Language Models (LLMs) has driven a profound transformation in the interaction paradigm of Geographic Information System (GIS) spatial analysis. This evolution has progressed from the early mode in which users directly wrote code to drive the analysis, through an intermediate mode in which code was indirectly invoked via GUI toolchain configuration, and is now shifting toward a new paradigm of "natural language-code-spatial analysis." Under this paradigm, natural language and program code jointly take the stage as the media driving GIS spatial analysis. However, the two differ in the structural stability of execution, the clarity of spatial semantics, and the transmissibility of the analytical process; discerning which of them constitutes the ontology of contemporary GIS spatial analysis is therefore essential for clarifying the optimization direction of LLM-driven GIS spatial analysis. [Analysis] Against this background, this paper advances a systematic argument for the ontological positioning of GIS spatial analysis code. It first defines the conceptual connotation of GIS spatial analysis code, identifies five functional types, and characterizes the capability boundaries across four categories of execution platforms, namely local general-purpose programming environments, spatial resource-hosting cloud platforms, database-embedded environments, and knowledge graph environments. It then explicates the driving mechanism of code from three dimensions—structural stability, semantic anchoring, and knowledge transmissibility—and argues that code constitutes the minimum complete unit upon which the scientific validity of spatial analysis is established, thereby affirming its ontological status within the GIS spatial analysis system. [Progress and Prospects] Building on this foundation, the paper reviews recent research progress centered on GIS spatial analysis code in the LLM era, and dialectically discusses two categories of research directions. The first category comprises directions that are currently feasible yet have not been systematically investigated, including spatial-semantic structural perception, domain-adaptive learning, autonomous agent ecosystems, knowledge transfer and accumulation, and code localization and repair. The second category comprises directions that still lack foundational support but are urgently worth exploring, including data and knowledge governance, spatial computing capability, causal explanation capability, and geospatial representation models. [Purpose] Through a systematic analysis organized around the driving mechanism, this paper delineates the theoretical role and methodological significance of GIS spatial analysis code in the LLM era, elucidates the theoretical framework and capability boundaries of this field, and provides a theoretical reference for research on intelligent GIS.