[GRASS-user] Import postgis vector form schema

matteo poletti pollo1_91 at yahoo.it
Thu Feb 9 05:43:28 EST 2012


> If you are trying to import from PostgreSQL, dsn shouldn't be './', or ?

In the manual page http://grass.fbk.eu/gdp/html_grass64/v.in.ogr.html, section "Support of database schema", there is an example in which is used <./>.
Are there other ways?
Thanks!

Matteo



________________________________
 Da: Moritz Lennert <mlennert at club.worldonline.be>
A: matteo poletti <pollo1_91 at yahoo.it> 
Cc: GRASS list <grass-user at lists.osgeo.org> 
Inviato: Giovedì 9 Febbraio 2012 11:13
Oggetto: Re: [GRASS-user] Import postgis vector form schema
 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20120209/4565be67/attachment.html


More information about the grass-user mailing list