2
############################################################################
5
# AUTHOR(S): Anna Kratochvilova <kratochanna gmail.com>
6
# PURPOSE: Cartographic Composer
7
# COPYRIGHT: (C) 2011-2012 by Anna Kratochvilova, and the GRASS Development Team
9
# This program is free software; you can redistribute it and/or
10
# modify it under the terms of the GNU General Public License as
11
# published by the Free Software Foundation; either version 2 of the
12
# License, or (at your option) any later version.
14
# This program is distributed in the hope that it will be useful, but
15
# WITHOUT ANY WARRANTY; without even the implied warranty of
16
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
# General Public License for more details.
19
############################################################################
22
#% description: Tool for creating hardcopy map outputs.
27
#%option G_OPT_F_INPUT
29
#% label: File containing mapping instructions to load
30
#% description: See ps.map manual for details
39
import grass.script as grass
41
from core.globalvar import CheckWxVersion
42
from core.utils import _, GuiModuleMain
43
from psmap.frame import PsMapFrame
44
from psmap.instructions import Instruction
48
if not CheckWxVersion([2, 9]):
49
wx.InitAllImageHandlers()
50
frame = PsMapFrame(parent = None)
54
frame.LoadFile(options['file'])
58
if __name__ == "__main__":
59
options, flags = grass.parser()