Less than or equal to 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 less than or equal to the UUID of the second.

Note This operator compares UUIDs only — it does not compare spatial extents or pixel types. Use it only for operations that require ordering or indexing raster objects, such as union and B-tree operations.

Syntax

bool Operator <=(raster rast1, raster rast2)

Parameters

ParameterDescription
rast1The first raster object.
rast2The second raster object.

Example

The following query uses <= to compare the UUID of each raster in tbl_a against the UUID of the corresponding raster in tbl_b:

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