tecznotes

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

Dec 31, 2011 2:19am

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 3:33pm EST

Sorry, no new comments on old posts.

July 2015
Su M Tu W Th F Sa
   
 

Recent Entries

  1. writing a new continuous integration service for openaddresses
  2. state of the map 2015
  3. bike ten: schwinn touring, v2
  4. blog all oft-played tracks VI
  5. 2015 fellowship reader
  6. bike ten: schwinn touring
  7. more open address machine
  8. open address machine
  9. making the right job for the tool
  10. the hard part
  11. end the age of gotham-everywhere
  12. on this day
  13. write code
  14. managers are awesome / managers are cool when they’re part of your team
  15. bike eight: french parts
  16. being a client
  17. bike seven: building a cargo bike
  18. blog all video timecodes: how buildings learn, part 3
  19. talk notes, urban airship speaker series
  20. john mcphee on structure

Archives