cancel
Showing results for 
Search instead for 
Did you mean: 
Technical Blog
Explore in-depth articles, tutorials, and insights on data analytics and machine learning in the Databricks Technical Blog. Stay updated on industry trends, best practices, and advanced techniques.
cancel
Showing results for 
Search instead for 
Did you mean: 
dbkent
Databricks Employee
Databricks Employee

For many organizations, geospatial data lives on its own, and it’s been like this for decades. The GIS team manages separate geodatabases and file exports, while, increasingly, customer, operational, and business data reside in a separate data warehouse. If you wanted to bring the two together, someone would build an extract, schedule a refresh, maintain it, and, with any ad hoc analysis, you end up with multiple copies, each with its own _last_updated suffix. 

Here is the good news: Databricks (your lakehouse) and ArcGIS (your GIS) now connect in more ways than ever. Whether you're doing desktop analysis, data editing, building applications, or leveraging AI Agents, there is a Databricks + ArcGIS solution that doesn’t require you to copy data out of your Unity Catalog-governed lakehouse.

This post will cover several ways to work with Databricks and ArcGIS, covering:

  1. Visualization and Analysis with ArcGIS Pro
  2. Editing GIS data using Custom Data Feed (CDF) and Lakebase
  3. Bolstering Genie’s spatial intelligence with ArcGIS Location Services through MCP
  4. Enhancing Databricks Apps using the ArcGIS Maps SDK for JavaScript
  5. Build ArcGIS Experience Builder Apps on Lakehouse Data

Let’s dive in.

Visualize and Analyze Lakehouse Data in ArcGIS Pro

Let’s start with the biggest news: ArcGIS Pro 3.8 can now connect directly to Databricks. You create a database connection to a Lakehouse SQL warehouse, point it at a Unity Catalog catalog and schema, and add your tables as query layers that run against the warehouse

Prior to this built-in connector in ArcGIS Pro, customers would often have to move data in and out of their Lakehouse. This requires new pipelines to create copies of their data, all of which requires additional time and effort to manage. Copying data out means you lose the lakehouse governance and highly scalable performance of the Databricks platform. 

Now, with the ArcGIS Pro integration there's no export or shadow copy of the data. GIS analysts query the same governed data as everyone else in the organization. Every query executes against a Databricks SQL Warehouse, allowing for massive scalability. Whether you are working with 25,000 GPS pings or 25 million, you can visualize and analyze your Lakehouse data directly in ArcGIS Pro.

dbkent_0-1795819280172.png

One day of vessel movement (about 24,000 tracks) queried from 10 years of tracks stored as native GEOMETRY in Databricks, shown in ArcGIS Pro 3.8 by vessel type.

Get started in ArcGIS Pro (3.8 or later)

  1. Install the required driver: Use the latest 64-bit Databricks ODBC driver on each ArcGIS Pro machine.
  2. Create a database connection: Insert > Connections > Database > New Database Connection, and choose Databricks as the platform. Enter the server hostname and the SQL warehouse's HTTP path, sign in with OAuth (your Databricks account or a service principal), and pick a catalog and schema.
  3. Add data from the connection. Drag a table from the Catalog pane onto the map and pick its unique ID field when Pro asks. Or use Add Data > Query Layer to write SQL that filters to criteria and area you need. Points, lines and polygons from GEOMETRY columns are drawn as regular vector layers.

You'll need USE CATALOG and USE SCHEMA on the catalog and schema, SELECT on the tables, and CAN USE on the SQL warehouse. For best performance, run ArcGIS Pro in the same cloud and region as the warehouse.

Detailed instructions can be found here: https://doc.esri.com/en/arcgis-pro/latest/help/data/databases/connect-databricks.html

Edit Databricks Data from ArcGIS: Custom Data Feed + Lakebase

For some use cases, reading lakehouse data is only part of the job. Field crews update asset status, analysts digitize new features, and operators close out cases. Today those edits go into an enterprise geodatabase or a hosted feature layer, which becomes a second authoritative copy that someone has to reconcile with the lakehouse. Lakehouse tables are not the best solution for small row-at-a-time updates, there is a better pattern.

If you’re not familiar, introducing Lakebase, Databricks' managed PostgreSQL with PostGIS, a backend built for these transactional workloads. You can leverage Lakebase using the open-source Databricks Custom Data Feed (CDF) provider. This is a plug-in for ArcGIS Server that publishes a Lakebase table as a standard feature service with Query and Editing, so Map Viewer, ArcGIS Pro and other ArcGIS clients can edit it like any other layer.

How it works

  • Edits go straight to Lakebase. Adds, updates and deletes made in any ArcGIS client are written to Lakebase as they happen.
  • One copy of the data. The Lakebase table is the system of record, so there's no second GIS copy to sync.
  • Filtering runs in Lakebase. Features are stored as PostGIS geometry, so each request's extent, attribute and time filters run inside Lakebase, not in ArcGIS Server.

