Skip to content

Commit

Permalink
Add doc and update binding
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Jan 31, 2022
1 parent 166689f commit 9b688fb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
12 changes: 8 additions & 4 deletions python/server/auto_generated/qgsserverparameters.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -101,17 +101,21 @@ Converts the parameter into a list of geometries.

QStringList toOgcFilterList() const;
%Docstring
Converts the parameter into a list of OGC filters or QGIS expressions.

:param ogc: ``True`` to return OGC filters
:param expression: ``True`` to return expressions
Converts the parameter into a list of OGC filters.

:return: A list of strings

.. versionadded:: 3.24
%End

QStringList toExpressionList() const;
%Docstring
Converts the parameter into a list of QGIS expressions.

:return: A list of strings

.. versionadded:: 3.24
%End

QgsRectangle toRectangle( bool &ok ) const;
%Docstring
Expand Down
9 changes: 6 additions & 3 deletions src/server/qgsserverparameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,17 @@ class SERVER_EXPORT QgsServerParameterDefinition
QList<QgsGeometry> toGeomList( bool &ok, char delimiter = ',' ) const;

/**
* Converts the parameter into a list of OGC filters or QGIS expressions.
* \param ogc TRUE to return OGC filters
* \param expression TRUE to return expressions
* Converts the parameter into a list of OGC filters.
* \returns A list of strings
* \since QGIS 3.24
*/
QStringList toOgcFilterList() const;

/**
* Converts the parameter into a list of QGIS expressions.
* \returns A list of strings
* \since QGIS 3.24
*/
QStringList toExpressionList() const;

/**
Expand Down

0 comments on commit 9b688fb

Please sign in to comment.