Browse all courses AI and Cybersecurity

Artificial Intelligence in Online GIS Applications Development

The course enables you to build an interactive web and mobile GIS using QGIS, Python, PostgreSQL and PostGIS. Use ChatGPT, Claude and Gemini as development assistants, evaluate a spatial machine-learning model, and connect a map assistant to validated spatial queries and cited sources. Test the application for spatial accuracy, accessibility, security and reliability.

6 days Classroom / Online Advanced Training Fee · KSh 120,000 ($1,200)

About this course

This advanced six-day course follows the development of a public-service accessibility application in a Kenyan county. Users can browse facilities on an interactive map, review facility details, collect observations on a mobile device and ask questions that can be verified against published data. The application distinguishes straight-line proximity from travel access and model estimates from observed facts. Instructors use open datasets where coverage and licensing are verified and clearly labelled synthetic records for scenarios involving personal or restricted data. Each day pairs two three-hour modules: architecture and data preparation; spatial databases and APIs; web and mobile interfaces; machine learning and language models; map assistance and defensive security; and testing and deployment. The same application evolves through successive laboratory sessions so learners can trace a result from its source through storage, analysis, delivery and presentation.

Course goals

  • Connect defensible geospatial analysis to usable web and mobile interfaces.
  • Use generative AI to accelerate development without delegating technical judgement, security review or spatial interpretation.
  • Integrate model predictions and natural-language assistance only where their outputs can be evaluated and explained.
  • Design for uneven connectivity, varied device capabilities and uncertainty in spatial data.
  • Build repeatable release, monitoring and data stewardship practices into application development.

Who should attend?

GIS developers and GIS analysts; Geospatial data scientists and remote sensing specialists; Software engineers and data analysts; Machine learning engineers and IT professionals; Urban and regional planners who build or specify digital mapping services

What you will learn

  • Define measurable acceptance criteria and draw the data flows and trust boundaries of an AI-enabled online GIS.
  • Prepare interoperable spatial data with documented provenance, CRS, geometry quality, licence and publication constraints.
  • Implement indexed, parameterised PostGIS queries and a spatial API with predictable request and response contracts.
  • Develop an accessible interactive map and an offline-capable mobile observation workflow.
  • Evaluate a spatial prediction model against a baseline using geographically separated test data and document its limitations.
  • Build a map assistant that uses allowlisted operations, verifies structured outputs and returns evidence or abstains.
  • Test application controls for authorisation, data minimisation and safe failure using synthetic records and non-production fixtures.
  • Deploy a versioned application, measure service health and demonstrate a recovery or rollback procedure.

What the course includes

  • Progressive laboratories on a single web and mobile GIS application, with checkpoints from data ingestion to deployment.
  • Desktop-to-web workflows covering QGIS, PostGIS, Python spatial APIs and interactive mapping.
  • Supervised mobile exercises covering positioning, offline observations and synchronisation conflicts.
  • Comparative use of ChatGPT, Claude and Gemini, subject to approved access, with versioned prompts and evidence-based review of generated outputs.
  • Spatially separated model evaluation, source-grounded map assistance and defensive application testing.
  • Kenyan and East African examples covering uneven data coverage, multilingual interfaces and intermittent connectivity.

Software and tools

  • QGIS for source inspection, cartographic prototyping and spatial quality assurance
  • Python with FastAPI, Psycopg, pytest, GeoPandas and scikit-learn
  • PostgreSQL with the PostGIS extension
  • Git for version control and review
  • JavaScript, HTML, CSS and MapLibre GL JS
  • Browser developer tools, a service worker and IndexedDB for progressive web application development
  • ChatGPT, Claude and Gemini through approved interfaces; one separately configured provider API or a local mock adapter for integration exercises
  • Docker and Docker Compose for repeatable development and staging
  • A smartphone or browser device emulator for mobile testing

Where this course can lead

  • Web GIS or geospatial application developer
  • Mobile GIS developer
  • Spatial data engineer
  • Geospatial data scientist or GeoAI engineer
  • Geospatial platform engineer
  • Technical GIS lead for public-service or planning applications
DETAILED COURSE OUTLINE

Course sections and lessons

Work through the course in a structured sequence. Each section includes a learning outcome and a set of focused lessons.

01Application Scope, Architecture and AI-Assisted Development5 lessons · 3 hours

Define the public-service application, allocate responsibilities across the stack and establish a reproducible development workflow.

Section outcomeProduce a traceable application design and a versioned skeleton with measurable acceptance criteria.

