Skip to content

Commit

Permalink
Merge branch 'marcel-dancak-master-bugfix_13527'
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Jan 28, 2016
2 parents 9f52046 + e707091 commit 8c9078d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/server/qgswfsserver.cpp
Expand Up @@ -414,6 +414,7 @@ int QgsWFSServer::getFeature( QgsRequestHandler& request, const QString& format
long startIndex = 0;
long featureCounter = 0;
int layerPrec = 8;
long featCounter = 0;

QgsExpressionContext expressionContext;
expressionContext << QgsExpressionContextUtils::globalScope()
Expand All @@ -424,7 +425,6 @@ int QgsWFSServer::getFeature( QgsRequestHandler& request, const QString& format
if ( doc.setContent( mParameters.value( "REQUEST_BODY" ), true, &errorMsg ) )
{
QDomElement docElem = doc.documentElement();

if ( docElem.hasAttribute( "maxFeatures" ) )
maxFeatures = docElem.attribute( "maxFeatures" ).toLong();
if ( docElem.hasAttribute( "startIndex" ) )
Expand Down Expand Up @@ -564,7 +564,6 @@ int QgsWFSServer::getFeature( QgsRequestHandler& request, const QString& format

QgsFeatureIterator fit = layer->getFeatures( fReq );

long featCounter = 0;
QDomNodeList filterNodes = queryElem.elementsByTagName( "Filter" );
if ( !filterNodes.isEmpty() )
{
Expand Down Expand Up @@ -932,7 +931,6 @@ int QgsWFSServer::getFeature( QgsRequestHandler& request, const QString& format
searchRect.yMaximum() + 1. / pow( 10., layerPrec ) );
layerCrs = layer->crs();

long featCounter = 0;
if ( featureIdOk )
{
Q_FOREACH ( const QString &fidStr, featureIdList )
Expand Down

0 comments on commit 8c9078d

Please sign in to comment.