[GRASSLIST:5574] help with setting vector category ID

Brent Wood b.wood at niwa.co.nz
Sun Feb 16 20:04:45 EST 2003


I have an ascii list of XYZ points (lat/long/depth). I have imported
them into a sites map, then converted to a vector.

I'm able to get the category description set to the depth (z) value, but
most of the GRASS vector commands only use the category ID.


The following exerpt from v.report shows the vector data structure.
+--------------------------------------------------------------------------+
|                         VECTOR MAP CATEGORY REPORT                       |
|LOCATION: nz                                      Mon Feb 17 13:53:41 2003|
|--------------------------------------------------------------------------|
|          north: 48:23:24S    east: 179:36W                               |
| WINDOW   south: 51:42:36S    west: 176:54E                               |
|          res:     0:00:36    res:  0:00:36                               |
|--------------------------------------------------------------------------|
|MAP:     antipodes2 in PERMANENT                                          |
|--------------------------------------------------------------------------|
|                         Category Information                             |
|    #|description                                                    count|
|--------------------------------------------------------------------------|
|    0|no data. . . . . . . . . . . . . . . . . . . . . . . . . . .  |  600|
|    1|-757.000000000000000 . . . . . . . . . . . . . . . . . . . .  |    1|
|    2|-760.000000000000000 . . . . . . . . . . . . . . . . . . . . .|    1|
|    3|-752.000000000000000 . . . . . . . . . . . . . . . . . . . . .|    1|
|    4|-708.000000000000000 . . . . . . . . . . . . . . . . . . . . .|    1|
...



Can anyone tell me how to get the # field, which I assume is the category
ID, set to the Z value for vector queries/coloring etc?


Thanks


Brent Wood




More information about the grass-user mailing list