[GRASS-SVN] r71577 - grass/trunk/scripts/v.import

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Oct 22 11:09:17 PDT 2017


Author: mmetz
Date: 2017-10-22 11:09:17 -0700 (Sun, 22 Oct 2017)
New Revision: 71577

Modified:
   grass/trunk/scripts/v.import/v.import.html
   grass/trunk/scripts/v.import/v.import.py
Log:
v.import: do not snap by default

Modified: grass/trunk/scripts/v.import/v.import.html
===================================================================
--- grass/trunk/scripts/v.import/v.import.html	2017-10-22 16:44:14 UTC (rev 71576)
+++ grass/trunk/scripts/v.import/v.import.html	2017-10-22 18:09:17 UTC (rev 71577)
@@ -37,12 +37,11 @@
 
 <h3>Topology cleaning</h3>
 
-When importing polygons, non-topological polygons are converted to
-topological areas. By default, a very small snapping threshold is applied
-(1e-13 map units) to avoid topological errors caused by numerical inaccuracy
-of the input data format. If the original polygons contain errors (unexpected
-overlapping areas or small gaps between polygons), the import might
-need to be repeated using a larger <em>snap</em> value.
+When importing polygons, non-topological polygons are converted to 
+topological areas. If the input polygons contain errors (unexpected 
+overlapping areas, small gaps between polygons, or warnings about being 
+unable to calculate centroids), the import might need to be repeated 
+using a <em>snap</em> value as suggested in the output messages.
 
 <!-- TODO: add hints for latlong -->
 

Modified: grass/trunk/scripts/v.import/v.import.py
===================================================================
--- grass/trunk/scripts/v.import/v.import.py	2017-10-22 16:44:14 UTC (rev 71576)
+++ grass/trunk/scripts/v.import/v.import.py	2017-10-22 18:09:17 UTC (rev 71577)
@@ -63,8 +63,8 @@
 #% key: snap
 #% type: double
 #% label: Snapping threshold for boundaries (map units)
-#% description: '-1' for no snap
-#% answer: 1e-13
+#% description: A suitable threshold is estimated during import
+#% answer: -1
 #% guisection: Output
 #%end
 #%option



More information about the grass-commit mailing list