mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Fix wfs features not adding to spatial index
This commit is contained in:
parent
3c71498c3e
commit
05c07f2bf7
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user