Skip to content

Commit

Permalink
Fixed WFS-T fid<->gml fid sync (thanks to roualt)
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Jun 24, 2016
1 parent 87fea73 commit 323da1b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/core/qgsofflineediting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,15 @@ void QgsOfflineEditing::synchronize()
QgsVectorLayer* remoteLayer = new QgsVectorLayer( remoteSource, remoteName, remoteProvider );
if ( remoteLayer->isValid() )
{
// Rebuild WFS cache to get feature id<->GML fid mapping
if ( remoteLayer->dataProvider()->name().contains( "WFS", Qt::CaseInsensitive ) )
{
QgsFeatureIterator fit = remoteLayer->getFeatures();
QgsFeature f;
while ( fit.nextFeature( f ) )
{
}
}
// TODO: only add remote layer if there are log entries?

QgsVectorLayer* offlineLayer = qobject_cast<QgsVectorLayer*>( layer );
Expand Down

0 comments on commit 323da1b

Please sign in to comment.