[GRASS-user] Import postgis vector form schema
Moritz Lennert
mlennert at club.worldonline.be
Thu Feb 9 05:13:06 EST 2012
On 09/02/12 00:59, matteo poletti wrote:
> Hi,
> I tried to import a postgis layer from a non public schema.
>
> I used this commands according to the documentation
> (http://grass.fbk.eu/gdp/html_grass64/v.in.ogr.html):
> > db.connect driver=pg database="host=aaa,dbname=bbb"
> schema=administrative
> > db.login user=_____ 'password=******'
> > db.connect -p
> driver:pg
> database:host=aaa,dbname=bbb
> schema:administrative
> group:
> > db.tables -p
> ...
> administrative.test
> ...
> > v.in.ogr dsn=./ layer=test output=prova1
> ERROR: Unable to open data source <./>
If you are trying to import from PostgreSQL, dsn shouldn't be './', or ?
Moritz
>
> I'm using GRASS 6.4.0. Command such
> v.in.ogr dsn='PG:host=aaa dbname=bbb user=____ password=*****'
> output=prova layer=prova
> worked since prova is in the public schema.
>
> Many thanks!
> Matteo
>
>
>
> _______________________________________________
> 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