An open API service indexing awesome lists of open source software.

https://github.com/springmeyer/mapjig

Mapnik OSM stylesheets to serve as templates for making woodcut maps
https://github.com/springmeyer/mapjig

Last synced: 5 months ago
JSON representation

Mapnik OSM stylesheets to serve as templates for making woodcut maps

Awesome Lists containing this project

README

          

# Mapjig

Mapnik stylesheets to serve as templates for woodcut maps.

# Requirements

* Mapnik trunk

* PostGIS

* OpenStreetMap data

* osm2pgsql

# Setup

Shapefile extracts from OpenStreetMap:

wget http://tile.openstreetmap.org/processed_p.tar.bz2 # (227M)
wget http://tile.openstreetmap.org/shoreline_300.tar.bz2 # (46M)
mkdir world_boundaries
tar xjf processed_p.tar.bz2 -C world_boundaries
tar xjf shoreline_300.tar.bz2 -C world_boundaries

OSM Extract imported into PostGIS with osm2pgsql

osm2pgsql --slim -d extract.osm.bz2

Edit the datasource.xml.inc settings to match your system:

datasource.xml.inc

Test rendering:

sudo easy_install nik2img

nik2img.py fast.xml test.png # should get red land, blue ocean