<div dir="ltr">Hi,<div><br></div><div>I am slightly confused about creating new layers for vector maps and adding a category value.</div><div>I want to add a layer and subsequently I want to use v.what.rast to query a raster map and update</div><div>that layer. Hence, I need categories in the new layer. However, it seems that adding a new table and connect it to a specific layer (v.db.addtable) does not create/update the category column (in GRASS 71, trunk):</div><div><br></div><div>Here an example for the NC-dataset:</div><div><br></div><div><div>v.db.addtable map=firestations@PERMANENT layer=2                                </div><div>DB settings already defined, nothing to do</div><div>Reading features...</div><div>Updating database...</div><div>0 categories read from vector map (layer 2)</div><div>0 records updated/inserted (layer 2)</div><div><br></div><div><br></div><div>And when I try to manually update the category I am also not successful:</div><div>v.to.db map=firestations@PERMANENT layer=2 option=cat columns=cat               </div><div>Reading features...</div><div>Updating database...</div><div>0 categories read from vector map (layer 2)</div><div>0 records updated/inserted (layer 2)</div></div><div><br></div><div>Maybe I just got something wrong?</div><div><br></div><div><br></div><div>The map "firestations@PERMANENT" has categories (stored in layer 1)</div><div><div>v.category input=firestations@PERMANENT option=report                           </div><div>Layer/table: 1/firestations</div><div>type       count        min        max</div><div>point         71          1         71</div><div>line           0          0          0</div><div>boundary       0          0          0</div><div>centroid       0          0          0</div><div>area           0          0          0</div><div>face           0          0          0</div><div>kernel         0          0          0</div><div>all           71          1         71</div><div>v.category complete. 0 features modified.</div></div><div><br></div><div><br></div><div><br></div><div>Any suggestions?</div><div><br></div><div><br></div><div>best,</div><div>Johannes</div><div><br></div></div>