浏览代码

Vlib: add comments for topology conversion

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@55645 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 12 年之前
父节点
当前提交
2ef2dbbd1a
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      lib/vector/Vlib/copy.c

+ 5 - 1
lib/vector/Vlib/copy.c

@@ -329,7 +329,7 @@ int copy_nodes(const struct Map_info *In, struct Map_info *Out)
 }
 }
 
 
 /*!
 /*!
-  \brief Check if area forms an isle
+  \brief Check if area is part of an isle
 
 
   Check for areas that are part of isles which in turn are inside
   Check for areas that are part of isles which in turn are inside
   another area.
   another area.
@@ -405,6 +405,10 @@ int copy_areas(const struct Map_info *In, int field, struct Map_info *Out)
         cat = Vect_get_area_cat(In, area, field);
         cat = Vect_get_area_cat(In, area, field);
         if (cat < 0) {
         if (cat < 0) {
             /* no category - check if area forms an isle */
             /* no category - check if area forms an isle */
+	    /* this check does not make sense because the area
+	     * is also not exported if it is part of an isle
+	     * inside another area: the isle gets exported
+	     * as an inner ring */
             if (!is_isle(In, area))
             if (!is_isle(In, area))
                 G_warning(_("No category defined for area %d. "
                 G_warning(_("No category defined for area %d. "
                             "Area not exported."),
                             "Area not exported."),