Ticket #2255: mapnik_world_population_demo.py

File mapnik_world_population_demo.py, 277 bytes (added by astrid_emde, 4 years ago)
Line 
1#!/usr/bin/env python3
2import mapnik
3mapfile = "world_population.xml"
4m = mapnik.Map(1400, 600)
5mapnik.load_map(m, mapfile)
6bbox = mapnik.Box2d(mapnik.Coord(-180.0, -75.0), mapnik.Coord(180.0, 90.0))
7m.zoom_to_box(bbox)
8mapnik.render_to_file(m, 'world_population.png', 'png')