diff --git a/doc/source/drivers/raster/georaster.rst b/doc/source/drivers/raster/georaster.rst
index 397e4a19ec6c..e48cca3a2ca4 100644
--- a/doc/source/drivers/raster/georaster.rst
+++ b/doc/source/drivers/raster/georaster.rst
@@ -185,6 +185,11 @@ Creation Options
generated. If :co:`GENPYRAMID` is not informed the resample method NN
(nearest neighbor) will apply.
+- .. co:: STATISTICS
+
+ Defines the layers to generate statistics. The content of this parameter
+ should be a sequence (such as 1,3,5) or a range (1-5).
+
- .. co:: QUALITY
:choices: 0-100
:default: 75
diff --git a/frmts/georaster/georaster_dataset.cpp b/frmts/georaster/georaster_dataset.cpp
index f74ba33067df..b50fa4ad7e47 100644
--- a/frmts/georaster/georaster_dataset.cpp
+++ b/frmts/georaster/georaster_dataset.cpp
@@ -1272,6 +1272,14 @@ GDALDataset *GeoRasterDataset::Create(const char *pszFilename, int nXSize,
poGRD->poGeoRaster->nPyramidLevels = atoi(pszFetched);
}
+ pszFetched = CSLFetchNameValue(papszOptions, "STATISTICS");
+
+ if (pszFetched != nullptr)
+ {
+ poGRD->poGeoRaster->bGenerateStatistics = true;
+ poGRD->poGeoRaster->sStatisticsLayerNumbers = pszFetched;
+ }
+
// -------------------------------------------------------------------
// Return a new Dataset
// -------------------------------------------------------------------
@@ -2912,6 +2920,9 @@ void CPL_DLL GDALRegister_GEOR()
" "
" "
+ " "
" "
"