[gdal-dev] Append a shapefile to a postgis table using the GDAL/OGR CSharp interface

2010-07-23 Thread Esben Taudorf
Hi everybody I just started using the GDAL/OGR CSharp interface in Visual Studio and it works great. I am trying to append a shapefile to a postgis table. This I can do with the following lines in ogr2ogr: Fist import the shapefile to postgis a table ogr2ogr -f "PostgreSQL" PG:"dbname='p

Re: [gdal-dev] Append a shapefile to a postgis table using the GDAL/OGR CSharp interface

2010-07-24 Thread Chaitanya kumar CH
Esben, I am not sure why the value is not quoted in the error report. The PostgreSQL driver quotes the string values. When using CreateFeature() you need to make sure to set the feature's FID to OGRNullFID using SetFID(OGRNullFID). In your error report it shows that ogc_fid is set to 0. Perhaps th