Lesson 1: Turn Service Questions into Testable Requirements

Translate the needs of a resident, a field enumerator and a county data steward into tasks. Trace the question ‘Which listed facility is nearest?’ from user input to the explanation shown with the result.

Learning objectives

  • Write acceptance criteria for browsing, nearest-facility lookup and observation capture.
  • Specify the input, distance definition and exclusions for a proximity result.

Key topics

  • User stories and observable acceptance criteria
  • Straight-line distance versus routing and service availability
  • Empty, stale and incomplete source coverage
02Geospatial Data Preparation and Quality in QGIS5 lessons · 3 hours

Prepare facility points, administrative boundaries and contextual layers as documented inputs to the application.

Section outcomePublish a checked training dataset with suitable CRSs, stable identifiers and explicit quality and usage constraints.

Lesson 1: Audit Data Sources and Publication Rights

Compare a candidate OpenStreetMap extract, an administrative boundary dataset and a synthetic observation layer. Record publisher, update date, licence, attribution, intended use and known coverage gaps.

Learning objectives

  • Create a source register that separates verified facts from unknowns.
  • Select which layers can be published, restricted or replaced with synthetic data.

Key topics

  • Source lineage and update frequency
  • Licence and attribution checks
  • Completeness bias in volunteered and administrative data
03PostGIS Data Modelling and Spatial Queries5 lessons · 3 hours

Load curated layers into PostgreSQL and design reproducible, indexed queries for the map and assistant.

Section outcomeImplement a migration-managed spatial schema and verify units, boundary behaviour and query performance.

Lesson 1: Model Facilities, Boundaries and Observations

Define geometry columns, primary keys and foreign keys for authoritative data and user submissions. Retain source identifiers separately from internal keys and record dataset versions.

Learning objectives

  • Write a migration that constrains geometry type and SRID.
  • Choose relationships that preserve source lineage and observation history.

Key topics

  • Geometry typmods, primary keys and referential integrity
  • Source metadata and versioned records
  • Separation of verified records and provisional observations
04Python Spatial API Development5 lessons · 3 hours

Expose bounded spatial operations and observation submissions through explicit web-service contracts.

Section outcomeDeliver a documented FastAPI service with validated inputs, stable outputs and safe failure behaviour.

Lesson 1: Design Feature and Search Contracts

Specify endpoints for facility detail, viewport browsing and nearest-facility search. Define examples for valid, empty and invalid requests before implementing the routes.

Learning objectives

  • Define request and response schemas for three spatial operations.
  • Choose consistent status and response behaviour for missing entities and empty collections.

Key topics

  • OpenAPI schemas and examples
  • Route parameters, bounding boxes, filters and page limits
  • GeoJSON Feature and FeatureCollection responses
05Interactive Web GIS and Accessible Cartography5 lessons · 3 hours

Build the browser interface and connect map state, filters and accessible detail views to the spatial API.

Section outcomeDeliver an interactive map that remains usable by keyboard, interpretable without colour alone and consistent with API results.

Lesson 1: Initialise MapLibre and Compose Layers

Set up the map canvas and combine a permitted basemap with facility and boundary sources. Inspect map-to-API requests and check the coordinate order of a known facility.

Learning objectives

  • Configure map sources, style layers and attribution.
  • Diagnose a misplaced feature using its API payload and reference location.

Key topics

  • MapLibre sources, style layers and layer order
  • Basemap terms, credits and initial extent
  • Longitude–latitude order and visible map bounds
06Mobile GIS, Field Observations and Offline Operation5 lessons · 3 hours

Adapt the browser application into a progressive web application for mobile capture and intermittent connectivity.

Section outcomeDemonstrate permission-aware field capture, offline queuing and safe synchronisation on a phone or emulator.

Lesson 1: Design for Small Screens and Outdoor Use

Refit the map and observation form for a one-handed workflow. Use a phone or emulator to test selection, orientation changes and the visibility of status messages.

Learning objectives

  • Create a responsive capture flow that does not depend on hover.
  • Keep critical controls reachable and available when the map is slow.

Key topics

  • Touch interaction, page reflow and map gesture conflicts
  • Progressive enhancement and device capability checks
  • Plain-language capture and save states
07Spatial Machine Learning and Map-Ready Predictions5 lessons · 3 hours

Use an observed or explicitly synthetic training exercise to model facility catchments likely to warrant further verification. Treat the model as a prioritisation aid, not as an authoritative service coverage layer.

