<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>> If you are trying to import from PostgreSQL, dsn shouldn't be './', or ?</div><div><span><br></span></div><div><span>In the manual page </span><a href="http://grass.fbk.eu/gdp/html_grass64/v.in.ogr.html" target="_blank">http://grass.fbk.eu/gdp/html_grass64/v.in.ogr.html</a>, section "Support of database schema", there is an example in which is used <./>.</div><div>Are there other ways?</div><div>Thanks!<br></div><div>Matteo<br></div><div><br></div> <div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"> <div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1"> <b><span style="font-weight: bold;">Da:</span></b> Moritz Lennert <mlennert@club.worldonline.be><br> <b><span style="font-weight:
bold;">A:</span></b> matteo poletti <pollo1_91@yahoo.it> <br><b><span style="font-weight: bold;">Cc:</span></b> GRASS list <grass-user@lists.osgeo.org> <br> <b><span style="font-weight: bold;">Inviato:</span></b> Giovedì 9 Febbraio 2012 11:13<br> <b><span style="font-weight: bold;">Oggetto:</span></b> Re: [GRASS-user] Import postgis vector form schema<br> </font> </div> <br>On 09/02/12 00:59, matteo poletti wrote:<br>> Hi,<br>> I tried to import a postgis layer from a non public schema.<br>><br>> I used this commands according to the documentation<br>> (<a href="http://grass.fbk.eu/gdp/html_grass64/v.in.ogr.html" target="_blank">http://grass.fbk.eu/gdp/html_grass64/v.in.ogr.html</a>):<br>> > db.connect driver=pg database="host=aaa,dbname=bbb"<br>> schema=administrative<br>> > db.login user=_____ 'password=******'<br>> > db.connect -p<br>> driver:pg<br>>
database:host=aaa,dbname=bbb<br>> schema:administrative<br>> group:<br>> > db.tables -p<br>> ...<br>> administrative.test<br>> ...<br>> > v.in.ogr dsn=./ layer=test output=prova1<br>> ERROR: Unable to open data source <./><br><br>If you are trying to import from PostgreSQL, dsn shouldn't be './', or ?<br><br><br>Moritz<br><br>><br>> I'm using GRASS 6.4.0. Command such<br>> v.in.ogr dsn='PG:host=aaa dbname=bbb user=____ password=*****'<br>> output=prova layer=prova<br>> worked since prova is in the public schema.<br>><br>> Many thanks!<br>> Matteo<br>><br>><br>><br>> _______________________________________________<br>> grass-user mailing list<br>> <a ymailto="mailto:grass-user@lists.osgeo.org" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>> <a href="http://lists.osgeo.org/mailman/listinfo/grass-user"
target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br><br><br><br><br> </div> </div> </div></body></html>