// longitude
if (!isset ($lon) || !is_numeric ($lon) ||
($lon < -180) || ($lon > 180)) {
- throw new Exception ($this->err_lonlat_invalid);
+ throw new Exception (self::err_lonlat_invalid);
}
$this->lon = $lon;
// latitude
if (!isset ($lat) || !is_numeric ($lat) ||
($lat < -90) || ($lat > 90)) {
- throw new Exception ($this->err_lonlat_invalid);
+ throw new Exception (self::err_lonlat_invalid);
}
$this->lat = $lat;
}