Before running v.to.rast, the user should therefore ensure that the current geographic region is correctly set and that the region resolution is at the desired level.
Either the column parameter or the value parameter must be specified. The use option may be specified alone when using the dir option.
use options are:
The column parameter uses an existing column from the vector map database table as the category value in the output raster map. Existing table columns can be shown by using db.describe.
An empty raster map layer will be created if the vector map layer has not been assigned category/attribute labels (e.g., through use of v.category option=add).
Otherwise:
Flow directions are given in degrees counterclockwise from east.
Raster category labels are supported for all of use= except use=z.
The -d flag applies only to lines, the default is only those on the render path (thin line).
db.describe -c table=vect_map ncols:3 Column 1: CAT Column 2: SPEED Column 3: WIDTH
v.to.rast input=vect_map output=raster_map attribute_column=SPEED
v.to.rast input=streams output=streamsdir use=dir
v.to.rast input=fields output=myfields use=attr attribute_column=cat label_column=label r.category myfields
g.copy vector=schools_wake,myschools_wake # set computation region for raster binning g.region vector=myschools_wake res=5000 -p -a # add new column for counting v.db.addcolumn myschools_wake column="value integer" v.db.update myschools_wake column=value value=1 # verify attributes v.db.select myschools_wake column=cat,value v.out.ascii input=myschools_wake output=- column=value # export and import on the fly, use 4th column (value) as input v.out.ascii input=myschools_wake output=- column=value | r.in.xyz input=- \ z=4 output=schools_wake_aggreg method=sum d.mon wx0 d.rast schools_wake_aggreg d.vect schools_wake d.grid 5000
Last changed: $Date$