[GRASS-user] Re: export point + attribute from vector contour
Massimo Di Stefano
massimodisasha at yahoo.it
Sat Feb 24 06:03:20 EST 2007
Il giorno 24/feb/07, alle ore 05:14, grassuser-request at grass.itc.it
ha scritto:
> Ciao,
>
> ho una questione da risolvere, vi spiego:
...
...
excuseme, my distraction !
i sent this message in english ... to grass-italia mail-list
and in italian to this list :-( ....
i'm working on a method to export an ascii-text file from a vector
poliline.
ascii-text file like :
Est Nord Attribute
..
..
i'm tring ... :
i transformed
my vector file
from line to point,
this is a generic d.what.vect on it :
East: 2524748.55219
North: 4509851.42641
Map: out
Mapset: cdl2
Point
Layer: 1
Category: 657
driver: dbf
database: /Users/epifanio/Documents/grassdata/salerno/cdl2/dbf/
table: out_1
key column: cat
cat : 657
FID_ :
Entity : Polyline
Handle : 2960B
Layer : 05.01-Curva dir.
Color : 4
Linetype : Continuous
Elevation : 725
Thickness : 0
Text :
Layer: 2
Category: 6415
driver: dbf
database: /Users/epifanio/Documents/grassdata/salerno/cdl2/dbf/
table: out_2
key column: cat
cat : 6415
lcat : 657
along : 3967.424662
i exported it
using v.out.ascii :
2524464.205 4510655.961 1
2524459.58400078 4510657.39162497 1
2524455.06343952 4510658.51987919 1
2524454.4559001 4510662.2213528 1
...
....
2523636.36678512 4510609.62505364 2
2523638.93617648 4510613.75929112 2
2523641.48038258 4510617.90730795 2
...
...
2523873.9152734 4508436.72185049 913
2523878.84059243 4508437.33824915 913
2523883.80484724 4508437.20891746 913
2523888.71571044 4508436.45537197 913
2523893.59133563 4508435.47244594 913
2523898.546 4508435.162 913
it is in the form :
Est Nord Cat
...
how can i add the attribute "elevation"
for each point ?
i've tried using :
v.to.db -p map=nome_vettore type=line layer=1 qlayer=1 option=query
column=elevation qcolumn=elevation > text.file
cat|query
1| 680
2| 600
3| 640
4| 550
....
....
909| 535
910| 530
911| 540
912| 545
913| 535
in this file i've the Elevation value for each "Cat"
how can i add this value to each file ?
i'm tring without success using awk-sed-gawk...
have you any idea about ?
Thanks!
Masimo
More information about the grass-user
mailing list