[GRASS-user] Import sqlite table using db.in.ogr

Johannes Radinger johannesradinger at gmail.com
Wed Aug 3 14:04:04 PDT 2016

Hi all,

the database is the original sqlite database the ships with the the NC
grass7 location (nc_spm_08_grass7). I want to import a single table (e.g
'streams') from that NC grass7 database (source, sqlite) into my new
location (target) using db.in.ogr. As far as I understand, for the module
db.in.ogr the database scheme of the target location should not be of
relevance?! Interestingly, the database scheme (either sqlite, dbf etc) of
the source db/table is not explicitly specified in db.in.ogr?!

Have you tried to import e.g. the 'streams' table of the PERMANENT mapset
of any NC grass7 sample location from within any other location?

Here the example from the manual:

db.in.ogr input=/path/to/sqlite.db db_table=census_raleigh output=census_raleigh


On Wed, Aug 3, 2016 at 5:51 PM, Markus Neteler <neteler at osgeo.org> wrote:

> On Wed, Aug 3, 2016 at 5:42 PM, Moritz Lennert
> <mlennert at club.worldonline.be> wrote:
> ...
> > Well, it's my set for GRASS7, but I guess somewhen way back in time I
> must
> > have taken the GRASS6 version and run v.build.all in it to use it in
> > GRASS7... ;-)
> (Yeah, but you also need to run
> db.connect -d
>  and
> v.db.reconnect.all -cd
> see
> https://grasswiki.osgeo.org/wiki/Convert_all_GRASS_6_vector_maps_to_GRASS_7
> )
> Anyway, let's wait for Johannes' answer.
> Markus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20160803/10fb000e/attachment.html>

More information about the grass-user mailing list