[Qgis-user] How to create easily and fast an empty vector-layer to use it in Quantum GIS?

Philipp Steigenberger userlist at online.de
Tue Feb 26 07:56:59 PST 2008


Hi there,
I posted this on the grassuser-list before, but couldnt get support...


I recovered QGIS as an alternative offer to the v.digit (GRASS) tool and 
played  a little with it last week. While I can create a new vector map 
using the -n flag in v.digit and creating a new table in the 
settings-window, I couldn't find a similar option in QGIS.
Is there any?
-> How to create a new GRASS-Vectorlayer within QGIS and link it to a 
database (dbf) table.




Therefore I tried to create an empty vectormap in GRASS using

 >v.edit tmp  tool=create
 >v.db.addtable tmp
 >v.db.addcol tmp col="number DOUBLE"


After that I started QGIS and tried to open the map but I got the message:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 >>THE LAYER IS NOT A VALID LAYER AND CANNOT BE ADDED TO THE MAP
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

same when I use

 >v.edit tmp  tool=create
Yv.db.addtable tmp

or just

 >v.edit tmp  tool=create

Whats wrong?
How to create an empty vektorlayer in GRASS whitch is usable in QGIS?




Sometimes when I try to open other maps QGIS exits and I get the messeage:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 >>error_routine (fatal = 1): Unable to open vector map <p_mund at 2> on 
topology level 2
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


thanks for helping
cheers
Philipp


QGIS 0.7.4
GRASS 6,3 svn
debian etch



More information about the Qgis-user mailing list