<div dir="ltr">Mi Markus,<div class="gmail_extra"><br></div><div class="gmail_extra">[snip]<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Essentially, all that is needed is a corresponding entry in $LOCATION_NAME/VAR:<br>
instead of<br>
DB_DRIVER: sqlite<br>
DB_DATABASE: $GISDBASE/$LOCATION_NAME/$<wbr>MAPSET/sqlite/sqlite.db<br>
<br>
try<br>
DB_DATABASE: $GISDBASE/$LOCATION_NAME/$<wbr>MAPSET/vector/$MAP/sqlite/<wbr>sqlite.db<br>
<br>
HTH,<br></blockquote><div><br></div><div>This helped a lot, thank you. Simply running:</div><div>db.connect driver=sqlite database='$GISDBASE/$LOCATION_NAME/$MAPSET/vector/$MAP/sqlite.db'<br></div><div><br></div><div>will do the job. This can be run right after mapset creation.</div><div><br></div><div>And it works nicely. It seems that most of the v.db.* commands work with vector map specific database files. The db.* commands seemed work as well, if the database path is provided at the command line.</div><div><br></div><div>I skipped the sqlite directory in the vector map path ($MAP/sqlite/<wbr>sqlite.db -> $MAP/sqlite.db), since this directory must be created when a new vector is opened, hence the vector-open-new functions must be modified to support a separate sqlite directory. With the simple solution the directory fsync() behavior of sqlite will force now all vector map specific files to be flushed to disc. This may be a performance problem.</div><div><br></div><div>This solution may be sufficient for my needs, no modification needed in the code ... except, <a href="http://v.info">v.info</a> should show the database path of a vector map if extended metadata is required.</div><div><br></div><div><br></div><div>Many thanks for your help</div><div>Best regards</div><div>Soeren</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Markus M<br>
</blockquote></div><br></div></div>