Skip to content
Permalink
Browse files

Fix wfs features not adding to spatial index

  • Loading branch information
nyalldawson committed Feb 18, 2015
1 parent 3c71498 commit 05c07f2bf7f759bfa2c799711f878e26bbde7d64
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/providers/wfs/qgswfsprovider.cpp
@@ -1179,8 +1179,6 @@ int QgsWFSProvider::getFeaturesFromGML2( const QDomElement& wfsCollectionElement
QDomNode currentAttributeChild;
QDomElement currentAttributeElement;
QgsFeature* f = 0;
unsigned char* wkb = 0;
int wkbSize = 0;
mFeatureCount = 0;

for ( int i = 0; i < featureTypeNodeList.size(); ++i )
@@ -1219,7 +1217,7 @@ int QgsWFSProvider::getFeaturesFromGML2( const QDomElement& wfsCollectionElement
}
currentAttributeChild = currentAttributeChild.nextSibling();
}
if ( wkb && wkbSize > 0 )
if ( f->geometry() )
{
//insert bbox and pointer to feature into search tree
mSpatialIndex->insertFeature( *f );

0 comments on commit 05c07f2

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