Hi all, I am having trouble getting v.in.sites working. I have a 3d sites file from GRASS 5.3 that has seven different floating point attributes. When I use v.in.sites, I get the following error:
v.in.sites input=pinatubo output=test
GRASS_INFO_ERROR(661,1): Default database is not set
Input format: dimension: 3 strings: 0 FP:7
I just want to use the normal dbf that grass uses. Do I need to set up the database table before importing the old format? Shouldn't that be done automatically for me? When I run v.info on the new file I get:
v.info test
ERROR: Cannot open old vector test@ianmacmillan on level 2
After running v.build, I get:
v.build test
WARNING: coor files of vector 'test@ianmacmillan' is larger than it should
be (14 bytes excess).
Building topology ...
0 primitives registered
0 areas built
0 isles built
Attaching islands:
Attaching centroids: Topology was built.
Number of nodes : 0
Number of primitives: 0
Number of points : 0
Number of lines : 0
Number of boundaries: 0
Number of centroids : 0
Number of areas : 0
Number of isles : 0
I must be doing something stupid here. Any ideas?
Thanks,
Ian
Using 6.1cvs (6-25-2005) on OSX 0.3
On Thu, Jun 30, 2005 at 10:47:41AM -0700, Ian MacMillan wrote:
Hi all, I am having trouble getting v.in.sites working. I have a 3d
sites file from GRASS 5.3 that has seven different floating point
attributes. When I use v.in.sites, I get the following error:
v.in.sites input=pinatubo output=test
GRASS_INFO_ERROR(661,1): Default database is not set
Input format: dimension: 3 strings: 0 FP:7
I just want to use the normal dbf that grass uses. Do I need to set up
the database table before importing the old format? Shouldn't that be
done automatically for me? When I run v.info on the new file I get:
v.info test
ERROR: Cannot open old vector test@ianmacmillan on level 2
After running v.build, I get:
v.build test
WARNING: coor files of vector 'test@ianmacmillan' is larger than it
should
be (14 bytes excess).
Building topology ...
0 primitives registered
0 areas built
0 isles built
Attaching islands:
Attaching centroids: Topology was built.
Number of nodes : 0
Number of primitives: 0
Number of points : 0
Number of lines : 0
Number of boundaries: 0
Number of centroids : 0
Number of areas : 0
Number of isles : 0
I must be doing something stupid here. Any ideas?
Probably GRASS is stupid 
The message
GRASS_INFO_ERROR(661,1): Default database is not set
suggests that db.connect must be run first. See its
manual page for a copy-paste solution for DBF:
db.connect driver=dbf database='$GISDBASE/$LOCATION_NAME/$MAPSET/dbf/'
Then v.in.sites should work.
Markus
Thanks,
Ian
Using 6.1cvs (6-25-2005) on OSX 0.3
--
Markus Neteler <neteler itc it> http://mpa.itc.it
ITC-irst - Centro per la Ricerca Scientifica e Tecnologica
MPBA - Predictive Models for Biol. & Environ. Data Analysis
Via Sommarive, 18 - 38050 Povo (Trento), Italy