Skip to content

Commit 0e9717b

Browse files
committed
Fix WFS loading with geoserver layers
1 parent ace4183 commit 0e9717b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/core/qgsgml.cpp

+3-5
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,7 @@ void QgsGml::startElement( const XML_Char* el, const XML_Char** attr )
188188
mParseModeStack.push( QgsGml::boundingBox );
189189
}
190190
else if ( elementName == GML_NAMESPACE + NS_SEPARATOR + "featureMember" )
191-
{
192-
}
193-
else if ( localName == mTypeName )
191+
//else if ( localName == mTypeName )
194192
{
195193
mCurrentFeature = new QgsFeature( mFeatureCount );
196194
QgsAttributes attributes( mThematicAttributes.size() ); //add empty attributes
@@ -308,8 +306,8 @@ void QgsGml::endElement( const XML_Char* el )
308306
mParseModeStack.pop();
309307
}
310308
}
311-
//else if ( elementName == GML_NAMESPACE + NS_SEPARATOR + "featureMember" )
312-
else if ( localName == mTypeName )
309+
//else if ( localName == mTypeName )
310+
else if ( elementName == GML_NAMESPACE + NS_SEPARATOR + "featureMember" )
313311
{
314312
if ( mCurrentWKBSize > 0 )
315313
{

0 commit comments

Comments
 (0)