Skip to content
Permalink
Browse files

[BUGFIX][QGIS-Server] 10379 Flaky WFS GetFeature

FIX return Feature collection when featureCount is 0
  • Loading branch information
rldhont committed Jun 13, 2014
1 parent 74a7503 commit 5d1eb4e0d92de8209484ea8a64b17eee3560fdca
Showing with 4 additions and 6 deletions.
  1. +4 −6 src/mapserver/qgswfsserver.cpp
@@ -624,9 +624,8 @@ int QgsWFSServer::getFeature( QgsRequestHandler& request, const QString& format

QgsMapLayerRegistry::instance()->removeAllMapLayers();
if ( featureCounter == 0 )
throw QgsMapServiceException( "RequestNotWellFormed", mErrors.join( ". " ) );
else
endGetFeature( request, format );
startGetFeature( request, format, layerCrs, &searchRect );
endGetFeature( request, format );
return 0;
}

@@ -1068,9 +1067,8 @@ int QgsWFSServer::getFeature( QgsRequestHandler& request, const QString& format

QgsMapLayerRegistry::instance()->removeAllMapLayers();
if ( featureCounter == 0 )
throw QgsMapServiceException( "RequestNotWellFormed", mErrors.join( ". " ) );
else
endGetFeature( request, format );
startGetFeature( request, format, layerCrs, &searchRect );
endGetFeature( request, format );

return 0;
}

0 comments on commit 5d1eb4e

Please sign in to comment.
You can’t perform that action at this time.