English

FAQ: When classifying a raster, which values are inclusive and which are exclusive to each class range?

Question

When classifying a raster, which values are inclusive and which are exclusive to each class range?

Answer

The first value of the first range is inclusive, as is the last value of the first range.
The first value of the second range is exclusive and the last value of the second range is inclusive.
The first value of the third range is exclusive and the last value of the third range is inclusive.
This pattern repeats for the rest of the dataset.
For example, take the following classification ranges:

0 - 10
10 - 20
20 - 30

For the first class range of 0 - 10, the 0 is inclusive and 10 is inclusive.
For the second class range of 10 - 20, the 10 is exclusive and 20 is inclusive.
For the third class range of 20 - 30, the 20 is exclusive and 30 is inclusive).


In other words, the value 10 will be included in the first class range and not the second. This is because the last value of the first class range is inclusive to that range, and the first value of the second class range is exclusive (not included in that range).

Similarly, the value 20 will be included in the second class range. This is because the last value of the second class range is inclusive to that range. The value 20 of the last class range will not be included in that range because it is exclusive to that range.