Skip to content
Permalink
Browse files

Different code path for unsupported providers

  • Loading branch information
elpaso committed Oct 28, 2020
1 parent a70e79b commit 3f88d74dcd50358b83fb1f22a3ae6ad02002e50b
Showing with 11 additions and 3 deletions.
  1. +11 −3 src/server/services/wms/qgswmsrenderer.cpp
@@ -2247,10 +2247,18 @@ namespace QgsWms
{
const QDomElement featureNode = featuresNode.at( j ).toElement();
const QString fid = featureNode.attribute( QStringLiteral( "id" ) );
QgsFeatureRequest request { QgsExpression( QgsServerFeatureId::getExpressionFromServerFid( fid, static_cast<QgsVectorDataProvider *>( layer->dataProvider() ) ) )};
request.setFlags( QgsFeatureRequest::Flag::NoGeometry );
QgsFeature feature;
vl->getFeatures( request ).nextFeature( feature );
const QString expression { QgsServerFeatureId::getExpressionFromServerFid( fid, static_cast<QgsVectorDataProvider *>( layer->dataProvider() ) ) };
if ( expression.isEmpty() )
{
feature = vl->getFeature( fid.toLongLong() );
}
else
{
QgsFeatureRequest request { QgsExpression( expression )};
request.setFlags( QgsFeatureRequest::Flag::NoGeometry );
vl->getFeatures( request ).nextFeature( feature );
}

QString wkt;
if ( withGeometry )

0 comments on commit 3f88d74

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