[GRASS-SVN] r47637 - grass-addons/grass7/gui/wxpython/wx.wms
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Aug 14 13:53:11 EDT 2011
Author: sudeepsingh
Date: 2011-08-14 10:53:11 -0700 (Sun, 14 Aug 2011)
New Revision: 47637
Added:
grass-addons/grass7/gui/wxpython/wx.wms/__init__.py
grass-addons/grass7/gui/wxpython/wx.wms/core.diff
Modified:
grass-addons/grass7/gui/wxpython/wx.wms/readme.txt
Log:
Integerating the wmsmenu with wxgui
Added: grass-addons/grass7/gui/wxpython/wx.wms/__init__.py
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.wms/__init__.py (rev 0)
+++ grass-addons/grass7/gui/wxpython/wx.wms/__init__.py 2011-08-14 17:53:11 UTC (rev 47637)
@@ -0,0 +1,9 @@
+all = [
+ "addserver",
+ "parse",
+ "passwordPopUp",
+ "ServerInfoAPIs",
+ "WMSMapDisplay",
+ "wmsmenu",
+ "LoadConfig.py"
+]
Added: grass-addons/grass7/gui/wxpython/wx.wms/core.diff
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.wms/core.diff (rev 0)
+++ grass-addons/grass7/gui/wxpython/wx.wms/core.diff 2011-08-14 17:53:11 UTC (rev 47637)
@@ -0,0 +1,21 @@
+Index: wxgui.py
+===================================================================
+--- wxgui.py (revision 47502)
++++ wxgui.py (working copy)
+@@ -1234,14 +1234,14 @@
+ Debug.msg(1, "GMFrame.NewDisplay(): idx=%d" % self.disp_idx)
+ try:
+ from gui_modules.wms.wmsmenu import DisplayWMSMenu
++ DisplayWMSMenu()
+ except:
+ gcmd.GError(parent = self.parent,
+ message = _("Experimental WMS support for wxGUI not available. "
+ "You can install it by '%s'") % \
+ "g.extension -s extension=wx.wms")
+ return
+-
+- DisplayWMSMenu()
++ return
+
+ def OnNewDisplay(self, event = None):
+ """!Create new layer tree and map display instance"""
Modified: grass-addons/grass7/gui/wxpython/wx.wms/readme.txt
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.wms/readme.txt 2011-08-14 17:47:37 UTC (rev 47636)
+++ grass-addons/grass7/gui/wxpython/wx.wms/readme.txt 2011-08-14 17:53:11 UTC (rev 47637)
@@ -18,9 +18,11 @@
1) Create a directory wms in as grass_trunk/gui/wxpython/gui_modules/wms. Place all the files in the svn root/grass-addons/grass7/gui/wxpython/wx.wmswms directory in the created wms directory.
2) Change the path for config file in the file LoadConfig.py as per the where config file is placed. (This need is temporary, will be resolved soon)
3) Patch wxgui.py and toolbars.py with command "cd path/to/sourceroot && cat core.diff | patch -p0"
-4) make the source code
-5) Now run it , when launched , a new button shall appear in Main GUI window beside 'Start New Map Display'
-6) Click on it, and a new wms window shall be launched.
+4) Patch grass_trunk/gui/wxpython/Makefile with comamnd "cd path/to/sourceroot && cat Makefile.diff | patch -p0"
+5) Place __init__.py file in the grass_trunk/gui/wxpython/gui_modules/wms .
+6) make the source code
+7) Now run it , when launched , a new button shall appear in Main GUI window beside 'Start New Map Display'
+8) Click on it, and a new wms window shall be launched.
Bugs:
More information about the grass-commit
mailing list