Mapnik users, I'm announcing nik2img.py - a command line utilty for creating mapnik graphics.
Source code: http://code.google.com/p/mapnik-utils/ Quickstart page: http://code.google.com/p/mapnik-utils/wiki/Nik2Img Details below and in the script: http://mapnik-utils.googlecode.com/svn/trunk/desktop/nik2img/nik2img.py Comments welcome. Cheers, Dane -------------------------------------------------------------------------------------------------------------------- nik2img.py - In Mapnik xml, out Map image Summary: A command line tool for generating map images by simply pointing to an XML file. Seeks to match the shp2img utility used in the MapServer project. Thanks MapServer! http://mapserver.gis.umn.edu/docs/reference/utilityreference/shp2img Source: http://code.google.com/p/mapnik-utils/ Dependencies: Requires Python and Mapnik installed with the python bindings Usage: # Copy the script to your path then: $ nik2img.py -h # help on usage $ nik2img.py -m mapfile.xml -o yourmap.png Limitations: Paths to file system datasources in the XML files loaded will be relative to your dir. Very sparse on the error handling so far. ToDo * Add docstrings and code comments. * Support cairo renderer and formats. * Add ability to override map extents * Add a verbose output setting with timing tests and mapfile debugging. * Support variable substitution to allow reprojection, etc. * Cascadenik integration | ability to read in css.mml or css.mss. * Allow for setting the path to datasources. _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

