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
GPS Converting Error?
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: GPS Converting Error?
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
Thank you, Jan
If you find Phoca extensions useful, please support the project
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: GPS Converting Error?
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:
TO:
Thank you, Jan
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'];
} 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'];
} If you find Phoca extensions useful, please support the project
