Skip to content
Permalink
Browse files

getter for the output crs in QgsExtentGroupBox

  • Loading branch information
Gustry authored and nyalldawson committed Dec 14, 2017
1 parent bbf0027 commit ff15896c3095745eb62e76a0045c12d0fe164e87
Showing with 17 additions and 0 deletions.
  1. +9 −0 python/gui/qgsextentgroupbox.sip
  2. +8 −0 src/gui/qgsextentgroupbox.h
@@ -103,9 +103,18 @@ class QgsExtentGroupBox : QgsCollapsibleGroupBox
QgsRectangle outputExtent() const;
%Docstring
Returns the extent shown in the widget - in output CRS coordinates.
.. seealso:: :py:func:`outputCrs`
:rtype: QgsRectangle
%End

QgsCoordinateReferenceSystem outputCrs() const;
%Docstring
Returns the current output CRS, used in the display.
.. seealso:: :py:func:`outputExtent`
.. versionadded:: 3.0
:rtype: QgsCoordinateReferenceSystem
%End

QgsExtentGroupBox::ExtentState extentState() const;
%Docstring
Returns the currently selected state for the widget's extent.
@@ -120,9 +120,17 @@ class GUI_EXPORT QgsExtentGroupBox : public QgsCollapsibleGroupBox, private Ui::

/**
* Returns the extent shown in the widget - in output CRS coordinates.
* \see outputCrs
*/
QgsRectangle outputExtent() const;

/**
* Returns the current output CRS, used in the display.
* \see outputExtent
* \since QGIS 3.0
*/
QgsCoordinateReferenceSystem outputCrs() const { return mOutputCrs; }

/**
* Returns the currently selected state for the widget's extent.
*/

0 comments on commit ff15896

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