Skip to content
Permalink
Browse files

[FEATURE:] Redlining in QGIS server (GetMap and GetPrint). Funded by …

…canton of Solothurn
  • Loading branch information
mhugent committed Mar 31, 2016
1 parent befa962 commit afa20ec28d6952e80708c7a37d47e19723c7807d
@@ -25,6 +25,8 @@

#include <QHash>

class QgsMapLayer;

class QgsOWSServer
{
public:
@@ -717,11 +717,11 @@ bool QgsSLDConfigParser::WMSInspireActivated() const
return false;
}

QgsComposition* QgsSLDConfigParser::createPrintComposition( const QString& composerTemplate, QgsMapRenderer* mapRenderer, const QMap< QString, QString >& parameterMap ) const
QgsComposition* QgsSLDConfigParser::createPrintComposition( const QString& composerTemplate, QgsMapRenderer* mapRenderer, const QMap< QString, QString >& parameterMap, QStringList& highlightLayers ) const
{
if ( mFallbackParser )
{
return mFallbackParser->createPrintComposition( composerTemplate, mapRenderer, parameterMap );
return mFallbackParser->createPrintComposition( composerTemplate, mapRenderer, parameterMap, highlightLayers );
}
return nullptr;
}
@@ -112,7 +112,7 @@ class QgsSLDConfigParser : public QgsWMSConfigParser
//printing

/** Creates a print composition, usually for a GetPrint request. Replaces map and label parameters*/
QgsComposition* createPrintComposition( const QString& composerTemplate, QgsMapRenderer* mapRenderer, const QMap< QString, QString >& parameterMap ) const;
QgsComposition* createPrintComposition( const QString& composerTemplate, QgsMapRenderer* mapRenderer, const QMap< QString, QString >& parameterMap, QStringList& highlightLayers ) const;

/** Creates a composition from the project file (probably delegated to the fallback parser)*/
QgsComposition* initComposition( const QString& composerTemplate, QgsMapRenderer* mapRenderer, QList< QgsComposerMap*>& mapList, QList< QgsComposerLegend* >& legendList, QList< QgsComposerLabel* >& labelList, QList<const QgsComposerHtml *>& htmlFrameList ) const override;

4 comments on commit afa20ec

@gioman

This comment has been minimized.

Copy link
Contributor

@gioman gioman replied Apr 5, 2016

How this work?

@elpaso

This comment has been minimized.

Copy link
Contributor

@elpaso elpaso replied Apr 6, 2016

@nyalldawson

This comment has been minimized.

Copy link
Collaborator

@nyalldawson nyalldawson replied Apr 6, 2016

It would also be nice to see some unit tests here. There's been a lot of work done lately on adding tests to QGIS server so it would be good to add to that.

@tudorbarascu

This comment has been minimized.

Copy link
Member

@tudorbarascu tudorbarascu replied Sep 3, 2016

@gioman Just documented it at qgis/QGIS-Documentation#1378

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