Skip to content

Commit 77ff0f8

Browse files
committed
GML parser: do not use layer extent as feature geometry if the feature has no geometry
1 parent f10f82b commit 77ff0f8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/core/qgsgml.cpp‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -913,6 +913,7 @@ void QgsGmlStreamingParser::endElement( const XML_Char* el )
913913
mCurrentFeature == nullptr && mFeatureCount == 0 )
914914
{
915915
mLayerExtent = mCurrentExtent;
916+
mCurrentExtent = QgsRectangle();
916917
}
917918

918919
mParseModeStack.pop();

0 commit comments

Comments
 (0)