Playing with pg_featureserv

Dec 21, 2023 | postgis, QGIS

Which is really all this post is about – learning something new. This year I hit a lot of Conferences and a talking point I’ve done for the last few years has been the tn 911 project. So during the talk I always had this graphic up:

QGIS makes the edits. PostGIS holds the data. Geoserver pushes out some imagery and services. The big problem was due to security at the 911 center geoserver wasn’t really pushing out data to share. We could – but then you have holes in the firewall and that just made me tired. I ended up falling back to Cloud Optimized Geotiffs to share out DEMs and imagery at some point to everyone in the 911. I also created a new problem by forgetting I had done this. The client was gleefully using them and somehow it slipped out of my brain.

After FOSS4GNA, I started thinking that the whole concept of the 911 database needed an update. I had COGS. I’ve been debating a openlayers map on the backend to just show the data. So I started looking at pg_featureserv and pg_tileserv. So now, I can get data straight from the database to whatever else that can consume a geojson. It would be insanely nice if the dispatch software could ingest geojson.

Anyway – nothing else much to say except I was able to trudge through docker and get this running. I’ve been playing with passing queries through CQL and maybe today I’ll execute a function through pg_featureserv.

It can be a nice addition to the Tennessee 911 project. It’s also a bit different in terms of the way I’m used to thinking about data. My life up until 2014 was very file centric. Then I started learning more about databases. Then all those OGC services. Now it’s “just do it”. Which really between this and COGS (I can’t believe I forgot I had implemented that) makes the project less of a “infrastructure pain” on my end.

Anyway – New things. Never stop learning.

You may also like

FOSS4GNA 2026

Greetings from the Atlanta Airport at 7:10 AM. I am again flying during a time change - my body says it's 8:10 but overall - this is easier than flying in the spring when the time changes. I've already gotten lost twice and asked for directions once. So this will be...

The Aunt II: Adding Cemeteries

The Aunt II: Adding Cemeteries

In a previous post I talked about my aunt that died and we couldn't find the cemetery. Found it! Welcome to the Bethel Cemetery. I will tip my hat to the inherent creepiness of the whole thing. Who is rising second? So I want to add cemeteries to OSM. In my first...

QGIS US – September 22nd 2026 EDT

QGIS US – September 22nd 2026 EDT

It's been a while since I've done a QGIS US meeting. Part of it was burnout and part I've been busy with work and life. So we're talking projections tomorrow. Proj is a bigger project than just QGIS - but it's nice to know how that project is moving along. Meeting...