[GRASS-user] An error in GRASS-7 manual

Hi!

There is a small error in the GRASS-7 HTML-manual v.what.rast, http://grass.fbk.eu/grass70/manuals/html70_user/v.what.rast.html

The required parameter is vector=name,

ERROR: Sorry, <map> is not a valid parameter
ERROR: Required parameter <vector> not set

Thanks to developers for the great tool!

Andres Kuusk
Tartu Observatory, Estonia

On Thu, Jan 19, 2012 at 9:55 AM, Andres Kuusk <andres@aai.ee> wrote:

There is a small error in the GRASS-7 HTML-manual v.what.rast,
http://grass.fbk.eu/grass70/manuals/html70_user/v.what.rast.html

The required parameter is vector=name,

ERROR: Sorry, <map> is not a valid parameter
ERROR: Required parameter <vector> not set

I suppose that you refer to the examples?
I have fixed them, will be online on Saturday (when the
manual is rebuilt).

Thanks to developers for the great tool!

Thanks for catching this.

Markus

--
http://gis.cri.fmach.it/neteler/

On Wed, Feb 8, 2012 at 7:51 AM, Andres Kuusk <andres@aai.ee> wrote:

On Thu, Jan 19, 2012 at 9:55 AM, Andres Kuusk <andres@aai.ee> wrote:

There is a small error in the GRASS-7 HTML-manual v.what.rast,
http://grass.fbk.eu/grass70/manuals/html70_user/v.what.rast.html

The required parameter is vector=name,

ERROR: Sorry, <map> is not a valid parameter
ERROR: Required parameter <vector> not set

Perhaps you need to recompile the code if you did it yourself (clean with
"make distclean" first)...
I recompiled GRASS 7 from scratch, it works as stated in the manual:

GRASS 7.0.svn (nc_spm_08):~/grass70/lib/gis > v.random pnts n=100
Generating points...
100%
Building topology for vector map <pnts@neteler>...
Registering primitives...
100 primitives registered
...
Number of points: 100
...

GRASS 7.0.svn (nc_spm_08):~/grass70/lib/gis > v.db.addtable pnts
column="heights double precision"
Reading features...
100%
...

GRASS 7.0.svn (nc_spm_08):~/grass70/lib/gis > v.what.rast map=pnts
raster=elevation column=heights
Reading features from vector map...
100%
Update vector attributes...
100%
v.what.rast complete. 100 records updated.

GRASS 7.0.svn (nc_spm_08):~/grass70/lib/gis > v.db.select pnts
cat|heights
1|130.2686462402
2|124.2121124268
3|105.6689529419
4|120.3233795166
...

AH, I got it: you are using GRASS 6 while reading the GRASS 7 manual..
the parameter name
changed! So please read here instead for GRASS 6:

http://grass.osgeo.org/grass64/manuals/html64_user/v.what.rast.html

Hope this helps,
Markus

Hi!

ERROR: Sorry, <map> is not a valid parameter
ERROR: Required parameter <vector> not set

Perhaps you need to recompile the code if you did it yourself

I see!
I am still using GRASS-7 r48844 and everything works fine.

This minor discrepancy between the code and manual is not a problem.

Thanks for your advice!

Andres

----

...

AH, I got it: you are using GRASS 6 while reading the GRASS 7 manual..
the parameter name
changed! So please read here instead for GRASS 6:

http://grass.osgeo.org/grass64/manuals/html64_user/v.what.rast.html

Hope this helps,
Markus