Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix WFS loading with geoserver layers
  • Loading branch information
mhugent committed Feb 20, 2013
1 parent ace4183 commit 0e9717b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/core/qgsgml.cpp
Expand Up @@ -188,9 +188,7 @@ void QgsGml::startElement( const XML_Char* el, const XML_Char** attr )
mParseModeStack.push( QgsGml::boundingBox );
}
else if ( elementName == GML_NAMESPACE + NS_SEPARATOR + "featureMember" )
{
}
else if ( localName == mTypeName )
//else if ( localName == mTypeName )
{
mCurrentFeature = new QgsFeature( mFeatureCount );
QgsAttributes attributes( mThematicAttributes.size() ); //add empty attributes
Expand Down Expand Up @@ -308,8 +306,8 @@ void QgsGml::endElement( const XML_Char* el )
mParseModeStack.pop();
}
}
//else if ( elementName == GML_NAMESPACE + NS_SEPARATOR + "featureMember" )
else if ( localName == mTypeName )
//else if ( localName == mTypeName )
else if ( elementName == GML_NAMESPACE + NS_SEPARATOR + "featureMember" )
{
if ( mCurrentWKBSize > 0 )
{
Expand Down

2 comments on commit 0e9717b

@gioman
Copy link
Contributor

@gioman gioman commented on 0e9717b Feb 21, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mhugent
Copy link
Contributor Author

@mhugent mhugent commented on 0e9717b Feb 21, 2013 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.