Skip to content

Commit

Permalink
More docs
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Sep 9, 2020
1 parent 94fe2f8 commit 47a48bb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
Expand Up @@ -50,7 +50,7 @@ A class that calculates raster statistics (count, sum, mean) for a polygon or mu
RasterInvalid,
RasterBandInvalid,
FailedToCreateField,
Cancelled
Canceled
};

QgsZonalStatistics( QgsVectorLayer *polygonLayer,
Expand Down
2 changes: 1 addition & 1 deletion src/analysis/vector/qgszonalstatistics.cpp
Expand Up @@ -160,7 +160,7 @@ QgsZonalStatistics::Result QgsZonalStatistics::calculateStatistics( QgsFeedback
if ( feedback )
{
if ( feedback->isCanceled() )
return Cancelled;
return Canceled;

feedback->setProgress( 100 );
}
Expand Down
15 changes: 8 additions & 7 deletions src/analysis/vector/qgszonalstatistics.h
Expand Up @@ -66,15 +66,16 @@ class ANALYSIS_EXPORT QgsZonalStatistics
};
Q_DECLARE_FLAGS( Statistics, Statistic )

//! Error codes for calculation
enum Result
{
Success = 0,
LayerTypeWrong = 1,
LayerInvalid,
RasterInvalid,
RasterBandInvalid,
FailedToCreateField = 8,
Cancelled = 9
Success = 0, //!< Success
LayerTypeWrong = 1, //!< Layer is not a polygon layer
LayerInvalid, //!< Layer is invalid
RasterInvalid, //!< Raster layer is invalid
RasterBandInvalid, //!< The raster band does not exist on the raster layer
FailedToCreateField = 8, //!< Output fields could not be created
Canceled = 9 //!< Algorithm was canceled
};

/**
Expand Down

0 comments on commit 47a48bb

Please sign in to comment.