public static Geometry extractRoof(LineString lineString, double height) {
        LineString result = (LineString)lineString.copy();
        result.apply(new TranslateCoordinateSequenceFilter(height));
        return result;
    }
public static Geometry extractRoof ( LineString lineString , double height ) { LineString result = ( LineString ) lineString . copy ( ) ; result . apply ( new TranslateCoordinateSequenceFilter ( height ) ) ; return result ; }
Extract the linestring "roof".

@param lineString
@param height
@return