Blog

Putting CKAN Datasets on the Map: ckanext-gztr and Geoconnex

datHere and the Center for Geospatial Solutions showed how the open-source ckanext-gztr extension connects CKAN datasets to real-world places and to the Geoconnex water data graph.

Woman at a laptop linking data files to a pinned place on a landscape map, CKAN boat logo
In short

This session featured ckanext-gztr, an open-source CKAN extension by datHere that lets publishers tag datasets with real places on a map and link them to Geoconnex, the US water data knowledge graph.

Publishers pick places on a map instead of typing GeoJSON.

Users find datasets by drawing on a map or searching an address.

Geoconnex identifiers connect datasets about the same river across organisations.

Hosted by Yoana Popova, with Joel Natividad and Mueez Khan of datHere, and Andrew Padilla of the Center for Geospatial Solutions at the Lincoln Institute of Land Policy.

Watch the session recording CKAN Monthly Live #44
The Problem
πŸ“

What problem does ckanext-gztr solve?

A CKAN portal is good at telling you what a dataset is about. It is much worse at telling you where that dataset applies.

Mueez framed the session around a simple story. Imagine a community that depends on the Rio Grande, a river that runs through Texas, New Mexico and Colorado. People in that community want to know about water quality, flood and drought risk, how much water they draw from the river, and where its water comes from. That leads to two questions.

First: what data exists about this place? A visitor to a CKAN portal should be able to search for a region and find every dataset associated with it.

Second, the reverse: which place is this dataset about? A researcher who publishes, say, water quality measurements needs a way to associate that dataset with a real-world feature like a river. The same applies beyond water: lakes, political boundaries such as states, provinces, counties or nations, and infrastructure such as buildings, railroads or roads.

Today, the usual way to record location in CKAN is to type GeoJSON, a text format for describing shapes on a map, into a field. In the Q&A, CKAN technical lead Ian Ward said that reusable places with IDs would be much better than the current experience of working with a giant GeoJSON field.

The Standard: Geoconnex
πŸ’§

What is Geoconnex?

Presented by Andrew Padilla, Center for Geospatial Solutions, Lincoln Institute of Land Policy

Joel set the context. Almost five years ago, datHere began working with Texas to build the Texas Water Data Hub, a CKAN-based portal. During that project, a new standard was being created, Geoconnex, which goes much further than entering spatial metadata. Joel described it as linked data for water data.

Andrew, who is part of the leadership team of the Internet of Water, explained what that means. Geoconnex is an open-source reference system and community-contributed knowledge graph that connects fragmented US datasets to real-world hydrologic features: main-stem rivers, watersheds, stream gauges, dams, reservoirs, wells and more. The Center for Geospatial Solutions maintains it through a cooperative agreement with the USGS, as part of the Internet of Water Coalition.

The building block is the persistent identifier (PID), written as a URL. It gives a water feature, or a dataset about it, a stable, globally unique and resolvable identity. When different providers reference the same PID, their data becomes connected for both people and machines. Andrew called this a "follow your nose" approach to discovery: start from a river and find the datasets about it, or answer more complex questions based on the relationships the identifiers anchor.

USGS is the issuing authority for Geoconnex PIDs. Data providers submit features through a registration workflow, and a new PID is "minted" (created). Each PID redirects to a human-readable landing page describing the feature or dataset.

Why CKAN? Becoming a Geoconnex provider takes technical knowledge, and that can be too high a bar for providers working with limited resources. But Andrew's team observed that many institutional water data providers are heavy users of CKAN. An integration lets CKAN portal owners publish datasets to Geoconnex easily, connecting the dots across datasets and across institutional and municipal boundaries.

In plain terms

Persistent identifier: think of it as a passport number for a river. Names can vary or be misspelled; the identifier stays the same.

Knowledge graph: a database of things and the relationships between them, so you can follow connections instead of only searching by keyword.

The Demo: ckanext-gztr
πŸ—ΊοΈ

How do you add a location to a CKAN dataset with ckanext-gztr?

Presented by Mueez Khan, datHere

