Project

General

Profile

Revision d0ee1e7f

Added by Jocelyn Dealande over 10 years ago

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

View differences:

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
  }

Also available in: Unified diff