Skip to content

Commit 05c07f2

Browse files
committedFeb 18, 2015
Fix wfs features not adding to spatial index
1 parent 3c71498 commit 05c07f2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎src/providers/wfs/qgswfsprovider.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,8 +1179,6 @@ int QgsWFSProvider::getFeaturesFromGML2( const QDomElement& wfsCollectionElement
11791179
QDomNode currentAttributeChild;
11801180
QDomElement currentAttributeElement;
11811181
QgsFeature* f = 0;
1182-
unsigned char* wkb = 0;
1183-
int wkbSize = 0;
11841182
mFeatureCount = 0;
11851183

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

0 commit comments

Comments
 (0)
Please sign in to comment.