[GRASS-user] v.to.db output (GRASS for Windows 7.0.3RC2)

Moritz Lennert mlennert at club.worldonline.be
Wed Jan 20 23:51:44 PST 2016


On 20/01/16 18:09, Aldo CLERICI wrote:
> Dear GRASS users,
>
> By (Spearfish Location):
>
> v.to.db –p roads option=length
>
> I have this result:
>
> cat|length
>
> 5|136313.999118462
>
> 4|151211.909391895
>
> 3|29073.0640515405
>
> 1|47106.9051508698
>
> 2|28460.9513530158
>
> I’m not able to realize the sorting criteria.  Any hint?

v.db.select roads
cat|label
0|no data
1|interstate
2|primary highway, hard surface
3|secondary highway, hard surface
4|light-duty road, improved surface
5|unimproved road

The spearfish dataset dates from pre-grass6 times when vectors did not 
have attribute tables, but only a category value with relevant labels. 
So all roads of a certain type had the same cat value which had a 
thematic meaning.

Your result thus gives you the total length of road per category.

Moritz


More information about the grass-user mailing list