Skip to content

Commit

Permalink
wfsprovider: remove statement which is always true (QGis::WKBNoGeometry)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Oct 4, 2012
1 parent aedddc2 commit 6cd3e7e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/providers/wfs/qgswfsprovider.cpp
Expand Up @@ -798,7 +798,7 @@ int QgsWFSProvider::getFeatureGET( const QString& uri, const QString& geometryAt
QgsDebugMsg( QString( "feature count after request is: %1" ).arg( mFeatures.size() ) );
QgsDebugMsg( QString( "mExtent after request is: %1" ).arg( mExtent.toString() ) );

if (mWKBType != QGis::WKBNoGeometry)
if ( mWKBType != QGis::WKBNoGeometry )
{
for ( QMap<QgsFeatureId, QgsFeature*>::iterator it = mFeatures.begin(); it != mFeatures.end(); ++it )
{
Expand Down Expand Up @@ -832,7 +832,7 @@ int QgsWFSProvider::getFeatureFILE( const QString& uri, const QString& geometryA

QDomElement featureCollectionElement = gmlDoc.documentElement();
//get and set Extent
if ( mWKBType != QGis::WKBNoGeometry && QGis::WKBNoGeometry && getExtentFromGML2( &mExtent, featureCollectionElement ) != 0 )
if ( mWKBType != QGis::WKBNoGeometry && getExtentFromGML2( &mExtent, featureCollectionElement ) != 0 )
{
return 3;
}
Expand Down Expand Up @@ -1036,7 +1036,7 @@ int QgsWFSProvider::readAttributesFromSchema( QDomDocument& schemaDoc, QString&
}
if ( !foundGeometryAttribute )
{
geomType = QGis::WKBNoGeometry;
geomType = QGis::WKBNoGeometry;
}

return 0;
Expand Down Expand Up @@ -1106,7 +1106,7 @@ int QgsWFSProvider::guessAttributesFromFile( const QString& uri, QString& geomet

if ( !foundGeometryAttribute )
{
geomType = QGis::WKBNoGeometry;
geomType = QGis::WKBNoGeometry;
}

return 0;
Expand Down

0 comments on commit 6cd3e7e

Please sign in to comment.