[GRASS-SVN] r69342 - grass-addons/grass7/vector/v.in.pygbif

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Sep 1 14:10:08 PDT 2016


Author: sbl
Date: 2016-09-01 14:10:08 -0700 (Thu, 01 Sep 2016)
New Revision: 69342

Modified:
   grass-addons/grass7/vector/v.in.pygbif/v.in.pygbif.py
Log:
v.in.pygbif: yet another fix

Modified: grass-addons/grass7/vector/v.in.pygbif/v.in.pygbif.py
===================================================================
--- grass-addons/grass7/vector/v.in.pygbif/v.in.pygbif.py	2016-09-01 20:57:46 UTC (rev 69341)
+++ grass-addons/grass7/vector/v.in.pygbif/v.in.pygbif.py	2016-09-01 21:10:08 UTC (rev 69342)
@@ -20,6 +20,8 @@
 To Dos:
 - use proper cleanup routine, esp if using csv + vrt (copy from other modules)
 - handle layers in mask input
+- add progress bar
+
 """
 
 #%module
@@ -73,6 +75,7 @@
 #%flag
 #% key: p
 #% description: Print result from matching taxa names and exit
+#% guisection: Print
 #% suppress_required: yes
 #%end
 
@@ -84,12 +87,14 @@
 #%flag
 #% key: g
 #% description: Print result from matching taxon names in shell script style and exit
+#% guisection: Print
 #% suppress_required: yes
 #%end
 
 #%flag
 #% key: o
 #% description: Print number of matching occurrences per taxon and exit
+#% guisection: Print
 #% suppress_required: yes
 #%end
 
@@ -609,12 +614,12 @@
         # Close the current map if a map for each species is requested
         if species_maps:
             new.table.conn.commit()
-            new.close
+            new.close()
 
     # Close the output map if not a map for each species is requested
     if not species_maps and not print_species and not print_species_shell and not print_occ_number:
         new.table.conn.commit()
-        new.close
+        new.close()
 
 # Run the module
 # ToDo: Add an atexit procedure which closes and removes the current map



More information about the grass-commit mailing list