Skip to content

Commit

Permalink
[BUGFIX][QGIS-Server] 10379 Flaky WFS GetFeature
Browse files Browse the repository at this point in the history
FIX return Feature collection when featureCount is 0
  • Loading branch information
rldhont committed Jun 13, 2014
1 parent 74a7503 commit 5d1eb4e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/mapserver/qgswfsserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 5d1eb4e

Please sign in to comment.