| Line 4... |
Line 4... |
| 4 |
public $img = array();
|
4 |
public $img = array();
|
| 5 |
public function __construct($info) {
|
5 |
public function __construct($info) {
|
| 6 |
$this->info = $info;
|
6 |
$this->info = $info;
|
| 7 |
}
|
7 |
}
|
| 8 |
public function img() {
|
8 |
public function img() {
|
| 9 |
$qualite = 90;
|
9 |
$qualite = 9;
|
| 10 |
imagejpeg($this->img['cbnmed'], Config::get('cache.stockageChemin').$this->dest_map['cbnmed'], $qualite);
|
10 |
imagepng($this->img['cbnmed'], Config::get('cache.stockageChemin').$this->dest_map['cbnmed'], $qualite);
|
| 11 |
}
|
11 |
}
|
| 12 |
//+----------------------------------------------------------------------------------------------------------------+
|
12 |
//+----------------------------------------------------------------------------------------------------------------+
|
| 13 |
// Méthodes d'accès aux objets du Framework
|
13 |
// Méthodes d'accès aux objets du Framework
|
| 14 |
/**
|
14 |
/**
|
| 15 |
* Méthode de connection à la base de données sur demande.
|
15 |
* Méthode de connection à la base de données sur demande.
|
| Line 37... |
Line 37... |
| 37 |
}
|
37 |
}
|
| 38 |
public function initialiserImage() {
|
38 |
public function initialiserImage() {
|
| 39 |
// Nom du fichier image en sortie
|
39 |
// Nom du fichier image en sortie
|
| 40 |
$this->cheminCartesBase = Config::get('Cartes.chemin');
|
40 |
$this->cheminCartesBase = Config::get('Cartes.chemin');
|
| 41 |
$this->dest_map['cbnmed'] = 'cbnmed_nt'.$this->info['nt'].'_'.$this->info['src_map'];
|
41 |
$this->dest_map['cbnmed'] = 'cbnmed_nt'.$this->info['nt'].'_'.$this->info['src_map'];
|
| 42 |
$this->img['cbnmed'] = imagecreatefromjpeg($this->cheminCartesBase.$this->info['src_map']);
|
42 |
$this->img['cbnmed'] = imagecreatefrompng($this->cheminCartesBase.$this->info['src_map']);
|
| 43 |
}
|
43 |
}
|
| Line 44... |
Line 44... |
| 44 |
|
44 |
|
| 45 |
public function chargerDonnees() {
|
45 |
public function chargerDonnees() {
|
| 46 |
// Recherche nom correspondant au numero nomenclatural en cours (pour etablir le lien avec les donnees moissonnes).
|
46 |
// Recherche nom correspondant au numero nomenclatural en cours (pour etablir le lien avec les donnees moissonnes).
|