ACL Digital

Home / Blogs / AI-Powered Fiber Network Planning Inside QGIS Just Got Simpler
Bridging AI and Geospatial Intelligence Blog website banner
July 31, 2026

5 Minutes read

AI-Powered Fiber Network Planning Inside QGIS Just Got Simpler

Geospatial data has never been bigger or messier. OpenStreetMap layers, cadastral records, satellite imagery, and live web services all pile up faster than most teams can process them. QGIS remains one of the most powerful open-source tools for making sense of it, but that power comes at a cost. Mastering coordinate reference systems, processing algorithms, and layer management takes years, not days.

AI-Assisted Network Planner closes that gap. Built for fiber network planning inside QGIS, this plugin brings Large Language Models directly into the geospatial workflow, so users simply describe what they need in plain language. The plugin identifies the right algorithm, gathers the required parameters, runs the operation, and delivers the result, all without the user having to touch a manual or memorize a toolbox. Under the hood, RAG-based context retrieval and LangGraph orchestration do the heavy lifting, turning complex GIS operations into a conversation.

Architecture diagram of an AI-assisted QGIS network planner plugin showing UI, orchestration, and tool execution layers.
Figure 1: System architecture of the AI-Assisted Network Planner Plugin inside QGIS

The Challenge with QGIS

The use of QGIS spans multiple domains, including urban planning, telecommunication, environmental management, emergency response, and government cadasters. The tools allow managing rasters, vector geometries, databases, and online services such as OpenStreetMap via the Overpass API. Regardless of the functionality offered, there are some usability issues that are still present:

  • Steep learning curve: layers, projections, coordinate systems, and the selection of one out of 400 processing algorithms is hard to understand
  • Sequential processing: network analysis involves at least 5 to 10 or more sequential steps, starting from data loading and buffering till the final export of results
  • Complexity of data fusion: a combination of OpenStreetMap, land registry, and custom datasets takes a considerable amount of time
  • Finding a proper algorithm: selecting an appropriate solution out of hundreds available is challenging even for an expert

The use of LLMs in combination with the QGIS programmatic API solves all the problems mentioned above.

Plugin Architecture and Operating Modes

AI-Assisted Network Planner provides a chat dock widget right within QGIS. Instead of exploring the menu and dialog boxes, the user tells what he needs to achieve using natural language:

“Generate a route network from NVT points to APL points through the roads.”

Then the AI agent determines the required algorithm in QGIS, finds its parameters, extracts data from the loaded layers, processes the route generation, and returns the result to the map view.

Core Capabilities

  • Layer operations: load, remove, inspect attributes, zoom to extent, save, and load projects
  • Domain-specific network planning: NVT-to-APL connection routing, cluster polygon generation, topology validation
  • Geospatial data integration: OSM buildings, roads, and amenities via Overpass API; cadastral property boundaries via installed plugins; buffer, clip, dissolve, and merge operations
  • Any of the 400+ QGIS processing algorithms, invoked through natural conversation without needing to know algorithm names

Three Operating Modes

  • General Mode: A flexible conversational loop suited to exploration, analysis, and tool discovery. The LLM reasons over the user’s message, iteratively selects and calls tools, and responds naturally. Best for users who are unfamiliar with QGIS or working through an open-ended problem.
  • Single-Step Processing: The user defines a single geoprocessing step. The algorithm discovers and prioritizes algorithms, evaluates the parameter requirements, retrieves their values from the context, and executes the process. Deterministic and rapid execution make this mode well-suited to users who know what they want but not how to implement it.
  • Multi-Step Processing: When dealing with complex processes that require multiple algorithms, the agent breaks the request into a series of tasks, determines the task order using dependency analysis, passes results from one task to the next, and executes each task independently while handling errors as they arise.
Conceptual graph structure diagram showing StateGraph, Agent State, and General, Single-Step, and Multi-Step processing modes.
Figure 2: LangGraph conceptual graph showing how the three operating modes branch from Agent State

Technical Architecture Behind the AI-Assisted Network Planner

The orchestration engine is built with LangGraph, which models the agentic workflow as a stateful graph. Agent state carries message history, tool outputs, and intermediate results across nodes as the plugin reasons over geospatial data. The context management strategy mirrors RAG systems in several ways, retrieving only the layer and algorithm information relevant to the current request:

  • Initial context is assembled from the current QGIS project state, loaded layers, available processing algorithms, and conversation history
  • Layer metadata is injected dynamically when the user references a specific layer, avoiding upfront token cost for all layers
  • Algorithm parameter schemas are loaded on demand and cached for reuse within a session
  • Chat history is compressed adaptively: recent messages are preserved in full, while older exchanges are summarized by the LLM to stay within the token budget
  • QGIS project state is cached for approximately five seconds and invalidated automatically when layers are added or removed

Spatial data is represented efficiently. Every layer exposes its name, geometry type, feature count, bounding box, and coordinate reference system. Full geometry is included only for datasets with fewer than 100 features or when explicitly required, to keep token usage predictable.

Because QGIS processing algorithms are synchronous and blocking, all LLM and algorithm work runs on a dedicated background thread. The main Qt thread stays responsive, receives progress signals, and updates the chat display and canvas once results are ready.

Flowchart showing user prompt flow through RAG context assembly, LLM reasoning, tool execution, and response generation.
Figure 3: Data flow from user prompt through context assembly, LLM reasoning, tool execution, and response generation.

