Skip to content
Permalink
Browse files

Skip the configure part for an external layer

  • Loading branch information
pblottiere committed Sep 2, 2020
1 parent ffc6561 commit 87ec664a873d891a6902b0c3813fe5839ee55a38
Showing with 11 additions and 2 deletions.
  1. +6 −2 src/server/services/wms/qgswmsrendercontext.h
  2. +5 −0 src/server/services/wms/qgswmsrenderer.cpp
@@ -244,6 +244,12 @@ namespace QgsWms
*/
int mapHeight() const;

/**
* Returns true if the layer is an external layer, false otherwise.
* \since QGIS 3.16
*/
bool isExternalLayer( const QString &name ) const;

private:
void initNicknameLayers();
void initRestrictedLayers();
@@ -258,8 +264,6 @@ namespace QgsWms

bool layerScaleVisibility( const QString &name ) const;

bool isExternalLayer( const QString &name ) const;

const QgsProject *mProject = nullptr;
QgsServerInterface *mInterface = nullptr;
QgsWmsParameters mParameters;
@@ -3098,6 +3098,11 @@ namespace QgsWms
continue;
}

if ( mContext.isExternalLayer( param.mNickname ) )
{
continue;
}

if ( useSld )
{
setLayerSld( layer, mContext.sld( *layer ) );

0 comments on commit 87ec664

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