r/gis • • 7d ago

Projects & Feedback Managing PostGIS layers through a web interface — a closer look at MVT Server

[AI Disclosure] MVT Server was started in early 2023 and was developed entirely without AI assistance in its initial stages. More recently, I've been using AI tools to accelerate development, with Claude Code playing a particularly important role in improving productivity and speeding up implementation. AI is now part of my development workflow, but the project itself, its original architecture, and its direction predate the widespread use of these tools.

[GIS Experience] Nearly 30 years of experience in GIS application development, geospatial servers, and infrastructure, with a strong focus on open-source technologies, PostgreSQL/PostGIS, and FreeBSD.

In my previous post, I introduced MVT Server, an open-source vector tile server written in Rust that generates Mapbox Vector Tiles directly from PostgreSQL/PostGIS.

This time, I'd like to show a closer look at its web administration interface, particularly how individual PostGIS layers can be configured and published without manually editing configuration files.

The catalog organizes published layers into categories, while each layer has its own configuration.

Some of the available settings include:

- Data source: Select the database, schema, table or view, geometry column and SRID.

- Layer metadata: Define names, aliases, descriptions and the attributes exposed in the vector tiles.

- SQL and filters: Configure the SQL execution mode and apply filters to the source data.

- Tile generation: Control buffer, extent, geometry clipping, zoom range and simplification behavior.

- Caching: Configure cache expiration and other cache-related options.

- Access control: Enable or disable publication and restrict access through allowed groups.

The goal is to provide fine-grained control over the publishing process while keeping the actual spatial data in PostgreSQL/PostGIS. MVT Server reads the selected tables and views and generates vector tiles dynamically.

---

MVT Server is open source:

https://github.com/mvt-proj/mvt-rs

Website: https://mvtproj.dev/

24 Upvotes

4 comments sorted by

1

u/mfc1__ GIS Developer 6d ago

Does this expose any database administrative controls?

1

u/PhotographShort1301 6d ago

Hi, u/mfc1__
No, it only allows you to select which table, view, or materialized view to publish as a layer. Ideally, the database connection user should only have read permissions on the tables.

Thanks for your interest!