Real-World Use Cases for Fiber Network Planninga

1. Fiber Network Route Planning with Service Areas

“Plan the fiber network from our 23 NVT points to 5 APL distribution points, then generate 5km service radius buffers around each APL.”

The agent loads the NVT and APL layers, fetches the OSM road network as a cost layer, executes routing for each NVT-to-nearest-APL pair, creates 5km buffers around the APL points, and calculates coverage statistics. Three layers are returned: the routed network, service area polygons, and a coverage statistics layer. With AI-Assisted Network Planner, the user never needs to know which algorithm handles least-cost path routing or how to wire its parameters.

2. Property Boundary Compliance Check

“Verify that the selected routes go only through public lands without touching private lands.”

The agent imports the cadastral boundaries, identifies private land, creates a 10-meter buffer around the selected routes, and checks for any intersections between the buffered routes and private land. The result will be shown in a compliance layer, a list of affected properties, and a percentage of the route on public lands. Data merging and coordinating transformation will be done a period.

3. Exploratory Amenity Analysis

“What amenities are near our NVT site at coordinates (52.5, 13.4)? Are there parks, hospitals, or schools?”

The agent constructs an Overpass API query bounded to the current map extent, fetches matching amenities, loads them as a styled layer, and calculates distances to the target location. The response is delivered in natural language with the results visible on the canvas. Users can access OSM data without learning the Overpass query language.

Flowchart showing an AI agent loop from user input through LLM reasoning, tool calling, execution, and response generation.
Figure 4: General Mode Agentic loop showing the iterative reasoning and tool-calling cycle

Challenges and Their Solutions in the Real World

  • CRS Mismatches: OpenStreetMap datasets use WGS84 (EPSG:4326), whereas projects use a local projected CRS. The plugin detects the alignment issue and reprojects the incoming layers to match the project CRS, avoiding geometry alignment problems.
  • Context Window Overflow: Conversations may expand to the point where the chat history, schema, and other information exceed the model’s context threshold. The plugin performs adaptive compression by storing [SS11.1]full-text versions of recent messages and summarizing older interactions using the LLM in a rolling summary.
  • Long-Running Operations: Network analysis and routing algorithms may take 30+ seconds to execute. Running them on the main thread would lock the interface. The plugin runs all such operations on a separate worker thread and emits progress signals.
  • Multi-Step Error Recovery: A chain of tasks in which an error in any task causes errors in all subsequent tasks. Upon an error, the plugin analyzes it: it corrects parameters using an LLM and retries if the problem is fixable; otherwise, it logs the error and skips the corresponding task.
For teams focused specifically on fiber network planning, these barriers compound further, since routing, service area coverage, and compliance checks each require their own sequence of tools.

Conclusion

AI-Assisted Network Planner combines LLMs to support reasoning and tool selection, QGIS for spatial analysis execution, and LangGraph to control the workflow into a single, usable, production-level solution. All three modes of operation provide everything needed from exploration to fully automated processing pipelines.

The importance of the approach lies, in general, in its usability. Planning fiber networks, assessing property compliance, and other tasks related to analyzing and managing geospatial data have traditionally been available only to GIS experts. With the presented plugin, such functionality is now accessible for everyone through natural language.

The growing complexity of geospatial datasets means that the limit to their use is not availability but usage itself. An AI-assisted interface is the next step in bridging this gap.

Planned Enhancements

  • Multi-user collaboration with real-time QGIS project sync and audit logging
  • Fine-tuned domain models trained on network planning vocabulary for faster algorithm selection
  • ML-powered network failure prediction and cost optimization suggestions
  • 3D elevation-aware routing and terrain analysis visualization

References

Frequently Asked Questions (FAQs)

1. What is the AI-Assisted Network Planner plugin for QGIS?

It is a QGIS plugin that lets users perform geospatial and network planning tasks using natural language rather than manually navigating menus and applying algorithms. It uses LLMs, RAG-style context retrieval, and LangGraph orchestration to interpret requests and automatically run the appropriate QGIS operations.

2. Do I need GIS expertise to use this plugin?

No. The plugin is built specifically to remove that barrier. Instead of knowing which of the 400+ QGIS processing algorithms to use or how to configure their parameters, users simply describe what they want to achieve, and the agent selects the algorithm, gathers the parameters, and executes the task.

3. What are the three operating modes of the plugin?

The plugin works in General Mode for open-ended exploration, Single-Step Processing for a single defined geoprocessing task, and Multi-Step Process for complex workflows that require breaking a request into a dependency-ordered sequence of tasks.

4. How does the plugin handle long-running operations without freezing QGIS?

Since QGIS processing algorithms are synchronous and blocking, the plugin runs all LLM and algorithm work on a dedicated background thread. This keeps the main Qt thread responsive, so the interface, progress signals, and canvas updates continue working smoothly.

5. Can the plugin combine data from different sources, like OpenStreetMap and cadastral records?

Yes. It integrates OSM data, such as roads, buildings, and amenities, via the Overpass API, as well as cadastral property boundaries and custom datasets. It also automatically detects and resolves coordinate reference system mismatches, such as WGS84 versus a project’s local projected CRS, to keep geometries aligned.

Turn Disruption into Opportunity. Catalyze Your Potential and Drive Excellence with ACL Digital.

Scroll to Top