000268: Cannot set text into GDBEnvironment statistics.

Description

The text set to the GDBEnvironment statistics variable is not a valid value; the correct format is RasterStatistics <statistics_option> <x_skip> <y_skip> {ignore_value}. For example, to calculate statistics with 2,2 skip factor and ignore value 0, you need to set the variable as follows: RasterStatistics STATISTICS 2 2 (0).

Solution

Set the statistics variable in the correct format: RasterStatistics <statistics_option> <x_skip> <y_skip> {ignore_value}.