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