Skip to content
Permalink
Browse files

Fixed WFS-T fid<->gml fid sync (thanks to roualt)

  • Loading branch information
elpaso committed Jun 24, 2016
1 parent 87fea73 commit 323da1bed69b13fd7136c18faf98e939773903e1
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/core/qgsofflineediting.cpp
@@ -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 );

0 comments on commit 323da1b

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