[postgis-users] Problem in Conversion from MapInfo to PostGIS usingogr2ogr

Obe, Regina robe.dnd at cityofboston.gov
Mon Feb 26 03:55:17 PST 2007


Did you verify that you do have a database called gisdb in your
PostGreSQL server and that your login account has rights to create
tables.  The way you are specifying it, it is going to try your local
postgres server with no password and use the account with same name as
what you are logged in as.
 
Also you aren't running the latest FWTools.  Might be worthwile to
upgrade.
 
FWIW I haven't had problems loading tab files into postgres from windows
using OGR2OGR and my command usually looks something like this.
 
ogr2ogr -f "PostgreSQL" PG:"host=myhost user=myloginname dbname=mydbname
password=mypassword" mytabfile.tab
 
 

________________________________

From: postgis-users-bounces at postgis.refractions.net
[mailto:postgis-users-bounces at postgis.refractions.net] On Behalf Of
Mahtab Alam
Sent: Saturday, February 24, 2007 6:12 AM
To: postgis-users at postgis.refractions.net
Subject: [postgis-users] Problem in Conversion from MapInfo to PostGIS
usingogr2ogr


Hi, 
I am having problem loading Mapinfo Tab to PostGIS using ogr2ogr.

C:\Program Files\FWTools1.1.3>ogr2ogr -f postgresql PG:dbname=gisdb
D:\Temp\test.tab
ERROR 1: PQconnectdb failed.
could not create socket: Address family not supported (0x0000273F/10047)


ERROR 1: PostgreSQL driver doesn't currently support database creation.
Please create database with the `createdb' command.
postgresql driver failed to create PG:dbname=gisdb

Regards

Mahtab 





-----------------------------------------
The substance of this message, including any attachments, may be
confidential, legally privileged and/or exempt from disclosure
pursuant to Massachusetts law. It is intended
solely for the addressee. If you received this in error, please
contact the sender and delete the material from any computer.




More information about the postgis-users mailing list