DESCRIPTION
v.to.db load values from vector to database.
NOTES
The units 'miles', 'feet', 'meters' and 'kilometers' are square
for option=area.
EXAMPLES
Updating attribute tables
Note: Uploading of the attributes of a vector map to the DBMS has to be done
column-wise. The column must be present in the table
(use db.execute to add a new column if needed).
Upload category numbers to attribute table (used for new map):
v.to.db map=soils type=area option=cat
Upload area sizes of each polygon to attribute table:
v.to.db map=soils type=area option=area col1=area_size unit=h
Upload x and y coordinates from vector geometry to attribute table:
v.to.db map=pointsmap option=coor col1=x col2=y
Printing reports
Report all area sizes of a map:
v.to.db -p soils option=area type=boundary units=h
Report all area sizes of a map, sorted by category number:
v.to.db -p soils option=area type=boundary units=h | sort -n
Report all area sizes of a map:
v.to.db -p roads option=length type=line units=k
Report number of featurs for each category in map:
v.to.db -p roads option=count type=line
AUTHOR
Radim Blazek
Last changed: $Date: 2004/05/26 11:38:17 $