Page 1 of 1

GPS Converting Error?

Posted: 07 Feb 2010, 00:19
by xyladecor
Hi,

i am playing around with GPS-Data and your awesome Software, but i have a little problem: I am taking pictures with a Nokia N95 (sw version 35.0.002) and Nokia Location Tagger 1.0 Beta 3. In Picasa 3.1 (with Google Earth) and in Picasa Web-Albums all pictures are tagged correct. Then i am importing the files into a PhocaGallery 2.6.2 album and the location-icon is shown in the frontend. The problem is, the location is not shown correct, because the gps-data which is written in the database of PhocaGallery is not correct.

Data shown in Picasa Web-Albums:
Breite: 51.406514° N
Länge: 9.970886° O

Data in PhocaGallery Database:
Geotagging Längengrad: .970886
Geotagging Breitengrad: 51.406514

So it seems the vaue before the dot is missing.

I hope anybody can help me?
Regards Sebastian

Re: GPS Converting Error?

Posted: 08 Feb 2010, 19:58
by Jan
Hi, can you PM me your webalbum name (if this is public) and the image where this occurs, so I can test the getting information from geotagging string.

Thank you, Jan

Re: GPS Converting Error?

Posted: 09 Feb 2010, 12:03
by Jan
Hi, thank you for the PM.

This will be solved in the next version, for now you can fix it with the following modifications:

Go to:
administrator\components\com_phocagallery\models\phocagalleryc.php

line cca: 679

FROM:

Code: Select all

if (isset($value->{$OgeorssWhere}->{$OgmlPoint}->{$OgmlPos}->{$Ot})) {
$dataImg[$i]['latitude']    = substr($value->{$OgeorssWhere}->{$OgmlPoint}->{$OgmlPos}->{$Ot}, 0, 10);
$dataImg[$i]['longitude']    = substr($value->{$OgeorssWhere}->{$OgmlPoint}->{$OgmlPos}->{$Ot}, 11, 10);
$dataImg[$i]['zoom']        = 10;
//$data['geotitle']    = $data['title'];
} 
TO:

Code: Select all

if (isset($value->{$OgeorssWhere}->{$OgmlPoint}->{$OgmlPos}->{$Ot})) {
//$dataImg[$i]['latitude']    = substr($value->{$OgeorssWhere}->{$OgmlPoint}->{$OgmlPos}->{$Ot}, 0, 10);
//$dataImg[$i]['longitude']    = substr($value->{$OgeorssWhere}->{$OgmlPoint}->{$OgmlPos}->{$Ot}, 11, 10);
$geoArray = explode (' ', $value->{$OgeorssWhere}->{$OgmlPoint}->{$OgmlPos}->{$Ot});
if (isset($geoArray[0])) {
    $dataImg[$i]['latitude'] = $geoArray[0];
}
if (isset($geoArray[1])) {
    $dataImg[$i]['longitude'] = $geoArray[1];
}
$dataImg[$i]['zoom']        = 10;
//$data['geotitle']    = $data['title'];
} 
Thank you, Jan