Prepare your Postgres for MapTiler Server

Do you want to use MapTiler Server vector tiles generating on the flyfeature and you wonder how to set up your Postgres database? In this article, we will show how!

Installation

MapTiler Server serves vector tiles gziped. If you enable gzip extension in your database, tiles will leave your database compressed. This may reduce network traffic between your database and Server.

Common issues

MapTiler Server uses public.geometry_columns view and relies on correct geometry columns initialization. In practice, geometry columns are often created without proper SRID. MapTiler Server will inform you about this inconsistency and provide a dialog to help you set the correct SRID.

 

warn.png

setSrid.png

How to import spatial data to PostGIS for MT Server
Vector tiles from PostgreSQL
Advanced SQL editing