Skip to content

Commit ff15896

Browse files
Gustrynyalldawson
authored andcommitted
getter for the output crs in QgsExtentGroupBox
1 parent bbf0027 commit ff15896

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

python/gui/qgsextentgroupbox.sip

+9
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,18 @@ class QgsExtentGroupBox : QgsCollapsibleGroupBox
103103
QgsRectangle outputExtent() const;
104104
%Docstring
105105
Returns the extent shown in the widget - in output CRS coordinates.
106+
.. seealso:: :py:func:`outputCrs`
106107
:rtype: QgsRectangle
107108
%End
108109

110+
QgsCoordinateReferenceSystem outputCrs() const;
111+
%Docstring
112+
Returns the current output CRS, used in the display.
113+
.. seealso:: :py:func:`outputExtent`
114+
.. versionadded:: 3.0
115+
:rtype: QgsCoordinateReferenceSystem
116+
%End
117+
109118
QgsExtentGroupBox::ExtentState extentState() const;
110119
%Docstring
111120
Returns the currently selected state for the widget's extent.

src/gui/qgsextentgroupbox.h

+8
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,17 @@ class GUI_EXPORT QgsExtentGroupBox : public QgsCollapsibleGroupBox, private Ui::
120120

121121
/**
122122
* Returns the extent shown in the widget - in output CRS coordinates.
123+
* \see outputCrs
123124
*/
124125
QgsRectangle outputExtent() const;
125126

127+
/**
128+
* Returns the current output CRS, used in the display.
129+
* \see outputExtent
130+
* \since QGIS 3.0
131+
*/
132+
QgsCoordinateReferenceSystem outputCrs() const { return mOutputCrs; }
133+
126134
/**
127135
* Returns the currently selected state for the widget's extent.
128136
*/

0 commit comments

Comments
 (0)