tecznotes

Michal Migurski's notebook, listening post, and soapbox. Subscribe to this blog. Check out the rest of my site as well.

Dec 30, 2011 11:19pm

solar stylesheet

A little more Mapnik work for the week: Aaron Huslage and Roger Weeks of Tethr asked about a map stylesheet for OSM data that could generate maximally-compressed tiles to fit onto a portable GIS / disaster response system they’re prototyping.

OSM Solar is a response to that requirement, and generates tiles that in many cases are 30%-40% the size of their OSM Mapnik counterparts. The job is mostly accomplished through drastic color reduction to a 4-bit (16 color) palette and aggressive pruning of details: parks are named but not filled, buildings are just barely visible for minimal context, color transitions and road casings are avoided.

The colors are sampled from Ethan Schoonover’s Solarized, “Precision colors for machines and people.” They’re designed for editing text, but work well for maps too. I’ve plucked out a narrow range, made the freeways bright magenta, and otherwise left everything alone.

The stylesheets can be found on Github, and I’ve tried to minimize external dependencies to the absolute minimum PostGIS, Mapnik, and osm2pgsql setup imaginable. If you use this to render tiles, you’ll want to use TileStache because it understands what to do with the included 16-color palette file.

Comments (1)

  1. This is gorgeous and has inspired me to change my vim color scheme.

    Posted by Ben Golder on Sunday, January 8 2012 12:33pm PST

Sorry, no new comments on old posts.

May 2013
Su M Tu W Th F Sa
   
 

Recent Entries

  1. week 1,851: week one
  2. tilestache 0.7% better
  3. south end of lake merritt construction
  4. network time machine backups
  5. week 1,846: ladders
  6. documentation for tiled vectors in mapnik
  7. the liberty of postgreslessness: tiled vectors in mapnik
  8. gl-solar, webGL rendering of OSM data
  9. webgl maps, stealth mountain edition
  10. one more (map of lake merritt)
  11. elephant-to-elephant: processing OSM data in hadoop
  12. beasts of the southern wild
  13. weeks 1,838/1,839: total protonic reversal
  14. week 1,837: typescripting
  15. week 1,836: back at shiny
  16. hands
  17. week 1,835: leaving stamen
  18. work in progress: green means go
  19. loading artifacts, google maps for iOS
  20. blog all oft-played tracks IV

Archives