浏览代码

pygrass: update docs after changes in API in https://trac.osgeo.org/grass/changeset/66016, https://trac.osgeo.org/grass/ticket/3010

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@68603 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 9 年之前
父节点
当前提交
fa865eaf3d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/python/docs/src/pygrass_vector.rst

+ 2 - 2
lib/python/docs/src/pygrass_vector.rst

@@ -115,8 +115,8 @@ Import the geometry feature class and add two points:
 
 Write the two points to the map:
 
-    >>> new.write(point0, ('pub', ))
-    >>> new.write(point1, ('resturnat', ))
+    >>> new.write(point0, cat=1, attrs=('pub',))
+    >>> new.write(point1, cat=2, attrs=('resturant',))
 
 Commit the db changes: