public static GeometryCollection extrudeGeometry(Geometry geometry, double height) throws SQLException {
        if(geometry == null){
            return null;
        }
        if (geometry instanceof Polygon) {
            return GeometryExtrude.extrudePolygonAsGeometry((Polygon) geometry, height);
        } else if (geometry instanceof LineString) {
            return GeometryExtrude.extrudeLineStringAsGeometry((LineString) geometry, height);
        }
        throw new SQLException("Only LINESTRING and POLYGON inputs are accepted.");
    }
public static GeometryCollection extrudeGeometry ( Geometry geometry , double height ) throws SQLException { if ( geometry == null ) { return null ; } if ( geometry instanceof Polygon ) { return GeometryExtrude . extrudePolygonAsGeometry ( ( Polygon ) geometry , height ) ; } else if ( geometry instanceof LineString ) { return GeometryExtrude . extrudeLineStringAsGeometry ( ( LineString ) geometry , height ) ; } throw new SQLException ( "Only LINESTRING and POLYGON inputs are accepted." ) ; }
Extrudes a POLYGON or a LINESTRING into a GEOMETRYCOLLECTION containing
the floor (input geometry), walls and ceiling.
Note :  the NaN z value of the input geometry are replaced by a zero.

@param geometry Input geometry
@param height   Desired height
@return Collection (floor, walls, ceiling)
@throws SQLException