Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 257 → Rev 258

/trunk/src/org/tela_botanica/client/modeles/ListeEntiteGeographiqueObservation.java
42,13 → 42,13
{
if(ent[i] != null && ent[i] instanceof EntiteGeographiqueObservation)
{
this.put(ent[i].getIdLocation()+ent[i].getLieuDit(),ent[i]);
this.put(ent[i].hashCode()+"",ent[i]);
}
}
}
public void put(EntiteGeographiqueObservation value) {
this.put(value.getIdLocation()+value.getLieuDit(),value);
this.put(value.hashCode()+"",value);
}
}
/trunk/src/org/tela_botanica/client/modeles/ListeEntiteGeographiqueObservationAsynchroneDAO.java
89,8 → 89,9
String localite = ((JSONString) entites.get(0)).stringValue();
String commune = ((JSONString) entites.get(1)).stringValue();
String lieuDit = ((JSONString) entites.get(2)).stringValue();
String station = ((JSONString) entites.get(3)).stringValue();
EntiteGeographiqueObservation ent = new EntiteGeographiqueObservation(localite, commune, lieuDit);
EntiteGeographiqueObservation ent = new EntiteGeographiqueObservation(localite, commune, lieuDit, station);
listeEntiteGeographiqueObservation.put(ent);
}
}
/trunk/src/org/tela_botanica/client/modeles/InformationCommuneDAO.java
26,8 → 26,8
this.r = r;
}
 
public void obtenirCommunePlusProche(final Rafraichissable r, double lng,
double lat) {
public void obtenirCommunePlusProche(final Rafraichissable r, final double lng,
final double lat) {
 
String adresseAppel = Configuration.getServiceBaseUrl() + "/"
+ NOM_SERVICE + "/" + URL.encode("" + lat) + "/"
69,9 → 69,9
return;
}
Double lng = objetCommune.get("lng").isNumber()
Double newLng = objetCommune.get("lng").isNumber()
.doubleValue();
Double lat = objetCommune.get("lat").isNumber()
Double newLat = objetCommune.get("lat").isNumber()
.doubleValue();
String nomCommune = objetCommune.get(
"name").isString().stringValue();
79,7 → 79,7
String idLocalite = objetCommune.get(
"adminCode2").isString().stringValue();
Object[] infos = { lat, lng, idLocalite, nomCommune};
Object[] infos = { lat, lng, idLocalite, nomCommune, newLat, newLng};
r.rafraichir(infos, false);
}
96,6 → 96,8
codePostal = codePostal.replaceAll("000null", "*");
codePostal = codePostal.replaceAll("\"", "");
valeurCommune = valeurCommune.split(" \\([0-9][0-9]\\)")[0];
valeurCommune = valeurCommune.replaceAll("000null", "*");
valeurCommune = valeurCommune.replaceAll("\"", "");