<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-cite-prefix">On 01-10-15 17:49, Vaclav Petras wrote:<br>
</div>
<blockquote
cite="mid:CABo5uVuqX+s7aKwWvtTPpXe3TGKsoDx_Os9wsdVbS_qDnp3CRA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Oct 1, 2015 at 11:28 AM,
Paulo van Breugel <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:p.vanbreugel@gmail.com" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:p.vanbreugel@gmail.com">p.vanbreugel@gmail.com</a></a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">with
VectorTopo('testB', mode='rw') as vectormap:</blockquote>
</div>
<br>
</div>
<div class="gmail_extra">At the and it makes sense. 'w' removes
the vectors and starts over. 'rw' keep the file but ones it
for writing. Perhaps 'a' would make better sense in this case.
What the documentation says?<br>
</div>
</div>
</blockquote>
<br>
On
<a class="moz-txt-link-freetext" href="https://grass.osgeo.org/grass70/manuals/libpython/pygrass_vector.html">https://grass.osgeo.org/grass70/manuals/libpython/pygrass_vector.html</a>
it is mentioned that:<br>
<br>
"<i>The open() method supports a number of option arguments (see the
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." [...] </i>"<i>If a vector map is opened
with the mode w or rw, then the user can write new features to the
dataset</i>".<br>
<br>
I think this description is somewhat ambiguous. Especially the
mode='w' is unclear to me; I could clearly not write new features to
an (existing) vector layer. It might be nice to have a short
one-line explanation of each of these options, explaining the
difference. <br>
<br>
<br>
<br>
</body>
</html>