[GRASS-SVN] r66667 - grass/trunk/lib/python/docs/src

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Oct 29 10:08:16 PDT 2015


Author: zarch
Date: 2015-10-29 10:08:15 -0700 (Thu, 29 Oct 2015)
New Revision: 66667

Modified:
   grass/trunk/lib/python/docs/src/pygrass_vector.rst
Log:
pygrass: improve documentation on open mode on pygrass Vector class

Modified: grass/trunk/lib/python/docs/src/pygrass_vector.rst
===================================================================
--- grass/trunk/lib/python/docs/src/pygrass_vector.rst	2015-10-29 16:58:35 UTC (rev 66666)
+++ grass/trunk/lib/python/docs/src/pygrass_vector.rst	2015-10-29 17:08:15 UTC (rev 66667)
@@ -69,8 +69,13 @@
 
 The ``open()`` method supports a number of option arguments (see the :class:`~pygrass.vector.abstract.Info`
 documentation for a complete list). In particular, the mode argument can take a
-a value of ``r`` for reading, ``w`` for writing, or ``rw`` for reading/writing.
+a value of:
 
+'r': read-only mode, vector features are read-only (attribute table is modifiable since are handle by a database);
+'w': write-only mode, write a new vector map in case of an old vector map all the previous features will be removed/overwritten;
+'rw': read-write mode, add new/update vector features without removing the existing ones. Add/remove vector layers.
+
+
 The geometry of a vector map can be read sequentially using the ``next()`` method.
 To return to the beginning, use the ``rewind()`` method.
 



More information about the grass-commit mailing list