Comparisons

The traditional comparison operators (=, <, and so on) can be applied to box types. Excepted equality and inequality, the other comparison operators are not useful in the real world but allow B-tree indexes to be constructed on box types. These operators define a total order. They compare first the SRID of spatiotemporal boxes, then the dimensions the boxes have, whether spatiotemporal boxes are geodetic, and the value type of temporal boxes. Boxes agreeing on all of these are compared on their time dimension and, if those are equal, on their value or space dimension.