[GRASS-user] I can´t import postgis layer using v.in.ogr in WinGRASS

Hi,
I´m a Linux/Windows user. Using GRASS in my Ubuntu, i can import postgis layers by v.in.ogr with facility. But, in my job, the OS used is Windows and i use WinGRASS.
I just installed PostgreSQL/Postgis to manage my data.
I transfered the db administration to pg:

db.connect driver=pg database=“host=localhost, dbname=gis”
db.login driver=pg database=gis user=postgres pass=*****

until that, all ok…but when:

v.in.ogr dsn=“PG:host=localhost dbname=gis user=postgres” layer=Municipios output=Municipios

i recieve the following message:

ERROR: Unable to open data source <"PG:host=localhost dbname=gis user=postgres…

I searched in all documents and sites and i didn’t find any answer.

I need help.

Thanks!

Thybério Luna Freire - Brazil

Hi Thyberio,

until that, all ok…but when:
>v.in.ogr dsn=“PG:host=localhost dbname=gis user=postgres” layer=Municipios output=Municipios
i recieve the following message:
ERROR: Unable to open data source <"PG:host=localhost dbname=gis user=postgres…

Try:
v.in.ogr dsn=PG:____dbname=gis host=localhost user=postgres password=******** output=Municipios

Note there is no “” . If it does not work please paste the full error report.
Make sure that pg server is running.

Pablo.


Fale com seus amigos do Messenger direto da Caixa de Entrada do Hotmail. Clique aqui