瀏覽代碼

Vlib: update documentation for Vect_merge_lines()

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@69600 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 8 年之前
父節點
當前提交
180377b6b0
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      lib/vector/Vlib/merge_lines.c

+ 3 - 3
lib/vector/Vlib/merge_lines.c

@@ -63,8 +63,8 @@ static int compare_cats(struct line_cats *ACats, struct line_cats *BCats)
    Useful for generalization and smoothing.
    Useful for generalization and smoothing.
    Adjacent boundaries are merged as long as topology is maintained.
    Adjacent boundaries are merged as long as topology is maintained.
    Adjacent lines are merged as long as there are exactly two different 
    Adjacent lines are merged as long as there are exactly two different 
-   lines connected at a given node.
-   Categories are added up when merging.
+   lines with identical categories connected at a given node.
+   Zero-length lines need to be removed first.
    GV_BUILD_BASE as topo build level is sufficient, areas need not be built.
    GV_BUILD_BASE as topo build level is sufficient, areas need not be built.
 
 
    \param Map input vector map 
    \param Map input vector map 
@@ -122,7 +122,7 @@ int Vect_merge_lines(struct Map_info *Map, int type, int *new_lines,
 	 *  - loop back to start boundary via several other boundaries
 	 *  - loop back to start boundary via several other boundaries
 	 *  - one boundary forming closed loop
 	 *  - one boundary forming closed loop
 	 *  - node with 3 entries but only 2 boundaries, one of them connecting twice,
 	 *  - node with 3 entries but only 2 boundaries, one of them connecting twice,
-	 *    the other one must then be topologically incorrect in case of boundary */
+	 *    the other one must then be topologically incorrect (a bridge) in case of boundary */
 
 
 	/* go backward as long as there is only one other line/boundary at the current node */
 	/* go backward as long as there is only one other line/boundary at the current node */
 	G_debug(3, "go backward");
 	G_debug(3, "go backward");