Skip to content

Commit e05f266

Browse files
authored
Merge pull request #4959 from rldhont/server-wms-configparser-getprint
[Server] WMS GetPrint refactoring
2 parents b53e986 + 388f863 commit e05f266

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1658
-8313
lines changed

python/core/qgsvectorlayer.sip

+8-7
Original file line numberDiff line numberDiff line change
@@ -854,20 +854,21 @@ Return the provider type for this layer
854854
.. versionadded:: 2.10
855855
%End
856856

857-
bool countSymbolFeatures();
857+
QgsVectorLayerFeatureCounter *countSymbolFeatures();
858858
%Docstring
859859
Count features for symbols.
860-
The method will return immediately. You will need to connect to the
861-
symbolFeatureCountMapChanged() signal to be notified when the freshly updated
862-
feature counts are ready.
860+
The method will return the feature counter task. You will need to
861+
connect to the symbolFeatureCountMapChanged() signal to be
862+
notified when the freshly updated feature counts are ready.
863863

864864
.. note::
865865

866-
If you need to wait for the results, create and start your own QgsVectorLayerFeatureCounter
867-
task and call waitForFinished().
866+
If the count features for symbols has been already done a
867+
None is returned. If you need to wait for the results,
868+
you can call waitForFinished() on the feature counter.
868869

869870
.. versionadded:: 3.0
870-
:rtype: bool
871+
:rtype: QgsVectorLayerFeatureCounter
871872
%End
872873

873874
virtual bool setSubsetString( const QString &subset );

python/server/qgsconfigcache.sip

-11
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,6 @@ class QgsConfigCache : QObject
3434
:rtype: QgsConfigCache
3535
%End
3636

37-
QgsServerProjectParser *serverConfiguration( const QString &filePath );
38-
%Docstring
39-
:rtype: QgsServerProjectParser
40-
%End
41-
QgsWmsConfigParser *wmsConfiguration( const QString &filePath,
42-
const QgsAccessControl *accessControl,
43-
const QMap<QString, QString> &parameterMap = QMap< QString, QString >() );
44-
%Docstring
45-
:rtype: QgsWmsConfigParser
46-
%End
47-
4837
void removeEntry( const QString &path );
4938

5039
const QgsProject *project( const QString &path );

python/server/qgsserverprojectparser.sip

-235
This file was deleted.

python/server/qgsserverprojectutils.sip

+8
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,14 @@ namespace QgsServerProjectUtils
129129
:rtype: int
130130
%End
131131

132+
int wmsImageQuality( const QgsProject &project );
133+
%Docstring
134+
Returns the quality for WMS images defined in a QGIS project.
135+
\param project the QGIS project
136+
:return: quality if defined in project, -1 otherwise.
137+
:rtype: int
138+
%End
139+
132140
bool wmsUseLayerIds( const QgsProject &project );
133141
%Docstring
134142
Returns if layer ids are used as name in WMS.

0 commit comments

Comments
 (0)