Mueez started with the publisher's side. When you create a dataset in a CKAN portal with the Gazetteer installed, the form gets a new section with an "Add location data" button. Instead of typing GeoJSON into a field, you get an interactive map in a dialog.

A drop-down lists collections of places that the portal's system administrator has set up in advance, such as counties or sub-basins. In the demo, choosing "counties" displayed the counties of New Mexico on the map. Mueez selected Bernalillo County, around Albuquerque, and it was added to the dialog as a small tag, a "pill".

You can also search across all collections by name. Typing "Rio Grande" surfaced an irrigation district along the river, which he added, and one click on the pill's Γ— removed the county again. Each place has an info panel with more details. Publishers can also select a whole state with a quick-extent button, or draw a custom polygon.

After clicking Apply and publishing, the dataset page shows a map preview of the selected places, and the location also appears in search results.

What gets saved

The dataset's spatial field still holds GeoJSON, but without the geometry. It stores which collection the place comes from and the place's ID in that collection. The full shape lives in a shared file on the server. Mueez noted this saves a lot of space in the PostgreSQL database.

Where the places come from

Each collection is a GeoParquet file, a compact format for map data, kept in the new file storage of CKAN 2.12. That storage can be local to the server or in the cloud, for example S3 or a CDN. The file is compressed and loaded into the browser when that part of the page loads.

πŸ”

How do you find CKAN datasets by location?

Presented by Mueez Khan, datHere

For now, the Gazetteer mirrors the behaviour of ckanext-spatial, the long-standing CKAN geospatial extension. A mini-map on the search page lets you draw a bounding box (a rectangle on the map) and filter the datasets inside it.

Two additions make that easier. You can display the preset places, such as irrigation districts, as a guide while drawing. And you can search for an address, such as "Albuquerque": the map shows its location using the Nominatim API provided by OpenStreetMap.

In the demo, a box drawn along the river returned the new Rio Grande research dataset. A box drawn outside that area returned no datasets.

Clicking a place on the map and searching by that exact feature is not built yet. Mueez said New Mexico has asked for it, and it came up again in the Q&A.

Bounding-box search Address search Nominatim
πŸ”—

How does the CKAN–Geoconnex integration work?

Presented by Mueez Khan, datHere

The Geoconnex integration is optional; once it's enabled, extra features become available. It works like this.

When an administrator prepares a place collection, each place can carry its Geoconnex PID. The Rio Grande, for instance, exists in Geoconnex's collection of main-stem rivers with its own URL. When a publisher tags a dataset with that place, the PID ends up in the dataset's metadata, which the standard CKAN API exposes (package_show).

A separate system called the bulk runner reads each dataset's metadata through the CKAN API, looks for Geoconnex PIDs, and loads the matching datasets into the Geoconnex knowledge graph.

From there, people can find those CKAN datasets in two ways: through SPARQL queries (a query language for knowledge graphs), or through the Geoconnex Explorer map, where you can select the Rio Grande and find the CKAN datasets linked to it.

Joel added two points. The Gazetteer stands on its own as a modern way to enter spatial metadata, with or without Geoconnex. And Geoconnex currently focuses on the United States: datHere is implementing the integration for New Mexico Water Data now, with Texas next. He invited anyone interested in adapting the extension to their own jurisdiction to get in touch.

πŸ› οΈ

What's the status of ckanext-gztr, and what's coming?

Shared by Joel Natividad, datHere

datHere started building the Gazetteer for Texas, then met Andrew's team and adopted the Geoconnex integration this year. The first phase of that integration was delivered to Andrew's team in October. The work is open source. The extension's documentation states that the first release, v0.1.0, is coming soon and recommends waiting for it before using the extension.

Joel also shared related geospatial work in datHere's open-source tools:

Automatic place suggestions in DataPusher+. On the backlog: DataPusher+ will discover boundaries automatically and suggest them, so data stewards don't have to find them by hand.

Geocoding with OpenCage in qsv. DataPusher+ uses qsv, which has a geocode command (turning addresses into coordinates) that now supports OpenCage. Joel's point: if you geocode at scale with Esri or Google, you can't cache the results and can't use them on maps other than theirs. OpenCage is built on open data from Nominatim and OpenStreetMap and has no caching restrictions, so over time you can build up your own cache.

