[GRASS5] GRASS5.7: trouble converting shapefile to postgis with v.convert

Moritz Lennert mlennert at club.worldonline.be
Thu Dec 4 13:17:55 EST 2003


Hello,

I have a shapefile registered in GRASS5.7:

*******
GRASS 5.7.-cvs:~ > g.list vect
----------------------------------------------
vector files available in mapset mlennert:
communes.shp

----------------------------------------------
************

I can display and query this file without any problems.

It is connected to a dbf file:

*************
GRASS 5.7.-cvs:~ > v.db.connect -p communes.shp
Vector map <communes.shp> is connected by:
field <1> table <communes> in database </home/mlennert/SHAPEFILES/>
through driver <shp> with key <shp_fid>
**************

Following the tutorial, I tried to store this map in PostGIS format:

*************
GRASS 5.7.-cvs:~ > v.database driver=pg database="dbname=digit_belgium"
GRASS 5.7.-cvs:~ > v.convert input=communes.shp output=communes
*************

but I got the error message: "ERROR: Input vector was not found."

What am I doing wrong ?

Moritz




More information about the grass-dev mailing list