2017-06-01 15:39:31 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/raster/qgsrasteridentifyresult.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-04-08 18:25:44 +02:00
|
|
|
class QgsRasterIdentifyResult
|
|
|
|
{
|
2017-06-01 15:39:31 +02:00
|
|
|
%Docstring
|
|
|
|
Raster identify results container.
|
|
|
|
%End
|
|
|
|
|
2013-04-08 18:25:44 +02:00
|
|
|
%TypeHeaderCode
|
2017-06-01 15:39:31 +02:00
|
|
|
#include "qgsrasteridentifyresult.h"
|
2013-04-08 18:25:44 +02:00
|
|
|
%End
|
|
|
|
public:
|
2017-09-28 08:17:06 +10:00
|
|
|
|
2013-04-08 18:25:44 +02:00
|
|
|
QgsRasterIdentifyResult();
|
2017-09-28 08:17:06 +10:00
|
|
|
%Docstring
|
|
|
|
Constructor for QgsRasterIdentifyResult.
|
|
|
|
%End
|
2013-04-08 18:25:44 +02:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
QgsRasterIdentifyResult( QgsRaster::IdentifyFormat format, const QMap<int, QVariant> &results );
|
2017-06-01 15:39:31 +02:00
|
|
|
%Docstring
|
|
|
|
Constructor. Creates valid result.
|
|
|
|
\param format the result format
|
|
|
|
\param results the results
|
|
|
|
%End
|
2013-04-08 18:25:44 +02:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
QgsRasterIdentifyResult( const QgsError &error );
|
2017-06-01 15:39:31 +02:00
|
|
|
%Docstring
|
|
|
|
Constructor. Creates invalid result with error.
|
|
|
|
\param error the error
|
|
|
|
%End
|
2013-04-08 18:25:44 +02:00
|
|
|
|
|
|
|
virtual ~QgsRasterIdentifyResult();
|
|
|
|
|
|
|
|
bool isValid() const;
|
2017-06-01 15:39:31 +02:00
|
|
|
%Docstring
|
|
|
|
Returns true if valid
|
|
|
|
:rtype: bool
|
|
|
|
%End
|
2013-04-08 18:25:44 +02:00
|
|
|
|
2013-04-24 17:18:15 +02:00
|
|
|
QgsRaster::IdentifyFormat format() const;
|
2017-06-01 15:39:31 +02:00
|
|
|
%Docstring
|
|
|
|
Get results format
|
|
|
|
:rtype: QgsRaster.IdentifyFormat
|
|
|
|
%End
|
2013-04-08 18:25:44 +02:00
|
|
|
|
|
|
|
QMap<int, QVariant> results() const;
|
2017-06-01 15:39:31 +02:00
|
|
|
%Docstring
|
|
|
|
Get results. Results are different for each format:
|
|
|
|
QgsRaster.IdentifyFormatValue: map of values for each band, keys are band numbers (from 1).
|
|
|
|
QgsRaster.IdentifyFormatFeature: map of QgsRasterFeatureList for each sublayer (WMS)
|
|
|
|
QgsRaster.IdentifyFormatHtml: map of HTML strings for each sublayer (WMS).
|
|
|
|
:rtype: QMap<int, QVariant>
|
|
|
|
%End
|
2013-04-08 18:25:44 +02:00
|
|
|
|
2017-05-03 07:45:22 +02:00
|
|
|
void setParams( const QMap<QString, QVariant> ¶ms );
|
2017-06-01 15:39:31 +02:00
|
|
|
%Docstring
|
|
|
|
Set map of optional parameters
|
|
|
|
%End
|
2013-04-08 18:25:44 +02:00
|
|
|
|
|
|
|
QMap<QString, QVariant> params() const;
|
2017-06-01 15:39:31 +02:00
|
|
|
%Docstring
|
|
|
|
Get map of optional parameters
|
|
|
|
:rtype: QMap<str, QVariant>
|
|
|
|
%End
|
2013-04-08 18:25:44 +02:00
|
|
|
|
|
|
|
QgsError error() const;
|
2017-06-01 15:39:31 +02:00
|
|
|
%Docstring
|
|
|
|
Get error
|
|
|
|
:rtype: QgsError
|
|
|
|
%End
|
2013-04-08 18:25:44 +02:00
|
|
|
|
2017-05-03 07:45:22 +02:00
|
|
|
void setError( const QgsError &error );
|
2017-06-01 15:39:31 +02:00
|
|
|
%Docstring
|
|
|
|
Set error
|
|
|
|
%End
|
|
|
|
|
2013-04-08 18:25:44 +02:00
|
|
|
};
|
|
|
|
|
2017-06-01 15:39:31 +02:00
|
|
|
|
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/raster/qgsrasteridentifyresult.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|