Greater than operator (>)

更新时间:
复制 MD 格式

The > operator compares two raster objects by their universally unique identifiers (UUIDs) and returns true if the UUID of the first object is greater than the UUID of the second.

Note This operator compares UUIDs only — not spatial extents or pixel types. It is used only for operations such as union and B-tree. Do not use it to compare the spatial content of raster objects.

Syntax

bool Operator >(raster rast1, raster rast2);

Parameters

ParameterDescription
rast1The first raster object.
rast2The second raster object.

Example

The following query compares matched raster objects from two tables by UUID:

SELECT a.rast > b.rast
FROM tbl_a a, tbl_b b
WHERE a.id = b.id;

The query returns a Boolean value for each matched row: true if the UUID of a.rast is greater than the UUID of b.rast, or false otherwise.