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

Richard Greenwood richard.greenwood at gmail.com
Sat Feb 24 05:39:38 PST 2007


On 2/24/07, Mahtab Alam <cadxing at gmail.com> wrote:
> 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

I was never able to get ogr2ogr to create a new table on windows,
however it can create a new table on OS X and Linux, and it can load
data into an existing table on windows. Try creating the target table
first, maybe with shp2psql, then use ogr2ogr to load the MapInfo data.

Rich


-- 
Richard Greenwood
richard.greenwood at gmail.com
www.greenwoodmap.com



More information about the postgis-users mailing list