[GRASS-SVN] r50621 - sandbox/martinl/v.test
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Feb 1 18:26:28 EST 2012
Author: martinl
Date: 2012-02-01 15:26:28 -0800 (Wed, 01 Feb 2012)
New Revision: 50621
Modified:
sandbox/martinl/v.test/main.c
sandbox/martinl/v.test/v.test.html
Log:
v.test (sandbox): random access requires level 2
Modified: sandbox/martinl/v.test/main.c
===================================================================
--- sandbox/martinl/v.test/main.c 2012-02-01 22:18:59 UTC (rev 50620)
+++ sandbox/martinl/v.test/main.c 2012-02-01 23:26:28 UTC (rev 50621)
@@ -138,6 +138,11 @@
}
else {
int nlines;
+
+ if (flag.l->answer)
+ G_fatal_error(_("Random access requires vector map "
+ "open on topological level"));
+
nlines = Vect_get_num_lines(&Map);
for (i = 0; i < number; i++) {
Modified: sandbox/martinl/v.test/v.test.html
===================================================================
--- sandbox/martinl/v.test/v.test.html 2012-02-01 22:18:59 UTC (rev 50620)
+++ sandbox/martinl/v.test/v.test.html 2012-02-01 23:26:28 UTC (rev 50621)
@@ -41,18 +41,6 @@
Testing random access:
<div class="code"><pre>
-# random access on non-topological level
-v.test -1 map=$MAP
-
-# random access on non-topological level with type constraint
-v.test -1 map=$MAP type=line
-
-# random access on non-topological level with layer constraint
-v.test -1 map=$MAP layer=2
-
-# random access on non-topological level with region constraint
-v.test -1r map=$MAP
-
# random access on topological level
v.test map=$MAP
More information about the grass-commit
mailing list