[Gdal-dev] problem with ogr2ogr -f PostgreSQL...

Ethan Alpert ealpert at digitalglobe.com
Wed Mar 8 12:17:47 EST 2006



I'm running CVS from March 1 and OGR does not have any option to set
SRID but it does manage to create a constraint that the SRID should be
-1.

-e

-----Original Message-----
From: Chapman, Martin [mailto:MChapman at sanz.com] 
Sent: Tuesday, March 07, 2006 5:13 PM
To: Ethan Alpert; Thom DeCarlo; gdal-dev at lists.maptools.org
Subject: RE: [Gdal-dev] problem with ogr2ogr -f PostgreSQL...

I pointed that out to Frank a week or two ago and I think it's fixed in
the daily version now.

Martin

-----Original Message-----
From: gdal-dev-bounces at lists.maptools.org
[mailto:gdal-dev-bounces at lists.maptools.org] On Behalf Of Ethan Alpert
Sent: Tuesday, March 07, 2006 4:40 PM
To: Thom DeCarlo; gdal-dev at lists.maptools.org
Subject: RE: [Gdal-dev] problem with ogr2ogr -f PostgreSQL...


You know what I suggest using shp2pgsql with psql -f to load data and
psql to create the indexes. You're just going to run into problems
because the ogr PG driver doesn't set the SRID.

-e

-----Original Message-----
From: gdal-dev-bounces at lists.maptools.org
[mailto:gdal-dev-bounces at lists.maptools.org] On Behalf Of Thom DeCarlo
Sent: Tuesday, March 07, 2006 3:22 PM
To: gdal-dev at lists.maptools.org
Subject: [Gdal-dev] problem with ogr2ogr -f PostgreSQL...

I've set up my PostGIS-enabled PostgreSQL database and created a dataset
called "spatial". I have several shapefiles that I want to load into a
single layer. I found the instructions on the gdal website but when I
specify a layername at the end of the ogr2ogr command it quietly fails.
That
is, no messages of any kind either at the command line nor in the pgsql
logfile. If I don't specify a layername the command works just fine.

Are there known problems with this function? I'm using PostGIS 1.1.0 and
PostgreSQL 8.1.1 on RHEL3.

Thanks,
Thom

--
Thom DeCarlo
-------------------------------------------------------
             Who is General Failure
         and why is he reading my disk?



_______________________________________________
Gdal-dev mailing list
Gdal-dev at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/gdal-dev

_______________________________________________
Gdal-dev mailing list
Gdal-dev at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/gdal-dev




More information about the Gdal-dev mailing list