Skip to content

Commit 5abe66b

Browse files
committed
GML parser: do not use layer extent as feature geometry if the feature has no geometry
1 parent 283d45a commit 5abe66b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/qgsgml.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -904,6 +904,7 @@ void QgsGmlStreamingParser::endElement( const XML_Char* el )
904904
mCurrentFeature == nullptr && mFeatureCount == 0 )
905905
{
906906
mLayerExtent = mCurrentExtent;
907+
mCurrentExtent = QgsRectangle();
907908
}
908909

909910
mParseModeStack.pop();

0 commit comments

Comments
 (0)