Get the latest tech news

Writing a tile server in Python


Another dictated post111, but heavily edited. Buyer beware. I developed a tileset based on OpenStreetMap data and style and elevation information, but I don't have a render server. What I have been do

75% of the planet's surface is water, and with Mercator projection and the Antartic Ocean, the percent of tiles could be bigger, so this optimization cuts a lot of useless rendering time. The current style file is 6MiB+ and takes mapnik 4s+ to load it and generate all its structures, which means these threads have to be created once per service lifetime. A current batch implementation uses 2 queues to send and retrieve computations to a pool of subprocesses; my idea is to "just" add a web frontend to this.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of python

python

Photo of tile server

tile server

Related news:

News photo

Show HN: Visual A* pathfinding and maze generation in Python

News photo

WhatsApp for Windows lets Python, PHP scripts execute with no warning

News photo

A Clone of Deluxe Paint II Written in Python