Subversion Repositories eFlore/Applications.cel

Rev

Rev 1143 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1143 Rev 1171
Line 15... Line 15...
15
	
15
	
16
	private static $pasCorrectionCentre = null;
16
	private static $pasCorrectionCentre = null;
17
	private static $coefficientReductionPas = null;	
17
	private static $coefficientReductionPas = null;	
Line 18... Line 18...
18
	private static $coefficientProfondeurMax = null;
18
	private static $coefficientProfondeurMax = null;
19
	
19
	
20
	private static $nbElements = array('stations' => 0,'communes' => 0, 'observations' => 0);
20
	private static $nbElements = array('stations' => 0,'communes' => 0, 'points' => 0);
21
	private static $listeNoeudsSelectionnes = array();	
21
	private static $listeNoeudsSelectionnes = array();	
22
	private static $bornesMax = array('latMin' => null, 'lngMin' => null, 'latMax' => null, 'lngMax' => null);
22
	private static $bornesMax = array('latMin' => null, 'lngMin' => null, 'latMax' => null, 'lngMax' => null);
23
	private static $id_traites = array();
23
	private static $id_traites = array();
Line 52... Line 52...
52
					$points = array($marker);
52
					$points = array($marker);
53
					$noeudSimple = array('points' => $points, 'nbrePoints' => 1);
53
					$noeudSimple = array('points' => $points, 'nbrePoints' => 1);
54
					self::$nbElements[$emplacement]++;
54
					self::$nbElements[$emplacement]++;
55
					self::$listeNoeudsSelectionnes[] = self::ajouterGroupeOuPoint($noeudSimple);
55
					self::$listeNoeudsSelectionnes[] = self::ajouterGroupeOuPoint($noeudSimple);
56
				}
56
				}
57
				self::$nbElements['observations']++;
57
				self::$nbElements['points']++;
58
			}
58
			}
59
		}
59
		}
60
		return self::$listeNoeudsSelectionnes;
60
		return self::$listeNoeudsSelectionnes;
61
	}
61
	}
Line 127... Line 127...
127
				self::mettreAJourBornes(&$point);
127
				self::mettreAJourBornes(&$point);
128
				$cadran = self::obtenirCadranPourPoint($latCentre, $lngCentre, $point);
128
				$cadran = self::obtenirCadranPourPoint($latCentre, $lngCentre, $point);
129
				self::ajouterFils($noeud,$cadran,$point);
129
				self::ajouterFils($noeud,$cadran,$point);
130
				self::$nbElements[$emplacement]++;
130
				self::$nbElements[$emplacement]++;
131
			}
131
			}
132
			self::$nbElements['observations']++;
132
			self::$nbElements['points']++;
133
		}
133
		}
Line 134... Line 134...
134
		
134
		
Line 135... Line 135...
135
		$profondeur++;
135
		$profondeur++;
Line 250... Line 250...
250
			$groupe = $noeud['points'][0];
250
			$groupe = $noeud['points'][0];
251
		}
251
		}
252
		return $groupe;
252
		return $groupe;
253
	}
253
	}
Line -... Line 254...
-
 
254
	
254
	
255
	
255
	private static function estUnParentFeuilles(&$noeud) {
256
	private static function estUnParentFeuilles(&$noeud) {
256
		return  self::estUneFeuille($noeud['A']) && 
257
		return  self::estUneFeuille($noeud['A']) && 
257
				self::estUneFeuille($noeud['B']) && 
258
				self::estUneFeuille($noeud['B']) && 
258
				self::estUneFeuille($noeud['C']) && 
259
				self::estUneFeuille($noeud['C']) &&