[GRASS-SVN] r53994 - grass/trunk/vector/v.overlay

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Nov 23 08:08:37 PST 2012


Author: mmetz
Date: 2012-11-23 08:08:37 -0800 (Fri, 23 Nov 2012)
New Revision: 53994

Modified:
   grass/trunk/vector/v.overlay/main.c
   grass/trunk/vector/v.overlay/v.overlay.html
Log:
v.overlay: snap by default with 1e-8

Modified: grass/trunk/vector/v.overlay/main.c
===================================================================
--- grass/trunk/vector/v.overlay/main.c	2012-11-23 15:42:31 UTC (rev 53993)
+++ grass/trunk/vector/v.overlay/main.c	2012-11-23 16:08:37 UTC (rev 53994)
@@ -127,7 +127,7 @@
     snap_opt->label = _("Snapping threshold for boundaries");
     snap_opt->description = _("Disable snapping with snap <= 0");
     snap_opt->type = TYPE_DOUBLE;
-    snap_opt->answer = "0";
+    snap_opt->answer = "1e-8";
 
     table_flag = G_define_standard_flag(G_FLG_V_TABLE);
 

Modified: grass/trunk/vector/v.overlay/v.overlay.html
===================================================================
--- grass/trunk/vector/v.overlay/v.overlay.html	2012-11-23 15:42:31 UTC (rev 53993)
+++ grass/trunk/vector/v.overlay/v.overlay.html	2012-11-23 16:08:37 UTC (rev 53994)
@@ -8,10 +8,12 @@
 If areas in <em>ainput</em> are overlaid with areas in <em>binput</em>, 
 it is sometimes necessary to snap areas of <em>binput</em> to those of 
 <em>ainput</em>, otherwise areas can go missing or many sliver areas 
-can be created. Snapping can be enabled by setting the <em>snap</em> 
-option to a value larger zero. Recommended are values between 
-0.00000001 and 0.0001. Using larger values for snapping can have 
-undesired side-effects.
+can be created. Snapping is enabled by default and can be disabled by 
+setting the <em>snap</em> option to a negative value. Recommended values 
+are between 0.00000001 and 0.0001. Using larger values for snapping can 
+have undesired side-effects. Snapping modifies only boundaries in binput, 
+which are snapped to boundaries in ainput. Boundaries in ainput are not 
+modified.
 <!-- This is outdated 
 There are 3 links attached to features in output map, 
 <ul>



More information about the grass-commit mailing list