Skip to content
Permalink
Browse files

More docs

  • Loading branch information
m-kuhn committed Sep 9, 2020
1 parent 94fe2f8 commit 47a48bb0dad2a0920df8ae07c6f650007000216e
@@ -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,
@@ -160,7 +160,7 @@ QgsZonalStatistics::Result QgsZonalStatistics::calculateStatistics( QgsFeedback
if ( feedback )
{
if ( feedback->isCanceled() )
return Cancelled;
return Canceled;

feedback->setProgress( 100 );
}
@@ -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
};

/**

0 comments on commit 47a48bb

Please sign in to comment.
You can’t perform that action at this time.