Skip to content

Commit

Permalink
[Bugfix][QGIS Server] - fixed invalid GeoJSON (missing ',') in WFS Ge…
Browse files Browse the repository at this point in the history
…tFeature request
  • Loading branch information
marcel-dancak committed Jan 17, 2016
1 parent 9dd6c0a commit e707091
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 e707091

Please sign in to comment.