Get started (no code)

  1. Register the prebuilt package from the latest release in ArcGIS Server Manager.
  2. Add your Databricks workspace and a service principal with access to the table.
  3. Publish a service from your Lakebase table with editing enabled.

Editing needs ArcGIS Server 12.0 or later.

For the full walkthrough, including the service principal's Unity Catalog and Lakebase access and every publish setting, follow the step-by-step guide in the repo's README.

dbkent_1-1795819280168.jpeg

Add a point in Map Viewer and it's written straight to a Lakebase table; reopen the map and it's read back from Lakebase. No sync job in between.

Only need to show Lakehouse data? You don't need Lakebase for that. The same provider publishes read-only feature services straight from Unity Catalog tables through a Databricks SQL warehouse, so Map Viewer, ArcGIS Pro, Dashboards, and Experience Builder can map them without an export. Spatial, attribute and time filters run on the warehouse, and you pick the backend (Lakehouse or Lakebase) per service. It scales to very large tables: our demo serves 28 billion AIS reports. Read-only layers work on ArcGIS Server 11.4 and later. The repo covers setup, serving large tables, and the options for each backend.

Agentic Workflows and Apps with ArcGIS MCP

Location is tied to almost every core business decision: How close is a customer to our distribution center? Which work orders fall outside a 45-minute drive from the field office? What is the terrain like at a planned site? Historically, answering these questions meant pulling datasets from your enterprise warehouse, opening a standalone GIS tool, and manually joining the output back into your workflow.

The open Model Context Protocol (MCP) streamlines this whole process. Esri now offers MCP for ArcGIS Location Services, bringing tools such as geocoding, routing, service areas, and elevation directly into AI workflows.

dbkent_2-1795819280169.png

Inside Databricks, spatial tools become native capabilities sitting right alongside your governed data, eliminating duplicate data pipelines entirely.

Unified governance in Unity Catalog: You can register the ArcGIS MCP server once as a Unity Catalog service using Unity Gateway. This allows you to manage credentials in one place, grant access using standard SQL permissions (EXECUTE), and maintain audit logs right alongside your table activity.

  1. Connect to MCP: From the left sidebar, Unity Gateway → MCPs, then click + MCP → Connect an existing MCP server.
  2. Location: pick a catalog and schema you control (for example main → spatial_demo). Name: arcgis_location.
  3. Connection: choose Create new connection and fill in:
    1. Connection type: HTTP
    2. Enter : https://location-services-mcp.arcgis.com:443/beta/mcp
    3. Authentication: Bearer token. Paste the ArcGIS key here. Credentials are securely stored and managed in Unity Catalog, and users of the service never see it.
  4. Click Create & load tools. Check that all tools appear (buffer, elevation_at_locations, find_address_candidates, map_with_overlay, reverse_geocode, solve_route, solve_service_area).

dbkent_3-1795819280169.png 

Conversational spatial queries in Genie: Business users can query spatial capabilities in plain English through Genie or a customized Genie Agent. A single prompt can combine Delta tables with live spatial analysis, such as identifying open work orders outside a drive-time zone- without needing custom code to bridge the two systems.

In the following example, the user can ask Genie for a comparison of the straight-line distance and driving route between Databricks headquarters in San Francisco and Esri headquarters in Redlands, California. Behind the scenes, Genie automatically orchestrates both ArcGIS Location Services and Databricks Spatial SQL, calling Find Address Candidates twice to geocode each headquarters, Solve Route to calculate the fastest driving path, and executing a SQL query to compute the straight-line distance. In a single response, it returns a clean summary comparing the ~389-mile (626 km) straight-line distance against the ~440-mile (~6 hours 55 minutes) drive, complete with exact coordinates and a transparent thought process showing every tool call executed.

dbkent_4-1795819280169.png

Interactive visualization with Databricks Apps: 

Genie is great for questions, but location answers are best with interactive maps. Some workflows also need a purpose-built interface, such as a dispatch console, a site-selection tool, or a field app. Databricks Apps let you build and host that interface inside your workspace, with single sign-on already in place.

Put an Esri map on your lakehouse data. The ArcGIS Maps SDK for JavaScript runs in the app's frontend. The backend (for example, FastAPI) reads data from Unity Catalog through a SQL warehouse. Spatial SQL returns geometries in WKT or GeoJSON, which the app then converts into map layers. You can show stores as sized markers, H3 cells as a heatmap, or service territories as polygons, with popups, legends, and layer controls. The data stays in Unity Catalog. The map is just another governed view of it.

dbkent_5-1795819280172.png

Add live location services through the same MCP service. The app backend calls the Unity Catalog MCP service using its own app identity. For instance, when asking the app to calculate the distance between Databricks and Esri headquarters, it calls the location functions through Unity Gateway, sharing the exact same credentials, permissions, and audit trail as Genie to keep key management centralized and simple.

dbkent_6-1795819280170.png

