QGIS/python/core/auto_generated/proj/qgsprojoperation.sip.in
Nyall Dawson b6f60f6120 Add QgsCoordinateReferenceSystem::operation() for retrieving details
of the associated proj operation for a CRS

Allows callers to determine the projection used for CRS objects and
their details.

Also add QgsCoordinateReferenceSystemRegistry::projOperations() for
retrieving a complete list of all available PROJ operations
2021-05-11 14:25:53 +10:00

68 lines
1.8 KiB
Plaintext

/************************************************************************
* This file has been generated automatically from *
* *
* src/core/proj/qgsprojoperation.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsProjOperation
{
%Docstring(signature="appended")
Contains information about a PROJ operation.
.. versionadded:: 3.20
%End
%TypeHeaderCode
#include "qgsprojoperation.h"
%End
public:
bool isValid() const;
%Docstring
Returns ``True`` if the body is a valid object, or ``False`` if it is a null/invalid
object.
%End
QString id() const;
%Docstring
ID of operation.
%End
QString description() const;
%Docstring
Description.
%End
QString details() const;
%Docstring
Additional details.
%End
SIP_PYOBJECT __repr__();
%MethodCode
QString str;
if ( !sipCpp->isValid() )
{
str = QStringLiteral( "<QgsProjOperation: invalid>" );
}
else
{
str = QStringLiteral( "<QgsProjOperation: %1>" ).arg( sipCpp->id() );
}
sipRes = PyUnicode_FromString( str.toUtf8().constData() );
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/proj/qgsprojoperation.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/