Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 89 Rev 140
Line 50... Line 50...
50
	
50
	
Line 51... Line 51...
51
	public final void obtenirListeEntitesGeographiques(final Rafraichissable r, final String utilisateur) {
51
	public final void obtenirListeEntitesGeographiques(final Rafraichissable r, final String utilisateur) {
Line 52... Line 52...
52
		
52
		
Line 53... Line 53...
53
		
53
		
Line 84... Line 84...
84
						listeEntiteGeographiqueObservation = new ListeEntiteGeographiqueObservation(taillemax);
84
						listeEntiteGeographiqueObservation = new ListeEntiteGeographiqueObservation(taillemax);
Line 85... Line 85...
85
						
85
						
86
						for (int i = 0; i < taillemax; i++) {
86
						for (int i = 0; i < taillemax; i++) {
Line 87... Line 87...
87
							if ((entites = reponse.get(i).isArray()) != null) {
87
							if ((entites = reponse.get(i).isArray()) != null) {
88
								
88
								
89
								String entite = ((JSONString) entites.get(0)).stringValue();
89
								String localite = ((JSONString) entites.get(0)).stringValue();
Line 90... Line -...
90
								String idEntite  = ((JSONString) entites.get(1)).stringValue();
-
 
91
								String idParent  = ((JSONString) entites.get(2)).stringValue();
90
								String commune  = ((JSONString) entites.get(1)).stringValue();
92
								
-
 
93
								
91
								String lieuDit  = ((JSONString) entites.get(2)).stringValue();
94
								EntiteGeographiqueObservation ent = new EntiteGeographiqueObservation(entite, idEntite, idParent);
-
 
95
				
92
								
96
								listeEntiteGeographiqueObservation.put(ent.getLocation() + ent.getLieuDit(), ent);
93
								EntiteGeographiqueObservation ent = new EntiteGeographiqueObservation(localite, commune, lieuDit);
97
										
94
								listeEntiteGeographiqueObservation.put(ent);
Line 98... Line 95...
98
							}	
95
							}