[GRASS-user] Adding a point vector

Markus Metz markus.metz.giswork at googlemail.com
Sat Sep 24 12:02:05 EDT 2011


On Sat, Sep 24, 2011 at 5:46 PM, Kurt Springs <ferret_bard at mac.com> wrote:
> I couldn't get the attribute manager working.  I tried an old favorite v.in.db.  I exported the wedge_tomb table, added what I needed.  Now I'm trying to import it.  This is what's happening
>
> GRASS 6.4.1 (Mega_Ireland):~ > v.in.db --overwrite table=wedge_tomb driver=sqlite database=/Users/kurtsprings/Document/wedge.db x=nat_grid_e y=nat_grid_n key=cat output=wedge_tomb
> WARNING: Vector map <wedge_tomb> already exists and will be overwritten
> DBMI-SQLite driver error:
> Unable to open database: unable to open database file
>
> WARNING: Unable to open database </Users/kurtsprings/Document/wedge.db> by
>         driver <sqlite>
> ERROR: Unable to open database <$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite.db>
>       by driver <sqlite>
>
> I had been able to do this a year ago, but I can't find my notes on this.  Any ideas as to what I'm doing wrong?

This can be a sqlite problem. Recent sqlite refuses to open a database
file if any other file in the same directory is kept open by any other
application. This is a new feature of new versions of sqlite (not
GRASS), I remember that this was not an issue about a year ago. You
could check if you have any other application running that has opened
some files there, e.g. QGIS. Just a guess.

Markus M

> On Sep 24, 2011, at 10:27 AM, Martin Landa wrote:
>
>> Hi,
>>
>> 2011/9/24 Hamish <hamish_b at yahoo.com>:
>>>> A cruder way might be to make a new 1-point vector map and
>>>> then overlay it.
>>>
>>> nothing crude about that method, if anything I'd call it a little
>>> less direct, but safer. shrug, v.in.ascii + v.patch added to the
>>
>> why safer?
>>
>> Anyway using this method you are producing extra vector map used only
>> for patching.
>>
>> Martin
>>
>> --
>> Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>


More information about the grass-user mailing list