[GRASS-SVN] r58231 - grass/trunk/gui/wxpython/lmgr
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Nov 16 01:46:20 PST 2013
Author: martinl
Date: 2013-11-16 01:46:19 -0800 (Sat, 16 Nov 2013)
New Revision: 58231
Modified:
grass/trunk/gui/wxpython/lmgr/layertree.py
Log:
wxGUI: add 'PostGIS export' to vector contextual menu
Modified: grass/trunk/gui/wxpython/lmgr/layertree.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/layertree.py 2013-11-16 08:19:34 UTC (rev 58230)
+++ grass/trunk/gui/wxpython/lmgr/layertree.py 2013-11-16 09:46:19 UTC (rev 58231)
@@ -406,7 +406,7 @@
'region', 'export', 'attr', 'edit0', 'edit1', 'save_ws',
'bgmap', 'topo', 'meta', 'null', 'zoom1', 'region1',
'color', 'hist', 'univar', 'prof', 'properties', 'sql', 'copy',
- 'report'):
+ 'report', 'export-pg'):
self.popupID[key] = wx.NewId()
# get current mapset
@@ -463,10 +463,14 @@
# vector layers (specific items)
if mltype and mltype == "vector" and numSelected == 1:
self.popupMenu.AppendSeparator()
- self.popupMenu.Append(self.popupID['export'], text = _("Export"))
+ self.popupMenu.Append(self.popupID['export'], text = _("Export common formats"))
self.Bind(wx.EVT_MENU, lambda x: self.lmgr.OnMenuCmd(cmd = ['v.out.ogr',
'input=%s' % mapLayer.GetName()]),
id = self.popupID['export'])
+ self.popupMenu.Append(self.popupID['export-pg'], text = _("Export PostGIS"))
+ self.Bind(wx.EVT_MENU, lambda x: self.lmgr.OnMenuCmd(cmd = ['v.out.postgis',
+ 'input=%s' % mapLayer.GetName()]),
+ id = self.popupID['export-pg'])
lmapset = self.GetLayerInfo(self.layer_selected, key = 'maplayer').GetMapset()
if lmapset != currentMapset:
More information about the grass-commit
mailing list