Skip to content
Permalink
Browse files

[BUGFIX][QGIS Server] No flags in QgsFeatureRequest if expression nee…

…ds geometry
  • Loading branch information
rldhont committed Nov 3, 2016
1 parent f692e19 commit 4fe9daad7eb56ca5b1f134e1f0d19f40a6b147b7
Showing with 8 additions and 1 deletion.
  1. +8 −1 src/server/qgswfsserver.cpp
@@ -658,7 +658,14 @@ int QgsWFSServer::getFeature( QgsRequestHandler& request, const QString& format
throw QgsMapServiceException( "RequestNotWellFormed", filter->parserErrorString() );
}
QgsFeatureRequest req;
req.setFlags( QgsFeatureRequest::ExactIntersect | ( mWithGeom ? QgsFeatureRequest::NoFlags : QgsFeatureRequest::NoGeometry ) );
if ( filter->needsGeometry() )
{
req.setFlags( QgsFeatureRequest::NoFlags );
}
else
{
req.setFlags( QgsFeatureRequest::ExactIntersect | ( mWithGeom ? QgsFeatureRequest::NoFlags : QgsFeatureRequest::NoGeometry ) );
}
req.setFilterExpression( filter->expression() );
#ifdef HAVE_SERVER_PYTHON_PLUGINS
mAccessControl->filterFeatures( layer, req );

0 comments on commit 4fe9daa

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