Skip to content

Commit

Permalink
Deprecate constructor which should have been deprecated a long time ago
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 13, 2021
1 parent 5e98648 commit 0b5a95c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
11 changes: 7 additions & 4 deletions python/core/auto_generated/proj/qgscoordinatetransform.sip.in
Expand Up @@ -100,15 +100,18 @@ correctly respected during coordinate transforms. E.g.
.. versionadded:: 3.0 .. versionadded:: 3.0
%End %End


explicit QgsCoordinateTransform( const QgsCoordinateReferenceSystem &source, explicit QgsCoordinateTransform( const QgsCoordinateReferenceSystem &source,
const QgsCoordinateReferenceSystem &destination, const QgsCoordinateReferenceSystem &destination,
int sourceDatumTransformId, int sourceDatumTransformId,
int destinationDatumTransformId ); int destinationDatumTransformId ) /Deprecated/;
%Docstring %Docstring
Constructs a QgsCoordinateTransform to transform from the ``source`` Constructs a QgsCoordinateTransform to transform from the ``source``
to ``destination`` coordinate reference system, with the specified to ``destination`` coordinate reference system, with the specified
datum transforms (see :py:class:`QgsDatumTransform`). datum transforms (see :py:class:`QgsDatumTransform`).


.. deprecated::
will be removed in QGIS 4.0. Use the constructor with a :py:class:`QgsCoordinateTransformContext` argument instead.

.. versionadded:: 3.0 .. versionadded:: 3.0
%End %End


Expand Down
9 changes: 5 additions & 4 deletions src/core/proj/qgscoordinatetransform.h
Expand Up @@ -118,12 +118,13 @@ class CORE_EXPORT QgsCoordinateTransform
* to \a destination coordinate reference system, with the specified * to \a destination coordinate reference system, with the specified
* datum transforms (see QgsDatumTransform). * datum transforms (see QgsDatumTransform).
* *
* \deprecated will be removed in QGIS 4.0. Use the constructor with a QgsCoordinateTransformContext argument instead.
* \since QGIS 3.0 * \since QGIS 3.0
*/ */
explicit QgsCoordinateTransform( const QgsCoordinateReferenceSystem &source, Q_DECL_DEPRECATED explicit QgsCoordinateTransform( const QgsCoordinateReferenceSystem &source,
const QgsCoordinateReferenceSystem &destination, const QgsCoordinateReferenceSystem &destination,
int sourceDatumTransformId, int sourceDatumTransformId,
int destinationDatumTransformId ); int destinationDatumTransformId ) SIP_DEPRECATED;


/** /**
* Copy constructor * Copy constructor
Expand Down

0 comments on commit 0b5a95c

Please sign in to comment.