[GRASS-SVN] r49867 - grass/branches/develbranch_6/lib/vector

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Dec 22 17:24:20 EST 2011


Author: neteler
Date: 2011-12-22 14:24:20 -0800 (Thu, 22 Dec 2011)
New Revision: 49867

Modified:
   grass/branches/develbranch_6/lib/vector/vectorlib.dox
Log:
topology explained; some light updates

Modified: grass/branches/develbranch_6/lib/vector/vectorlib.dox
===================================================================
--- grass/branches/develbranch_6/lib/vector/vectorlib.dox	2011-12-22 20:09:13 UTC (rev 49866)
+++ grass/branches/develbranch_6/lib/vector/vectorlib.dox	2011-12-22 22:24:20 UTC (rev 49867)
@@ -118,8 +118,8 @@
       System (RDBMS) connected through DBMI library and drivers (\ref vlib_attributes);
 </ul>
 
-GRASS vector maps are stored in an arc-node representation, consisting
-of curves called arcs. An arc is stored as a series of x,y,z
+GRASS vector maps are stored in an arc-node representation,
+consisting of curves called arcs. An arc is stored as a series of x,y,z
 coordinate pairs. The two endpoints of an arc are called nodes. Two
 consecutive x,y,z pairs define an arc segment. The user specifies the
 type of input to GRASS; GRASS doesn't decide. GRASS allows for the
@@ -312,19 +312,46 @@
 \section vlib_topology_management Vector library topology management
 
 Topology general characteristics:
-<ul>
-<li> geometry and attributes are stored separately
-   (don't read both if it is not necessary (usually it is not))</li>
-<li> the format is topological (areas build from boundaries)</li>
-<li>currently only 2D topology is supported
-</ul>
 
-<p>
-Topology is written for native format while pseudo-topology is written
-for OGR sources, SHAPE-link.
+- geometry and attributes are stored separately
+   (don't read both if it is not necessary - usually it is not)
+- the format is topological (areas build from boundaries)
+- currently only 2D topology is supported
 
-Some examples bellow:
+Topology is written for native GRASS vector format; in case of
+linked OGR sources (see <tt>v.external</tt> module), only
+pseudo-topology (boundaries constructed from polygons) is written.
 
+The following rules apply to the vector data:
+
+- Boundaries should not cross each other (i.e., boundaries which would
+  cross must be split at their intersection to form distict boundaries).
+  On the contrary, lines can cross each other, e.g. bridges over rivers.
+- Lines and boundaries share nodes only if their endpoints are identical.
+  Lines or boundaries can be forced to share a common node by snapping
+  them together. This is particulary important since nodes
+  are not represented in the coor file, but only implicitly as
+  endpoints of lines and boundaries.
+- Common area boundaries should appear only once (i.e., should not be
+  double digitized).
+- Areas must be explicitly closed. This means that it must be possible
+  to complete each area by following one or more boundaries that are
+  connected by common nodes, and that such tracings result in closed
+  areas.
+- It is recommended that area features and linear features be placed
+  in separate layers. However if area features and linear features
+  must appear in one layer, common boundaries should be digitized only
+  once. For example, a boundary that is also a line (e.g., a road which
+  is also a field boundary), should be digitized as a boundary to 
+  complete the area(s), and a boundary which is functionally also a line
+  should be labeled as a line by a distinct category number.
+
+Vector map topology can be cleaned at user level by <tt>v.clean</tt>
+command.
+
+
+\subsection vlib_topology_examples Topology examples
+
 <b>Points</b>
 
 \verbatim
@@ -1785,13 +1812,19 @@
  - Vect_rewrite_line()
 
 
-\section contacts Contacts
+\section vlibAuthors Authors
 
- Radim Blazek (vector architecture) <radim.blazek at gmail.com>
+- Radim Blazek (vector architecture) <radim.blazek gmail.com>
 
- Roberto Micarelli (DGLib) <mi.ro at iol.it>
+- Roberto Micarelli (DGLib) <mi.ro iol.it>
 
+Updates:
 
+- Markus Metz
+
+- Martin Landa <landa.martin gmail.com>
+
+
 \section references References
 
 Text based on: R. Blazek, M. Neteler, and R. Micarelli. The new GRASS 5.1



More information about the grass-commit mailing list