public NumberExpression<Integer> dimension() {
        if (dimension == null) {
            dimension = Expressions.numberOperation(Integer.class, SpatialOps.DIMENSION, mixin);
        }
        return dimension;
    }
The inherent dimension of this geometric object, which must be less than or equal
to the coordinate dimension. In non-homogeneous collections, this will return the largest topological
dimension of the contained objects.

@return dimension
querydsl-spatial/src/main/java/com/querydsl/spatial/jts/JTSGeometryExpression.java