With the latest dev I always getting a division by zero issue on line 287... gps data works but it spams the console big time with errors.

Its part of the helper function for cords into decimal

/**
 * Helper function to change GPS co-ords into decimals.
 */
function _exif_DMS2D($value, $ref) {
  $parts = split('/', $value[0]);
  $dec = (float) ((float) $parts[0] /  (float) $parts[1]);

  $parts = split('/', $value[1]);
  $dec += (float) (((float) $parts[0] /  (float) $parts[1]) / 60);

  $parts = split('/', $value[2]);
  $dec += (float) (((float) $parts[0] /  (float) $parts[1]) / 3600);

  if ($ref == 'S' || $ref == 'W') $dec *= -1;
  return $dec;
}
  $dec += (float) (((float) $parts[0] /  (float) $parts[1]) / 3600);

is where the division by zero happens?

any ideas?

Comments

gateway69’s picture

Anyone? help....

jphautin’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Drupal 6 EOL