[GRASS-user] error in d.vect command in grass6.3.cvs??

The syntax of the d.vect command has changed slightly between version

6.2.1 and the latest 6.3.cvs versions (as of january 30 and later). In

6.3.cvs, I cannot execute succesfully a vector file display, nor from

the gis.m shell nor from the command line, whereas from 6.2.1 (and

former 6.3.cvs versions), the vector files display well.

The d.vect command of both versions and an example of error messages is

given here:

version 6.2.1

d.vect [-vacix] map=name [type=string[,string,...]]

[display=string[,string,...]] [attrcol=string] [icon=string]

[size=integer] [layer=integer] [cats=range] [where=sql_query]

[width=integer] [wcolumn=string] [wscale=float] [color=string]

[fcolor=string] [rgb_column=string] [llayer=integer] [lcolor=string]

[bgcolor=string] [bcolor=string] [lsize=integer] [font=string]

[xref=string] [yref=string] [minreg=float] [maxreg=float]

version 6.3.1

d.vect [-vacix] output=name map=name [display=string[,string,...]]

[attrcol=string] [icon=string] [size=integer] [type=string[,string,...]]

[cat=integer] [where=sql_query] [width=integer] [wcolumn=string]

[wscale=float] [color=string] [fcolor=string] [rgb_column=string]

[llayer=string[,string,...]] [lcolor=string] [bgcolor=string]

[bcolor=string] [lsize=integer] [font=string] [xref=string]

[yref=string] [minreg=float] [maxreg=float] [--overwrite] [--verbose]

[--quiet]

example:

d.vect map=paguirre2006base6 color=0:0:0 lcolor=0:0:0 fcolor=170:170:170

display=shape type=point,line,boundary,centroid,area icon=basic/circle

size=5 layer=1 lsize=8 xref=left yref=center llayer=1

Sorry, <layer> is not a valid parameter

Error: value <paguirre2006base6> out of range for parameter <map>

       Legal range: point,line,boundary,centroid,area,face

Error: value <1> out of range for parameter <llayer>

       Legal range: point,line,boundary,centroid,area

ERROR: Required parameter <output> not set:

    (Name for output vector map).

Description:

Displays GRASS vector data in the active frame on the graphics monitor.

Keywords:

display

Any clue or fix out there?

Guido Lorenz

____________________________________________________________________________________
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives.
http://tools.search.yahoo.com/toolbar/features/mail/

Guido Lorenz wrote:

The syntax of the d.vect command has changed slightly between version
6.2.1 and the latest 6.3.cvs versions (as of january 30 and later). In
6.3.cvs, I cannot execute succesfully a vector file display, nor from
the gis.m shell nor from the command line, whereas from 6.2.1 (and
former 6.3.cvs versions), the vector files display well.

The d.vect command of both versions and an example of error messages is
given here:

example:
d.vect map=paguirre2006base6 color=0:0:0 lcolor=0:0:0 fcolor=170:170:170
display=shape type=point,line,boundary,centroid,area icon=basic/circle
size=5 layer=1 lsize=8 xref=left yref=center llayer=1

Sorry, <layer> is not a valid parameter

Error: value <paguirre2006base6> out of range for parameter <map>
       Legal range: point,line,boundary,centroid,area,face

Error: value <1> out of range for parameter <llayer>
       Legal range: point,line,boundary,centroid,area

ERROR: Required parameter <output> not set:
    (Name for output vector map).

Any clue or fix out there?

Based upon the above errors, I strongly suspect that that d.vect and
libgis' parser are using different values for the G_OPT_ constants.

The most likely reasons are:

1. You have performed an incremental build following a "cvs update".
That won't work; you need to run "make clean" (preferably "make
distclean") after updating from CVS.

2. You have (parts of) multiple versions installed on your system, and
the d.vect executable from one version is using libgis from the other
version. This could be caused by installing an incomplete build of one
version into a directory containing an older version, or by having
$LD_LIBRARY_PATH point to the wrong version.

--
Glynn Clements <glynn@gclements.plus.com>