[GRASS-SVN] r66513 - grass/branches/releasebranch_7_0/scripts/v.import

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Oct 16 01:20:28 PDT 2015


Author: neteler
Date: 2015-10-16 01:20:28 -0700 (Fri, 16 Oct 2015)
New Revision: 66513

Modified:
   grass/branches/releasebranch_7_0/scripts/v.import/v.import.py
Log:
v.import: added snap option, default 1e-13 (trunk, r66510)

Modified: grass/branches/releasebranch_7_0/scripts/v.import/v.import.py
===================================================================
--- grass/branches/releasebranch_7_0/scripts/v.import/v.import.py	2015-10-16 08:10:00 UTC (rev 66512)
+++ grass/branches/releasebranch_7_0/scripts/v.import/v.import.py	2015-10-16 08:20:28 UTC (rev 66513)
@@ -56,6 +56,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
@@ -136,6 +144,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