[GRASS-SVN] r61611 - in grass-addons/grass7/gui/wxpython/wx.metadata: r.info.iso v.info.iso

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 13 14:58:43 PDT 2014


Author: martinl
Date: 2014-08-13 14:58:43 -0700 (Wed, 13 Aug 2014)
New Revision: 61611

Modified:
   grass-addons/grass7/gui/wxpython/wx.metadata/r.info.iso/r.info.iso.py
   grass-addons/grass7/gui/wxpython/wx.metadata/v.info.iso/v.info.iso.py
Log:
wx.metadata: -o replaced by --o (r|v.info.iso)

Modified: grass-addons/grass7/gui/wxpython/wx.metadata/r.info.iso/r.info.iso.py
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.metadata/r.info.iso/r.info.iso.py	2014-08-13 21:55:25 UTC (rev 61610)
+++ grass-addons/grass7/gui/wxpython/wx.metadata/r.info.iso/r.info.iso.py	2014-08-13 21:58:43 UTC (rev 61611)
@@ -29,7 +29,7 @@
 
 #%option G_OPT_F_OUTPUT
 #% key: mdout
-#% label: Name of output metadata file
+#% label: Name for output metadata file
 #% required: no
 #%end
 
@@ -63,7 +63,7 @@
         md.createGrassInspireISO()
         xml_file = md.saveXML(path=destination,
                               xml_out_name=mdout,
-                              overwrite=flags['o'])
+                              overwrite=os.getenv('GRASS_OVERWRITE', False))
         if xml_file is not False:
             md.readXML(xml_file)
             print md.validate_inspire()
@@ -72,7 +72,7 @@
         md.createGrassBasicISO()
         xml_file = md.saveXML(path=destination,
                               xml_out_name=mdout,
-                              overwrite=flags['o'])
+                              overwrite=os.getenv('GRASS_OVERWRITE', False))
         if xml_file is not False:
             md.readXML(xml_file)
             print md.validate_basic()

Modified: grass-addons/grass7/gui/wxpython/wx.metadata/v.info.iso/v.info.iso.py
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.metadata/v.info.iso/v.info.iso.py	2014-08-13 21:55:25 UTC (rev 61610)
+++ grass-addons/grass7/gui/wxpython/wx.metadata/v.info.iso/v.info.iso.py	2014-08-13 21:58:43 UTC (rev 61611)
@@ -12,8 +12,8 @@
 """
 
 #%module
-#% description: Creates metadata based on ISO standard for specified raster map.
-#% keywords: raster, metadata, iso
+#% description: Creates metadata based on ISO standard for specified vector map.
+#% keywords: vector, metadata, iso
 #%end
 
 #%option G_OPT_V_MAP
@@ -63,7 +63,7 @@
         md.createGrassInspireISO()
         xml_file = md.saveXML(path=destination,
                               xml_out_name=mdout,
-                              overwrite=flags['o'])
+                              overwrite=os.getenv('GRASS_OVERWRITE', False))
         if xml_file is not False:
             md.readXML(xml_file)
             print md.validate_inspire()
@@ -72,7 +72,7 @@
         md.createGrassBasicISO()
         xml_file = md.saveXML(path=destination,
                               xml_out_name=mdout,
-                              overwrite=flags['o'])
+                              overwrite=os.getenv('GRASS_OVERWRITE', False))
         if xml_file is not False:
             md.readXML(xml_file)
             print md.validate_basic()



More information about the grass-commit mailing list