Skip to content
Permalink
Browse files

update feature id of added features in OGR and PostgrSQL provider

git-svn-id: http://svn.osgeo.org/qgis/trunk@8583 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Jun 3, 2008
1 parent 97f3618 commit 42b8445ba9284f2103b59649057da140f8d5c522
Showing with 3 additions and 0 deletions.
  1. +2 −0 src/providers/ogr/qgsogrprovider.cpp
  2. +1 −0 src/providers/postgres/qgspostgresprovider.cpp
@@ -554,6 +554,8 @@ bool QgsOgrProvider::addFeature(QgsFeature& f)
{
QgsLogger::warning("Writing of the feature failed");
returnValue = false;
} else {
f.setFeatureId( OGR_F_GetFID(feature) );
}
++numberFeatures;
OGR_F_Destroy( feature );
@@ -1843,6 +1843,7 @@ bool QgsPostgresProvider::addFeatures(QgsFeatureList & flist)
QList<QByteArray> qparam;
qparam.append( geomParam.toUtf8() );
qparam.append( QString("%1").arg( ++primaryKeyHighWater ).toUtf8() );
features->setFeatureId( primaryKeyHighWater );
param[0] = qparam[0];
param[1] = qparam[1];

0 comments on commit 42b8445

Please sign in to comment.
You can’t perform that action at this time.