Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 875 Rev 1035
Line 246... Line 246...
246
	
246
	
247
	private function transformerLignesEnPng($nomCouche) {
247
	private function transformerLignesEnPng($nomCouche) {
248
		$facteur = floatval($this->format) / floatval($this->largeur);
248
		$facteur = floatval($this->format) / floatval($this->largeur);
249
		$noeudCouche = $this->recupererNoeuds($nomCouche);
249
		$noeudCouche = $this->recupererNoeuds($nomCouche);
-
 
250
		$couleurContour = $noeudCouche->attributes->getNamedItem('stroke')->value;
250
		$couleurContour = $noeudCouche->attributes->getNamedItem('stroke')->value;
251
		$couleurContour = ($this->format >= 300 ? $couleurContour : "rgb(192,192,192)");
251
		for ($index = 0; $index < $noeudCouche->childNodes->length; $index ++) {
252
		for ($index = 0; $index < $noeudCouche->childNodes->length; $index ++) {
252
			$noeudLigne = $noeudCouche->childNodes->item($index);
253
			$noeudLigne = $noeudCouche->childNodes->item($index);
253
			for ($indexPath = 0; $indexPath < $noeudLigne->childNodes->length; $indexPath ++) {
254
			for ($indexPath = 0; $indexPath < $noeudLigne->childNodes->length; $indexPath ++) {
254
				$coordonneesSvg = $noeudLigne->childNodes->item($indexPath)->attributes->getNamedItem('points')->value;
255
				$coordonneesSvg = $noeudLigne->childNodes->item($indexPath)->attributes->getNamedItem('points')->value;