Projet

Général

Profil

« Précédent | Suivant » 

Révision d0ee1e7f

IDd0ee1e7f3b7e5ac4bd3c189a8690de3c85919887
Parent def96176
Enfant 83478686

Ajouté par Jocelyn Dealande il y a environ 9 ans

bugfixed inverted lon/lat parameters on RefPoint (+ added convenience ref_point->get_name())

Fichiers

  • ajouté
  • modifié
  • copié
  • renommé
  • supprimé

Voir les différences

Révisions

class/RefPoint.class.php
11 11

  
12 12
  public function __construct($name, $values) {
13 13
    $this->name = $name;
14
    $this->lon = $values[0];
15
    $this->lat = $values[1];
14
    $this->lat = $values[0];
15
    $this->lon = $values[1];
16 16
    $this->ele = $values[2];
17 17
  }
18 18

  
......
20 20
    return $this->lat;
21 21
  }
22 22

  
23
  public function get_name() {
24
    return $this->name;
25
  }
26

  
23 27
  public function get_lon() {
24 28
    return $this->lon;
25 29
  }