Skip to content

Commit

Permalink
sipify core raster part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jun 2, 2017
1 parent d357bc5 commit 98f653e
Show file tree
Hide file tree
Showing 24 changed files with 1,912 additions and 881 deletions.
3 changes: 2 additions & 1 deletion cmake_templates/Doxyfile.in
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2050,6 +2050,7 @@ PREDEFINED =
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES. # This tag requires that the tag ENABLE_PREPROCESSING is set to YES.


EXPAND_AS_DEFINED = "SIP_ABSTRACT" \ EXPAND_AS_DEFINED = "SIP_ABSTRACT" \
"SIP_ALLOWNONE" \
"SIP_ARRAY" \ "SIP_ARRAY" \
"SIP_ARRAYSIZE" \ "SIP_ARRAYSIZE" \
"SIP_CONSTRAINED" \ "SIP_CONSTRAINED" \
Expand All @@ -2067,7 +2068,7 @@ EXPAND_AS_DEFINED = "SIP_ABSTRACT" \
"SIP_PYARGDEFAULT" \ "SIP_PYARGDEFAULT" \
"SIP_PYARGREMOVE" \ "SIP_PYARGREMOVE" \
"SIP_PYNAME" \ "SIP_PYNAME" \
"SIP_PYTYPE" \ "SIP_PYALTERNATIVETYPE" \
"SIP_SKIP" \ "SIP_SKIP" \
"SIP_TRANSFER" \ "SIP_TRANSFER" \
"SIP_TRANSFERBACK" \ "SIP_TRANSFERBACK" \
Expand Down
12 changes: 0 additions & 12 deletions python/auto_sip.blacklist
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -48,18 +48,6 @@ core/gps/qgsgpsdconnection.sip
core/gps/qgsgpsdetector.sip core/gps/qgsgpsdetector.sip
core/gps/qgsnmeaconnection.sip core/gps/qgsnmeaconnection.sip
core/gps/qgsqtlocationconnection.sip core/gps/qgsqtlocationconnection.sip
core/raster/qgsrasterbandstats.sip
core/raster/qgsrasterblock.sip
core/raster/qgsrasterchecker.sip
core/raster/qgsrasterdataprovider.sip
core/raster/qgsrasterdrawer.sip
core/raster/qgsrasterhistogram.sip
core/raster/qgsrasteridentifyresult.sip
core/raster/qgsrasterinterface.sip
core/raster/qgsrasteriterator.sip
core/raster/qgsrasterlayer.sip
core/raster/qgsrasterminmaxorigin.sip
core/raster/qgsrasternuller.sip
core/raster/qgsrasterpipe.sip core/raster/qgsrasterpipe.sip
core/raster/qgsrasterprojector.sip core/raster/qgsrasterprojector.sip
core/raster/qgsrasterpyramid.sip core/raster/qgsrasterpyramid.sip
Expand Down
90 changes: 67 additions & 23 deletions python/core/raster/qgsrasterbandstats.sip
Original file line number Original file line Diff line number Diff line change
@@ -1,14 +1,26 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/raster/qgsrasterbandstats.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/







/** \ingroup core
* The RasterBandStats struct is a container for statistics about a single
* raster band.
*/
class QgsRasterBandStats class QgsRasterBandStats
{ {
%TypeHeaderCode %Docstring
#include <qgsrasterbandstats.h> The RasterBandStats struct is a container for statistics about a single
raster band.
%End %End


%TypeHeaderCode
#include "qgsrasterbandstats.h"
%End
public: public:
enum Stats enum Stats
{ {
Expand All @@ -25,48 +37,80 @@ class QgsRasterBandStats


QgsRasterBandStats(); QgsRasterBandStats();


/** Compares region, size etc. not collected statistics */
bool contains( const QgsRasterBandStats &s ) const; bool contains( const QgsRasterBandStats &s ) const;
%Docstring
Compares region, size etc. not collected statistics
:rtype: bool
%End


/** \brief The gdal band number (starts at 1)*/
int bandNumber; int bandNumber;
%Docstring
The gdal band number (starts at 1)
%End


/** \brief The number of not no data cells in the band. */
// TODO: check if no data are excluded in stats calculation
qgssize elementCount; qgssize elementCount;


/** \brief The maximum cell value in the raster band. NO_DATA values
* are ignored. This does not use the gdal GetMaximmum function. */
double maximumValue; double maximumValue;
%Docstring
The maximum cell value in the raster band. NO_DATA values
are ignored. This does not use the gdal GetMaximmum function. *
%End


/** \brief The minimum cell value in the raster band. NO_DATA values
* are ignored. This does not use the gdal GetMinimum function. */
double minimumValue; double minimumValue;
%Docstring
The minimum cell value in the raster band. NO_DATA values
are ignored. This does not use the gdal GetMinimum function. *
%End


/** \brief The mean cell value for the band. NO_DATA values are excluded. */
double mean; double mean;
%Docstring
The mean cell value for the band. NO_DATA values are excluded.
%End


/** \brief The range is the distance between min & max. */
double range; double range;
%Docstring
The range is the distance between min & max.
%End


/** \brief The standard deviation of the cell values. */
double stdDev; double stdDev;
%Docstring
The standard deviation of the cell values.
%End


/** \brief Collected statistics */
int statsGathered; int statsGathered;
%Docstring
Collected statistics
%End


/** \brief The sum of all cells in the band. NO_DATA values are excluded. */
double sum; double sum;
%Docstring
The sum of all cells in the band. NO_DATA values are excluded.
%End


/** \brief The sum of the squares. Used to calculate standard deviation. */
double sumOfSquares; double sumOfSquares;
%Docstring
The sum of the squares. Used to calculate standard deviation.
%End


/** \brief Number of columns used to calc statistics */
int width; int width;
%Docstring
Number of columns used to calc statistics
%End


/** \brief Number of rows used to calc statistics */
int height; int height;
%Docstring
Number of rows used to calc statistics
%End


/** \brief Extent used to calc statistics */
QgsRectangle extent; QgsRectangle extent;
%Docstring
Extent used to calc statistics
%End
}; };
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/raster/qgsrasterbandstats.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
Loading

0 comments on commit 98f653e

Please sign in to comment.