Automatic maps. qsv can also create map visualisations automatically, using its statistics and heuristics to discover maps in the data.

Q&A
Ian Ward, CKAN technical lead

Can you click individual shapes on the map to pick several places, and does the same work when searching?

For publishing, yes. Mueez showed that you click a shape, choose "Select this feature", and every place you select is associated with the dataset. Search doesn't work that way yet. It runs through Apache Solr, CKAN's search engine, using bounding boxes, the same approach as ckanext-spatial. Solr currently indexes simplified shapes, not the IDs of the places. Indexing the place IDs and collection names in Solr could make click-to-search possible without changing CKAN's default search behaviour, and New Mexico has asked for such a feature. For now, you draw a bounding box around the area you're interested in.

Ian Ward, CKAN technical lead

The dataset stores a reference to a place rather than its shape. Is that built into the Gazetteer, and could core CKAN reference places this way instead of a giant GeoJSON field?

It's the core of how the Gazetteer works. Mueez built it on the STAC specification and cloud-native geospatial practices. An administrator converts a GeoJSON file (or a shapefile) into a GeoParquet file, stored in the new CKAN file storage alongside a STAC catalog file and a collection file. Each GeoParquet file works like a table with four columns: an ID, a title such as "Bernalillo", the geometry, and an optional Geoconnex PID.

The dataset itself stores only the collection and the ID. When the full feature is needed, the extension parses the GeoParquet file on the server and serves it through its STAC API. The bulk runner picks up the Geoconnex PID from the same place. The installation and software architecture sections of the documentation explain how it fits together, and there are interactive Jupyter tutorials for preparing the files.

You originally created ckanext-spatial, the foundation this builds on. What's your view?

AdriΓ  said the best part was seeing the foundation built many years ago evolved, expanded and used in a case like this. Beyond the demo itself, he said it opens up a whole field of potential features and integrations between CKAN and other tools, services and standards, and called that an important direction for CKAN: not only focusing on the metadata and data it holds, but integrating with wider and more complex systems.

Mueez added that he sees the Gazetteer as an alternative approach to ckanext-spatial, not a replacement or upgrade. ckanext-spatial still has benefits the Gazetteer doesn't, such as harvesters. Both use the same bounding-box search and the same Solr JTS extension. The difference is that the Gazetteer indexes a simplified geometry for search instead of keeping the shape in the dataset's metadata, because the shapes now live in separate storage.

Project News
πŸ“¦

From the CKAN project

CKAN 2.12 is out, and new patch releases are available for 2.12 and 2.11. CKAN's 20th anniversary continues at ckan.org/20-years-of-ckan, with stories from across the community. And the CKAN monthly newsletter brings highlights from around the project once a month; you can subscribe here.

Get Involved
🀝

How You Can Help

If you run a portal with location-based data, follow the ckanext-gztr repository and tell the team what your jurisdiction needs; the code and the documentation are open. If you have experience with geospatial search in Solr, the "search by selected place" idea from the Q&A is a good place to contribute. Report bugs and ideas on GitHub, join the conversation on Gitter / Matrix, and send security issues privately to the security address, never to public issues.

From the Community
🌍
Nominations open

Site of the Month

Put a CKAN portal in the spotlight. Each month we feature one in the CKAN Ecosystem Catalog and on the CKAN forum. Nominate your own, or one you admire.

🧭
Apply by December 2

CKAN Community Coordinators

Help lead the CKAN community through 2027. We're looking for up to five community coordinators. You get training, a peer cohort and travel support to meet in Pittsburgh in spring 2027.

This was the last CKAN Monthly Live of 2026. Thank you to Joel, Mueez and Andrew for building this in the open, and to everyone who joined. Want to present in 2027? Fill in the speaker form or write to Yoana directly, and add topic ideas to the meeting notes document. See you next year.

Session Recording

CKAN Monthly Live #44: ckanext-gztr and Geoconnex, putting CKAN datasets on the map

November 18, 2026

Watch on YouTube