Applying OLAP Pre-Aggregation Techniques to ... - Jacobs University
Applying OLAP Pre-Aggregation Techniques to ... - Jacobs University
Applying OLAP Pre-Aggregation Techniques to ... - Jacobs University
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
3.2 Geo-Raster Operations 45<br />
turn is multiplied by the cell value of array A. Thus, the left part of the expression is<br />
either 0 or the cell value of array A. Similarly, the right-hand side of the arithmetic<br />
addition expression verifies if the cell value of array A is less than or equal <strong>to</strong> the cell<br />
value of B. The result is either 0 or 1 depending on whether or not the condition is<br />
satisfied. This value is multiplied for the cell value of array B. Note that only one of<br />
the parts of the addition expression will be greater than zero, and that this value corresponds<br />
<strong>to</strong> the highest value between arrays A and B. Results are shown in Fig. 3.6.<br />
(a) 8-bit gray raster A (b) 8-bit gray raster B (c) Output raster<br />
Figure 3.6. Computation of an Overlay Operation<br />
An overlay operation can also be done considering a different condition <strong>to</strong> be tested<br />
while determining the cell values of the output array. For example:<br />
Query 3.2.7. Compute an overlay operation between rasters A and B. That is, compare<br />
cell-wise the two rasters: if the cell value of B is non-zero, then set this value<br />
as the cell value of the corresponding cell in array A. Otherwise, the cell value of A<br />
remains unchanged.<br />
The query can be answered as follows:<br />
MARRAY sdom(A),g (((B[g] > 0) ∗ B[g]) + ((B[g] ≤ 0) ∗ A[g]))<br />
Results are shown in Fig. 3.7.<br />
3.2.2 <strong>Aggregation</strong> Operations<br />
We now present the modeling of operations consisting of one or more aggregate<br />
functions. An aggregate function takes a collection of cells and returns a single value<br />
that summarizes the information contained in the set of cells. The SQL standard provides<br />
a variety of aggregate functions. SQL-92 includes count, sum, average, min,