[GRASS-SVN] r66510 - grass/trunk/scripts/v.import
    svn_grass at osgeo.org 
    svn_grass at osgeo.org
       
    Fri Oct 16 01:05:23 PDT 2015
    
    
  
Author: lucadelu
Date: 2015-10-16 01:05:23 -0700 (Fri, 16 Oct 2015)
New Revision: 66510
Modified:
   grass/trunk/scripts/v.import/v.import.py
Log:
v.import: added snap option, default 1e-13
Modified: grass/trunk/scripts/v.import/v.import.py
===================================================================
--- grass/trunk/scripts/v.import/v.import.py	2015-10-16 02:19:57 UTC (rev 66509)
+++ grass/trunk/scripts/v.import/v.import.py	2015-10-16 08:05:23 UTC (rev 66510)
@@ -59,6 +59,14 @@
 #% descriptions: Overrides encoding interpretation, useful when importing ESRI Shapefile
 #% guisection: Output
 #%end
+#%option
+#% key: snap
+#% type: double
+#% label: Snapping threshold for boundaries (map units)
+#% description: '-1' for no snap
+#% answer: 1e-13
+#% guisection: Output
+#%end
 #%flag
 #% key: f
 #% description: List supported OGR formats and exit
@@ -139,6 +147,7 @@
         vopts['layer'] = layers
     if output:
         vopts['output'] = output
+    vopts['snap'] = options['snap']
     try:
         grass.run_command('v.in.ogr', input=OGRdatasource,
                           location=TMPLOC, flags='i', quiet=True, **vopts)
    
    
More information about the grass-commit
mailing list