code: public static GridCoverage2D buildCoverage( String name, double[][] dataMatrix, HashMap<String, Double> envelopeParams,
              CoordinateReferenceSystem crs, boolean matrixIsRowCol ) {
          WritableRaster writableRaster = createWritableRasterFromMatrix(dataMatrix, matrixIsRowCol);
          return buildCoverage(name, writableRaster, envelopeParams, crs);
      }
docs: Creates a {@link GridCoverage2D coverage} from a double[][] matrix and the necessary geographic Information.
  
  @param name the name of the coverage.
  @param dataMatrix the matrix containing the data.
  @param envelopeParams the map of boundary parameters.
  @param crs the {@link CoordinateReferenceSystem}.
  @param matrixIsRowCol a flag to tell if the matrix has rowCol or colRow order.
  @return the {@link GridCoverage2D coverage}.