Section outcomeTrain and evaluate a spatial classifier and publish an interpretable prediction layer with documented limits.

Lesson 1: Define the Prediction Target and Unit of Analysis

Define a grid-cell verification-priority label from an instructor-prepared review dataset. Trace when each label and predictor would become available and separate unreviewed cells from confirmed negatives.

Learning objectives

  • Specify prediction unit, target definition and predictor availability.
  • Identify attributes that would leak outcomes into training.

Key topics

  • Observed labels versus synthetic exercise labels
  • Spatial unit and scale effects
  • Label completeness and target leakage
08Language Models and Retrieval for GIS5 lessons · 3 hours

Build a provider-independent language service using curated documents and structured intent rather than relying on a model's memory.

Section outcomeImplement grounded responses with validated intent, traceable citations and explicit abstention.

Lesson 1: Separate Chat Products from API Integration

Compare interactive AI-assisted development with a server-side model adapter. Use a mock adapter in the laboratory when provider API credentials or approved access are unavailable.

Learning objectives

  • Implement a common interface for a mock and a configured model provider.
  • Document model identifiers, timeouts and fallback behaviour.

Key topics

  • Chat interfaces versus separately configured API access
  • Server-side credentials and model version tracking
  • Mock responses, provider errors and service budgets
09Natural-Language Map Interaction5 lessons · 3 hours

Connect validated intents to read-only spatial services and visible changes in map state without giving the model unrestricted execution privileges.

Section outcomeDeliver a map assistant whose textual results and highlighted features agree with authoritative query output.

Lesson 1: Expose a Small Registry of Safe Map Operations

Implement typed tools for viewport lookup, nearest facilities and facility detail. Route them through existing API services rather than executing arbitrary model-generated SQL.

Learning objectives

  • Define each operation's input schema, access policy and result limit.
  • Reject unknown operations and arguments outside the intended scope.

Key topics

  • Allowlisted operations and fixed query templates
  • Server validation and permission checks per call
  • Side-effect-free public search
10Defensive Security, Privacy and Responsible AI5 lessons · 3 hours

Harden the application using least privilege, data minimisation and defensive checks on supplied local fixtures.

Section outcomeDemonstrate that the app enforces access and privacy rules and fails safely when users, documents or model outputs are untrusted.

Lesson 1: Threat-Model the GIS Data Flow

Annotate the architecture with public, restricted and private assets. Prioritise plausible failure scenarios, including disclosure of field observations and an AI summary exceeding its intended scope.

Learning objectives

  • Identify trust boundaries and map each material risk to an owner and control.
  • Write defensive acceptance tests for two high-priority risks.

Key topics

  • Threat modelling and data-flow review
  • Public map tiles, restricted APIs and external model services
  • Fail-closed behaviour for access decisions
11Quality Assurance, Accessibility and Performance5 lessons · 3 hours

Verify spatial correctness and user experience systematically, then measure performance and diagnose failures with representative data and device conditions.

Section outcomeProduce a repeatable test suite and performance report linking failures to data, application, infrastructure or model behaviour.

Lesson 1: Build Spatial Reference Fixtures

Construct known geometries and reference results for boundaries, distances, empty viewports and invalid input. Cross-check selected expected values independently rather than deriving all test expectations from the application query.

Learning objectives

  • Create fixtures that detect axis reversal, unit errors and boundary ambiguity.
  • Specify justified tolerances for calculated distances.

Key topics

  • Reference points, known membership cases and coordinate order
  • Numerical tolerances and units
  • Independent checks in QGIS or a documented geodesic method
12Deployment, Operations and Professional Handover5 lessons · 3 hours

Promote the application to a controlled staging environment and demonstrate that another practitioner can operate, update and recover it.

Section outcomeRelease a reproducible staging build and explain its service limits, recovery options and ongoing stewardship responsibilities.

Lesson 1: Package the Stack for Staging

Build versioned containers for the API and client and attach persistent storage for PostgreSQL. Validate environment-specific settings and distinguish application liveness from readiness to serve requests.

Learning objectives

  • Launch the staging stack from a versioned configuration.
  • Demonstrate dependency checks, external secret configuration and persistent data storage.

Key topics

  • Container images, Compose and environment separation
  • Readiness, liveness and startup dependencies
  • TLS termination and restricted database network exposure
PLAN YOUR LEARNING

Upcoming training dates

There are no published dates for this course at present. Register your interest and the OGC team will advise you about the next intake.