2005-12-09 03:42:04 +00:00
|
|
|
#!/usr/bin/python
|
2007-09-16 20:50:28 +00:00
|
|
|
#***************************************************************************
|
|
|
|
# test_export.py
|
|
|
|
# --------------------------------------
|
|
|
|
# Date : Sun Sep 16 12:34:29 AKDT 2007
|
|
|
|
# Copyright : (C) 2007 by Gary E. Sherman
|
|
|
|
# Email : sherman at mrcc dot com
|
|
|
|
#***************************************************************************
|
|
|
|
#* *
|
|
|
|
#* This program is free software; you can redistribute it and/or modify *
|
|
|
|
#* it under the terms of the GNU General Public License as published by *
|
|
|
|
#* the Free Software Foundation; either version 2 of the License, or *
|
|
|
|
#* (at your option) any later version. *
|
|
|
|
#* *
|
|
|
|
#***************************************************************************/
|
|
|
|
|
2005-12-09 03:42:04 +00:00
|
|
|
|
|
|
|
# test script to export a sample QGIS project file to mapserver
|
|
|
|
import ms_export
|
2006-03-09 16:32:54 +00:00
|
|
|
ex = ms_export.Qgis2Map('./test1.qgs', './test1.map')
|
2006-09-10 23:27:14 +00:00
|
|
|
ex.setOptions( 'Meters', 'JPEG', 'TestMap', '800', '600', '', '', '')
|
2005-12-09 03:42:04 +00:00
|
|
|
|
|
|
|
ex.writeMapFile()
|