[GRASS-user] Add DB entries to vector line (after v.split)

Hi there,

I try to find a way to give every line segment in my vector file a db entry.
I've create 3 lines and split them into 50m segments. Now I want to do
several calculations with it. Therefore I need for each segment a row in the
db.

*How can I create a entry for each segment?*

v.info split_lines
Number of lines: 598

v.db.select split_lines
cat
1
2
3

I would appreciate if someone can explain me what I do wrong, I tried
already everything I could found without success (eg. v.dissolve,
v.category, v.centroids, and others)

regards Valentin

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Add-DB-entries-to-vector-line-after-v-split-tp6922423p6922423.html
Sent from the Grass - Users mailing list archive at Nabble.com.

Okay I found a solution, but its no very elegant. I exported the vector into
a shape and imported it then again:

v.out.ogr -ce input=split_lines type=line dsn=./split_lines.shp
format=ESRI_Shapefile
v.in.ogr -o dsn=./split_lines.shp out=split_lines1

But there should be another way...

Thx

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Add-DB-entries-to-vector-line-after-v-split-tp6922423p6922499.html
Sent from the Grass - Users mailing list archive at Nabble.com.