QGIS/tools/mapserver_export/test_export.py
gsherman 3e6db6dc92 Merged changes to the Qgis->MapServer export tool from the Qt4 Ui branch to HEAD.
This only affects the tools/mapserver_export directory.



git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@4306 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-12-09 03:42:04 +00:00

9 lines
268 B
Python
Executable File

#!/usr/bin/python
# test script to export a sample QGIS project file to mapserver
import ms_export
ex = ms_export.Qgis2Map('./lakes.qgs', './lakes.map')
ex.setOptions( 'Meters', 'PNG', 'TestMap', '800', '600', '','','template', 'header', 'footer')
ex.writeMapFile()