presto-geospatial-toolkit/src/main/java/io/prestosql/geospatial/Rectangle.java/Rectangle/merge
class Rectangle:    public Rectangle merge(Rectangle other)
    {
        return new Rectangle(min(this.xMin, other.xMin), min(this.yMin, other.yMin), max(this.xMax, other.xMax), max(this.yMax, other.yMax));
    }