Subversion Repositories eFlore/Projets.eflore-projets

Rev

Rev 315 | Rev 362 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 315 Rev 320
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['general'], Config::get('cache.stockageChemin').$this->dest_map['general'], $qualite);
10
		imagepng($this->img['general'], Config::get('cache.stockageChemin').$this->dest_map['general'], $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 38... Line 38...
38
	
38
	
39
	public function initialiserImage() {
39
	public function initialiserImage() {
40
		// Nom du fichier image en sortie
40
		// Nom du fichier image en sortie
41
		$this->cheminCartesBase = Config::get('Cartes.chemin');
41
		$this->cheminCartesBase = Config::get('Cartes.chemin');
42
		$this->dest_map['general'] = 'nt'.$this->info['nt'].'_'.$this->info['src_map'];
42
		$this->dest_map['general'] = 'nt'.$this->info['nt'].'_'.$this->info['src_map'];
43
		$this->img['general'] = imagecreatefromjpeg($this->cheminCartesBase.$this->info['src_map']);
43
		$this->img['general'] = imagecreatefrompng($this->cheminCartesBase.$this->info['src_map']);
Line 44... Line 44...
44
	}
44
	}
45
	
45
	
Line 46... Line 46...
46
	
46
	
47
	public function chargerDonnees() {
47
	public function chargerDonnees() {
48
		// Recherche nom correspondant au numero nomenclatural en cours (pour etablir le lien avec les donnees moissonnes).
48
		// Recherche nom correspondant au numero nomenclatural en cours (pour etablir le lien avec les donnees moissonnes).
49
	
49
	
50
		// R�cuperation donn�e inventaire
50
		// Récuperation donnée inventaire
51
		/*
51
		/*