Skip to content
gka edited this page Nov 21, 2011 · 4 revisions

Basically, there are two different ways you can use svgmap.py.

  • Creating SVG maps via a Python module
  • Creating SVG maps via command-line interface

Creating SVG maps via a Python module

Here's a zero-config example showing how to render a world map:

 from lib.svgmap import SVGMap
 svgmap = SVGMap()
 svgmap.render_world_map(outfile='world.svg')

Creating SVG maps via command-line interface

 svgmap world -o world.svg