Re: [gdal-dev] joining shapefile to PG table

2011-07-07 Thread William Kyngesburye
On Jul 7, 2011, at 4:22 PM, Even Rouault wrote: > >> Only simplified the names. The shapefile name starts with numbers (natural >> earth shapefiles). There's the problem. I removed the leading numbers, >> and simplified the shapefile names to a few letters (they're also long >> names), no synt

Re: [gdal-dev] joining shapefile to PG table

2011-07-07 Thread Even Rouault
> Only simplified the names. The shapefile name starts with numbers (natural > earth shapefiles). There's the problem. I removed the leading numbers, > and simplified the shapefile names to a few letters (they're also long > names), no syntax error (segfault). Renamed with a short name with a

Re: [gdal-dev] joining shapefile to PG table

2011-07-07 Thread William Kyngesburye
On Jul 7, 2011, at 3:17 PM, Even Rouault wrote: > Le jeudi 07 juillet 2011 21:57:31, William Kyngesburye a écrit : >> I'm having a problem joining a Postgres table to a shapefile. I've done >> this in the past with MySQL tables. >> >> ogrinfo -al -so myshapefile.shp -sql "SELECT * FROM myshapefi

Re: [gdal-dev] joining shapefile to PG table

2011-07-07 Thread Even Rouault
Le jeudi 07 juillet 2011 21:57:31, William Kyngesburye a écrit : > I'm having a problem joining a Postgres table to a shapefile. I've done > this in the past with MySQL tables. > > ogrinfo -al -so myshapefile.shp -sql "SELECT * FROM myshapefile LEFT JOIN > 'PG:dbname=mypgdb host=localhost user=so

[gdal-dev] joining shapefile to PG table

2011-07-07 Thread William Kyngesburye
I'm having a problem joining a Postgres table to a shapefile. I've done this in the past with MySQL tables. ogrinfo -al -so myshapefile.shp -sql "SELECT * FROM myshapefile LEFT JOIN 'PG:dbname=mypgdb host=localhost user=someuser password='.mypgtable ON myshapefile.keyfield = mypgtable.keyfield