<div dir="ltr"><div><div><div><div>Hi,<br></div><div><br></div><div>First of all, happy new year. For me the year starts with some trouble dealing with attribute tables. Below two things I can't figure out. This is all in GRASS 7.0 on Linux<br>
<br></div>(A)<br></div><div><br>I am trying to link a second table to layer two of a vector layer. For example:<br><br>v.db.addtable map=A table=A2 layer=2 columns='bio1  INTEGER,bio2  INTEGER'<br><br></div>This creates, as expected, a table with a cat column (at least, in the table attribute manager, the tables shows with a cat column with values) and two empty columns bio1 and bio2<br>
<br></div>Now I want to populate the bio1 and bio2 columns using v.what.rast:<br><br>v.what.rast map=A Layer=2 raster=bio_1@climate column=bio1<br>v.what.rast map=A Layer=2 raster=bio_2@climate column=bio2<br><br></div><div>
I am getting the following error message:<br><br>Reading features from vector map...<br> 100%<br>WARNING: 316 points without category were skipped<br>Update vector attributes...<br>WARNING: No record for category 0 in table <A2><br>
 100%<br>v.what.rast complete. 0 records updated.<br><br></div><div>But the table A2, linked to layer 2, does have category values. Or do I misunderstand how this works?<br><br></div><div>(B) <br></div><div><br></div><div>
I wanted to drop the layer from a vector map.  In the Table Attribute manager, you can remove a layer without dropping (deleting) the table (the default). But how do I do this on the command line? Using the d.db.droptable removes the layer by dropping the table (or it removes the layer and drops the table, not sure what happens internally).<br>
</div><div><br></div><div>Cheers,<br><br></div><div>Paulo<br></div></div>