[GRASSLIST:8073] Re: v.out.ogr to PostgreSQL

orkun temiz at deprem.gov.tr
Fri Aug 26 04:56:46 EDT 2005


Stephan Holl wrote:

>Hello orkun, 
>
>On Thu, 25 Aug 2005 15:56:34 +0300 orkun <temiz at deprem.gov.tr> wrote:
>
>  
>
>>hello
>>
>>when I try to use /*v.out.ogr as:*//* */
>>v.out.ogr input=jeo6 type=area dsn="PG:host=localhost dbname=bzk 
>>user=orkun" olayer=sil format=PostgreSQL
>>
>>it gives:
>>Error: value <PostgreSQL> out of range for parameter <format>
>>       Legal range:
>>ESRI_Shapefile,TIGER,S57,MapInfo_File,DGN,Memory,CSV,GML
>>    
>>
>
>It says that your OGR-Version is lacking Postgresl-Support.
>So you should recompile gdal/ogr with postgresql-support.
>or, if you are on debian
>
>apt-get install gdal-bin libgdal1 python-gdal
>
>Best
>	Stephan
>
>  
>
thank you

I recompiled both grass61 and gdal.

Now v.out.ogr gives new error.

after entering db.connect driver=pg database=bzk,

v.out.ogr input=jeo6 type=area dsn="PG:host=localhost dbname=bzk 
user=orkun" olayer=sil7 format=PostgreSQL
ERROR 1: AddGeometryColumn failed for layer sil7, layer creation has failed.
ERROR: Cannot create layer

( is "user=orkun" wrong ?)

what might possible problems be ?

regards






______________________________________
XamimeLT - installed on mailserver for domain @deprem.gov.tr
Queries to: postmaster at deprem.gov.tr
______________________________________
The views and opinions expressed in this e-mail message are the sender's own
and do not necessarily represent the views and the opinions of Earthquake Research Dept.
of General Directorate of Disaster Affairs.

Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C.
B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir.




More information about the grass-user mailing list