Project

General

Profile

« Previous | Next » 

Revision d0ee1e7f

IDd0ee1e7f3b7e5ac4bd3c189a8690de3c85919887
Parent def96176
Child 83478686

Added by Jocelyn Dealande about 8 years ago

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

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences

Changesets

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
  }