[GRASS-user] error

Hi everybody!

Some time ago I installed a new version of GRASS (GRASS 6.4.1 (2011) for Windows. And now I can’t start some modules that I created by myself. I get the following error:

Ungültiger Name der Vektorkarte <>. Darf nicht ‘.’ oder ‘NULL’ enthalten.

ERROR: Name der Ausgabe-Vektorkarte <> ist keine gültiger Kartenname.

I guess, this version of GRASS doesn’t understand the definition of temporary files (for example, $TMPVECT)

Begin of the script

#g.message “Remove temporary files”

g.remove vect=tmp_points

g.remove vect=tmp

points_txt=“C:/Work_directory/Algorithm/China/points.txt”

echo $GIS_OPT_INPUT1

echo $GIS_OPT_OUTPUT1

cats=v.db.select map=$GIS_OPT_INPUT1 columns=cat | sed "s/cat//g"

echo “cats =” $cats

echo “# Object Number DPC value” > $GIS_OPT_OUTPUT1

for i in $cats

do

echo “i =” $i

if [ $i -lt 14 ] ;

then

continue

fi

v.extract input=$GIS_OPT_INPUT1 output=$TMPVECT list=$i

v.to.points -v -i input=$TMPVECT output=$POINTS type=boundary,area dmax=5

v.out.ascii input=$POINTS output=$points_txt


I like the new GRASS version and try to adjust it to my needs.

Perhaps anybody has had to face the same problem or knows a solution?

Thanks.

Hi,

On Mon, May 2, 2011 at 3:25 PM, nsofina <nsofina@gmx.de> wrote:

Hi everybody!

Some time ago I installed a new version of GRASS (GRASS 6.4.1 (2011) for
Windows. And now I can’t start some modules that I created by myself. I get
the following error:

Ungültiger Name der Vektorkarte <>. Darf nicht '.' oder 'NULL' enthalten.
ERROR: Name der Ausgabe-Vektorkarte <> ist keine gültiger Kartenname.

[I see the grammatical error in the message which will be fixed for 6.4.2]

I guess, this version of GRASS doesn't understand the definition of
temporary files (for example, $TMPVECT)

How did you define $TMPVECT? The rules are this:
The naming convention for vector maps requires that map names start
with a character, not
a number (map name scheme: [A-Za-z][A-Za-z0-9_]*) - see also
http://grass.osgeo.org/grass64/manuals/html64_user/vectorintro.html

hope this helps,
Markus