Home / Companies / Carto / Blog / Post Details
Content Deep Dive

MVT generation: Mapnik vs PostGIS

Blog post from Carto

Post Details
Company
Date Published
Author
CARTO Contributors
Word Count
1,153
Company Posts That Month
31
Language
English
Hacker News Points
-
Post removed?
No
Summary

Mapnik and PostGIS are both used for rendering map tiles, but they differ in how they generate these tiles. Mapnik uses a combination of Postgres and PostGIS to render tiles, whereas PostGIS's ST_AsMVT function allows users to create full tiles from SQL queries directly in the database. A benchmark was conducted to compare the execution times of both methods, with the results showing that rendering tiles straight from the database using ST_AsMVT is significantly faster than using Mapnik, especially for large datasets. However, the difference in speed comes at the cost of additional complexity and potential overhead due to data transfer and conversion between internal representations. The use of MVTs as a building block in the database offers flexibility and can potentially offload CPU-intensive encoding operations from the tiler.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Real-time 1 2,551 676 196 -6%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.