0.01
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
Creating legends by hand is tedious. This software allows you to generate them automatically.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

>= 0.2.0
>= 0
 Project Readme

Mapnik Legendary

Mapnik Legendary is a small utility to help with generating legends (aka map keys) from Mapnik stylesheets. You describe in a config file which attributes, and which zoom level(s) you want an image for, and it reads the stylesheet and spits out .png files. It uses the ruby-mapnik bindings to load the stylesheets and mess around with the datasources, so you don't actually need any of the shapefiles or database connections to make this work.

Requirements

Installation

You can install the gem from rubygems:

gem install mapnik_legendary

Alternatively, you can add the gem to your project's Gemfile

gem mapnik_legendary

Running

For full options, run

mapnik_legendary -h

Examples

mapnik_legendary examples/openstreetmap-carto-legend.yml osm-carto.xml

See examples/openstreetmap-carto-legend.yml