Embed Genie in the app. This is where the two parts come together. The Genie Agents API lets you add a Genie Agent to any app as a chat panel, for example with Genie on the left and the map on the right:

In the following example the user is asking a spatial question over your governed data, like "Map all our LA stores sized by average weekly revenue, labeled by store name". The app sends the prompt to a Genie Agent built over your spatial tables, such as the Kestrel LA agent shown here. With on-behalf-of-user authorization, Genie runs as the signed-in user, so Unity Catalog row filters, column masks, and permissions apply just like they do everywhere else. Genie writes and runs the SQL query, returning both the answer and the result set so the app can plot all 14 stores directly on the map as circles sized by avg_weekly_revenue and labeled by store_name, complete with a legend and symbology controls. 

dbkent_7-1795819280170.png

Next, ask a follow-up question that needs travel times or addresses, like "Which Kestrel store is closest to Union Station, Los Angeles, and how long is the drive?". For this, Genie in Agent mode can call the ArcGIS MCP tools itself, or the app can call them directly to fill in the gaps. The app geocodes Union Station (800 N Alameda St), calculates the roughly 5-minute (1.4 km) drive to Kestrel Arts District, and draws the route and geocoded points right next to the SQL results on the map.

dbkent_8-1795819280173.png

The result is a "chat with my map" experience. Business users ask questions in plain English, see the answer as text, a table, and a map, and can keep asking follow-up questions in the same conversation. Behind the scenes, everything stays on a single governed platform: data in Unity Catalog, models through Unity Gateway, location services through the Unity Catalog MCP service, and the app protected by workspace SSO. This is the power of Where within a unified, cost-efficient, and secure platform. 

Build Experience Builder Apps on Lakehouse Data: The Databricks Data Widget

The problem. Many ArcGIS teams build apps without code in Experience Builder: drag in a Map, a Table, a Filter and a Chart, wire them together, and publish. Those widgets only work with data the portal already knows about, so lakehouse tables get exported to a hosted feature layer first. That brings back the copy, the staleness, and a second set of permissions.

The pattern. The Databricks Data widget adds Unity Catalog tables to an Experience Builder app as live layers. The author adds the widget, signs in with Databricks and picks tables; Map Layers, Legend, Table, Filter and selection then treat them like any other layer.

How it works

  • Queries run as the viewer. A small Databricks App called GeoLakeLayers acts as the gateway between Experience Builder and Databricks: it turns each map request into SQL on a Databricks SQL warehouse and runs it as the signed-in viewer. Viewers sign in with their Databricks account, and Unity Catalog grants, row filters and column masks apply to each person. That per-viewer security is the main reason to choose it over the Custom Data Feed, which uses one Databricks identity per service.
  • Nothing on ArcGIS Server, no export. Unlike the Custom Data Feed, there's no plug-in to install on ArcGIS Server, and no data is copied out of Unity Catalog.
  • Standard or Lakehouse//RT warehouses. It runs on any Databricks SQL warehouse, including Lakehouse//RT (Beta), where a 2,000-feature page came back in about 300 ms in our testing.
  • More than reads. The widget works with any Unity Catalog table or view the viewer can query. Admins can also turn on editing in the gateway for quick corrections and reviews, with each save running as the person editing. For high-volume editing, use the Custom Data Feed with Lakebase. The same gateway can also publish OGC API – Features services for QGIS and other OGC clients.

Get started

  1. Deploy the GeoLakeLayers gateway app to your Databricks workspace.
  2. Add the widget to Experience Builder Developer Edition or your ArcGIS Enterprise portal (tested with 1.20 and Enterprise 12.1).

Code and setup guide: GeoLakeLayers on GitHub.

dbkent_9-1795819280171.jpeg

50,000 cell towers from a Unity Catalog table. Change the filter or zoom in, and Databricks powers the live query.

Which Pattern Should I Use?

If you need to…

Use

Analyze Databricks tables in ArcGIS Pro

ArcGIS Pro 3.8 direct query

Edit Databricks data from Map Viewer, ArcGIS Pro and other ArcGIS clients

Custom Data Feed + Lakebase

Publish Databricks layers to Esri clients through ArcGIS Server/Portal

Custom Data Feed (Lakehouse or Lakebase)

Ask spatial questions in plain English, or build map apps inside Databricks

Genie + ArcGIS MCP, Databricks Apps with the ArcGIS Maps SDK

Build no-code Experience Builder apps with per-viewer Unity Catalog security

Databricks Data widget + GeoLakeLayers

The two ArcGIS-side options differ in where they run and whose permissions apply. The Custom Data Feed runs in ArcGIS Server with one Databricks identity per service, so portal sharing decides who sees what. GeoLakeLayers runs in Databricks and queries as each viewer, so Unity Catalog decides.

Resources

The Custom Data Feed provider (MIT License) and GeoLakeLayers (Databricks License) are community projects, not official Databricks or Esri products.