Guide4 min read
Agentic GIS in practice: turn an inspection question into a field map
Use a GIS AI agent to query three inspection sites, check the two that need review, and publish an interactive map your field team can open.
By Sarkoa
Updated
“Which inspection sites still need review? Show me what you found, then prepare a map I can send to the field team.”
Two sites qualify in our sample: West, with 12 recorded inspections, and East, with 5. Open the field-team map and select either marker to see its record. The original file also has a Central site. It has eight inspections and is already marked ready, so it stays off the field team’s map.
This is a small example of agentic GIS. You give an assistant a question and access to GIS tools. It can inspect a layer, query the records, and use the result to build a map. You can check each step and choose who sees the result. Here is how to reproduce it with your own Sarkoa account.
Ask the question against the source layer
Download the three fictional inspection sites (GeoJSON). Sign in, upload the file in Files, and wait for it to finish processing. Connect your assistant to Sarkoa through MCP. The query can run with read access. Creating the new layer and map also requires permission to write to your organization.
Give the assistant this prompt:
In inspection-sites.geojson, which sites have status equal to review? Show each site’s ID, name and inspection count. Keep the point coordinates for a map. Stop after showing me the matches.
A GIS AI agent can inspect the layer’s fields and call query_features with an equality filter on status. The query in this example returned two features and reported that there were no further matches. You can check the answer by opening the original GeoJSON and reading its three properties objects.
| Site ID | Matching site | Recorded inspections |
|---|---|---|
| S01 | West demonstration site | 12 |
| S03 | East demonstration site | 5 |
The count is an attribute of each site. It tells you how many inspections were recorded there. The status field determines whether to send the team.
Turn the two matches into a map draft
Make an organization-only draft from just those two points. Keep their IDs, names, statuses and inspection counts. Make each marker clickable, frame both sites in the opening view and keep original-file downloads off.
For the map above, we saved the returned features and their coordinates as a two-site GeoJSON, uploaded that layer, then created the draft. If your assistant can query but cannot transfer a file, download the two-site result, upload it in Files, and ask the assistant to continue with that layer. In Custom maps, check that West and East both open a popup. Central is absent from the published layer itself.

Choose who can open the result
The draft starts with organization access. For a real assignment, decide whether the field crew should sign in as invited reviewers or whether anyone who receives the link may open it. Send the map’s viewer link once you have chosen the audience. Sharing the original file for download is a separate decision. Map and file sharing settings
For this fictional example we chose public viewing and left source downloads off. In a signed-out browser on both phone and desktop sizes we found the two review markers and opened West’s popup. You can perform the same recipient check on the finished inspection map.
Try a raster question with a checkable answer
For another way to use AI for geospatial analysis, ask “What is the mean elevation inside this boundary, and how many cells had a valid value?” That needs a raster and polygon in place of the site-status filter. The worked example includes both downloads and a QGIS cross-check: both grids returned a mean of 102 m, with different valid-cell counts after reprojection. Calculate elevation inside a polygon
Related posts
- Guide4 min read
Share a KML or KMZ online as an interactive map
Turn two Google Earth placemarks and a route into a browser map. Try the KMZ, export the right layers in QGIS and see what happens to icons and overlays.
Read more → - Guide6 min read
How to compare two maps and show what changed
Choose a useful before-and-after map, prepare two matching datasets, and let readers inspect the difference without mistaking a visual comparison for a measurement.
Read more →