Hi, wittich.
– firstly you should delete old categories from your segments’ lines (they relate to the initial 3 lines):
v.category in=lines_split out=lines_split_nocats opt=del
– then add new cats to segmented lines:
v.category in=lines_split_nocats out=lines_split_newcats opt=add
As a promotion: there is a small shell-script <v.to.equidist> on GRASS-Addons page that generates vector points or line segments along a given vector line(s) with the equal distances (uses v.segment) and populate tables with cats, length etc.
Date: Sun, 23 Oct 2011 10:26:06 -0700 (PDT)
From: wittich <vwittich@gmail.com>
Subject: [GRASS-user] Add DB entries to vector line (after v.split)
To: grass-user@lists.osgeo.org
Message-ID: <1319390766722-6922423.post@n2.nabble.com>
Content-Type: text/plain; charset=us-asciiHi 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: 598v.db.select split_lines
cat
1
2
3I 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.