Announce : GPS / Google Earth module

nicroets

Joined: 2005-11-07
Posts: 28
Posted: Mon, 2005-11-07 21:02

I've written a module that nearly all GPSr owners will surely find very handy.

I've published most of the things you need to know at
http://codex.gallery2.org/index.php/Gallery2:Modules:Gps, and there is no need to duplicate it here.
I'll keep that wiki updated as long as I'm the maintainer of the module.

I'd like someone can help me to fix the bugs / make the module more robust. The biggest problem is that the Google Earth output is generated using a 'Controller', so main.php then adds some extra text to the end of the file and Google Earth does not like that. *fixed*

The other problem is that the Exif module generates the timestamps of the photos with the timezone of the server. There's code to change it to the timezone of the photographer, but I'm not sure that it will always work.

I see there's another module that works with Google Maps. I haven't looked at it because I don't use GM (bandwith and coverage issues). There are also too many posts for me to easily find out what's the module all about. So please tell me if this module is obsolete.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-11-08 00:16

cool :)
gotta install Google earth then to see it working :)

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Tue, 2005-11-08 00:31

Hmmm I have been working on getting a GPS module working for a long while now and have been adding feature to a first implementation by Steven N. Severinghaus.

It's now version 0.4 and has some basic features

I'll be happy to test out a google earth implementation as well but I haven't got a GPS device beside in my car :) Anyways, if you need help getting some work done. I'll be happy to :D
I'm gonna take a look at the code and give you a hand if I can :)

the other GPS module is here: http://gallery.menalto.com/node/32642

See you!

-------------------------
The Termite :-)

 
nicroets

Joined: 2005-11-07
Posts: 28
Posted: Tue, 2005-11-08 08:58

I've just installed the map module (0.4.0c). And I made the changes to the theme.

I can pick the location of a photo on the map. But when I go back to the normal view of the photo, there is no way to quickly go back to the map. Is there something wrong ? Both the Gallery and test.jpg has coordinates. http://www.rational.co.za/gallery2/main.php

I think the 2 modules should be compatible and not overlap. To do this, I'll need to know how 'map' stores and retrieves the location (and zoom level). Then 'gps' can fill it in when it processes the tracklog.

As soon as I'm done with the my to do list, the modules can merge.

 
djrm2
djrm2's picture

Joined: 2005-10-04
Posts: 54
Posted: Tue, 2005-11-08 10:18
nicroets wrote:
I've written a module that nearly all GPSr owners will surely find very handy.

I will certainly find it useful, it is just the kind of feature which I would like to see being incorporated into the GooglMap module.

When trying the GPS module it took me a while to figure the format needed for the timezone offsets - some instructions on the page would have been useful.

It would be very handy if gpsbabel could be included to run on the server so the user only has to upload the GPS tracklog in its native format.

I dont know how the module works but I expect it tries to match data/time with locatation, when it has a match then the location could be written back to the photo into its exif tags or custom properties.

hth Dave.

 
nicroets

Joined: 2005-11-07
Posts: 28
Posted: Tue, 2005-11-08 10:40

gpsbabel cannot become part of the standard module. It's in C and many PHP hosts does not allow access to the compiler.
--
Now that I've installed and played with the 'map' module, I'll change 'gps' to store the data in a compatible format.

 
nicroets

Joined: 2005-11-07
Posts: 28
Posted: Tue, 2005-11-08 12:51

It's done. The export function will now also set the 'GPS' field of all the photos. Then the photos appear on 'map.ShowMap'. Permissions are not checked ! Version number is still 0.1.0
--
I'm off to take some photos of Pretoria.

 
djrm2
djrm2's picture

Joined: 2005-10-04
Posts: 54
Posted: Tue, 2005-11-08 12:58

I am trying to use the gps module but first need to convert my track log. The instructions on the wiki suggest i that I use the gpsbabel custom conversion, yet I see no mention of this in the format supported. is it the gpsbabel arc filter file, I cant make it work with that. Please help, Dave.

edit I think you must mean custom CSV format, is that right? I still get no output coordinates in the php.

This is the problem, All my tracks are saved in Ozi .plt format. I need to convert them into the correct format for gps module but I cannot find settings which work. I have no problem using oziphototool. The generated php file imports into GoogleEarth with filename changed from .php to .kml it is just the location data missing.

Please show me an example of a correctly formatted track file to upload.

Regards, Dave.

 
nicroets

Joined: 2005-11-07
Posts: 28
Posted: Tue, 2005-11-08 14:24

It seems as if the GUI does not support the custom CSV file type. Type
gpsbabel.exe -t -i mapsource -f x.mps -o custom -F x.custom
from the command line

It's text and below is an example line. The module only uses the 3rd, 5th and 21st fields.

CONSTANT,2,-25.771250,S,28.302283,E,Flag,003,,,"",,1414.454834M,4640.543419F,25.771250/S,28.302283/E,S/25.771250,E/28.302283,-2147483648,1910066888,0,25569.000000

 
djrm2
djrm2's picture

Joined: 2005-10-04
Posts: 54
Posted: Tue, 2005-11-08 14:47

By my counting the 21st field in the example you gave is 0.
3rd is -25.771250,
5th is 28.302283,
I suppose it should be the time.
Dave

Using this incantation worked to convert my ozi plots
gpsbabel.exe -t -i ozi -f infile.plt -o custom -F outfile.txt
Thanks, Dave

 
nicroets

Joined: 2005-11-07
Posts: 28
Posted: Tue, 2005-11-08 14:58

Here's better one. It's the time in C's time() format.

CONSTANT,118,-25.774956,S,28.277736,E,,RPT020,RPT020,,"",,1370.015869M,4494.748063F,25.774956/S,28.277736/E,S/25.774956,E/28.277736,-2147483648,1910272808,1121003393,38543.576308

 
djrm2
djrm2's picture

Joined: 2005-10-04
Posts: 54
Posted: Tue, 2005-11-08 15:04

If I use gps module to export a goole earth file from ie everything is fine and a main.kml file is produced which can be directeley opened.
The same procedure from withinFirefox produces a main.php file, this needs to be renamed before opening with GooglEarth.

I tried the updated module but it bombed out giving errors instead of exporting anything, I'll try again and save the output, edit, This is the content of the export:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.0">
<Folder>
<name>test</name><br />
<b>Warning</b>: requireonce(/usr/share/gallery2/modules/core/classes/../../../modules/map/classes/mapHelper.class): failed to open stream: No such file or directory in <b>/usr/share/gallery2/modules/core/classes/GalleryCoreApi.class</b> on line <b>2505</b><br />
<br />
<b>Fatal error</b>: requireonce(): Failed opening required '/usr/share/gallery2/modules/core/classes/../../../modules/map/classes/mapHelper.class' (include_path='.:/usr/share/php:/usr/share/pear') in <b>/usr/share/gallery2/modules/core/classes/GalleryCoreApi.class</b> on line <b>2505</b><br />

The reason seems to be because there is no modules/map/classes/mapHelper.class file on my system
This is because I have not yet upgraded to V0.4.0c of the Google map module, I'll do it now.

I have now got GoogleMap module and GPS module working nicely togeather, thanks to all concerned.

All I want now is the ability to overlay the GPS track onto the map ...

Dave

 
nicroets

Joined: 2005-11-07
Posts: 28
Posted: Tue, 2005-11-08 15:24

The new version requires the 'map' module.

 
nicroets

Joined: 2005-11-07
Posts: 28
Posted: Tue, 2005-11-08 16:55

gpsbabel is supposed to be able to convert the track to GE format, but last time I tested this the results were disappointing. If it is still the case, I'm sure I can do a better job inside the gps module.

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Wed, 2005-11-09 00:11

Hello,

Just because I add some time in my hands I created a little icon that can be used for the -Export to GE- link :-)

You just need to put it in gallery2/modules/icons/iconpacks/nameofthepackyouuse/

and then in the same folder there, just edit icon.css and icon-rtl.css:

icon.css

.gbLink-gps_GoogleEarthAlbum {
  background: url(GoogleEarth.gif) left center no-repeat;
}

icon-rtl.css

.gbLink-gps_GoogleEarthAlbum {
  background: url(GoogleEarth.gif) right center no-repeat;
}

That's it ! :-)

-------------------------
The Termite :-)

 
nicroets

Joined: 2005-11-07
Posts: 28
Posted: Wed, 2005-11-09 21:30

I've tried it, but none of my icons work. I think you mean icons.css and icons-rtl.css
--
I've got a2b.cc to index my photos. See the wiki for details.

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Wed, 2005-11-09 21:45

O yeah I do mean those files with an "s" at the end. sorry about that :)

-------------------------
The Termite :-)

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Fri, 2005-11-11 00:35

Do you think it would make sense to merge the two module (map and gps) ? Or is that not really needed at this point ?

I guess they should be able to coexist nicely and ppl would have a complete GPS solution for Gallery without installing 2 modules ... Just a thought.

Also, I put a link to your module (it's great btw - lovin' it even without the GPS device) on the wiki that I started so that people can get this great feature as well

See you

-------------------------
The Termite :-)

 
nicroets

Joined: 2005-11-07
Posts: 28
Posted: Fri, 2005-11-11 07:12

I think it makes sense to merge the two because :
1. It's easier for gallery administrators to find, install, learn and upgrade one module.
2. It's easier for developers if the code is all the code in one place. Then they don't need to choose where to put new features.

List of changes needed to 'gps' module:
1. In 'getItemLinks' : Only show the 'Export to GE' link if 'EXIF' is installed. That way the merged module can be installed without EXIF.
2. Clean up : Remove unused functions 'getAdminViews' and 'getSiteAdminViews'. Place class GeourlTemplateAdapter in it's own in it's own file.

I added everything to 'gps' that I wanted to.

 
nicroets

Joined: 2005-11-07
Posts: 28
Posted: Sat, 2005-11-12 14:09

OK. I'd most of the clean up. The geourl-tags code is now Gallery2 compliant. So I upped the version to 0.2.0

I can't wait to go on a long trip to see how things work out !

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Sat, 2005-11-12 15:37

Lol I know how you feel :) I want to go on many trips as well :)

I'm gonna be working on integrating the two today or tomorrow and make a new release of the "map-gps" module

thx :D
-------------------------
The Termite :-)

 
nicroets

Joined: 2005-11-07
Posts: 28
Posted: Sat, 2005-11-12 20:33

I removed the unused GeourlTemplateAdapter class (+glue) and changed the Google Earth code to output camera icons which are slightly more appropriate (<Style>,<StyleUrl> and <IconStyle> tags).

What I did today : http://bbs.keyhole.com/ubb/showflat.php/Cat/0/Number/27572/an//page//vc/1

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Fri, 2005-11-18 16:05

Hello Nic,

I have achieve the integration of the GPS mmodule into the map module. It actually wasn't very difficult and it stays pretty independant.
When you install the map module version 0.4.4 you now have the GPS module 0.2 with it :-)

I don't have a tracklog file to try it out so I hope it works fine :)

-------------------------
The Termite :-)

 
nicroets

Joined: 2005-11-07
Posts: 28
Posted: Fri, 2005-11-18 21:46

I've tested everything except the pings to geourl / a2b.cc. Looks good !

I have 119 photos on my default map (total of 180 with coordinates) so the markers take some time to load. I cann't figure out why it takes so long.

http://www.rational.co.za/gallery2/main.php?g2_view=map.ShowMap

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Fri, 2005-11-18 23:39
nicroets wrote:
I've tested everything except the pings to geourl / a2b.cc. Looks good !

I have 119 photos on my default map (total of 180 with coordinates) so the markers take some time to load. I cann't figure out why it takes so long.

http://www.rational.co.za/gallery2/main.php?g2_view=map.ShowMap

If you are using IE, it's normal. A dude in the dev team has added a fix for the tranparency that helps IE displaying PNG correctly but for some reason it's extremely slow ....
We are trying to look for another alternative :)

 
nicroets

Joined: 2005-11-07
Posts: 28
Posted: Mon, 2005-11-28 22:38
 
nicroets

Joined: 2005-11-07
Posts: 28
Posted: Thu, 2005-12-15 05:29

Google Earth has updated their database and any member of the public who looks at Pretoria with the Google Earth Community and / or Unranked layer enabled will see them.

Unfortunely, Google changed all the '&' into '&amp;' somewhere along the process and Gallery does not expect this. I patched my Gallery installation to cope :

In modules/core/classes/GalleryUtilities.class near line 931 I added 5 lines (indicted with +) :
function _getRequestVariable($key) {
$keyPath = preg_split('/[\[\]]/', $key, -1, PREG_SPLIT_NO_EMPTY);
$result = GalleryUtilities::_internalGetRequestVariable($keyPath, $_GET
if (isset($result)) {
return $result;
}
+ $keyPath = preg_split('/[\[\]]/', 'amp;' . $key, -1, PREG_SPLIT_NO_EMPT
+ $result = GalleryUtilities::_internalGetRequestVariable($keyPath, $_GET
+ if (isset($result)) {
+ return $result;
+ }
return GalleryUtilities::_internalGetRequestVariable($keyPath, $_POST);
}

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Thu, 2005-12-15 14:04
nicroets wrote:
Google Earth has updated their database and any member of the public who looks at Pretoria with the Google Earth Community and / or Unranked layer enabled will see them.

Unfortunely, Google changed all the '&' into '&amp;' somewhere along the process and Gallery does not expect this. I patched my Gallery installation to cope :

In modules/core/classes/GalleryUtilities.class near line 931 I added 5 lines (indicted with +) :
function _getRequestVariable($key) {
$keyPath = preg_split('/[\[\]]/', $key, -1, PREG_SPLIT_NO_EMPTY);
$result = GalleryUtilities::_internalGetRequestVariable($keyPath, $_GET
if (isset($result)) {
return $result;
}
+ $keyPath = preg_split('/[\[\]]/', 'amp;' . $key, -1, PREG_SPLIT_NO_EMPT
+ $result = GalleryUtilities::_internalGetRequestVariable($keyPath, $_GET
+ if (isset($result)) {
+ return $result;
+ }
return GalleryUtilities::_internalGetRequestVariable($keyPath, $_POST);
}

hello,
Can you explain a little more what are the inpact of the change ? I'm not understanding the problem (pardon my poor english here)

I'd like to see if I need this change also :)

 
nicroets

Joined: 2005-11-07
Posts: 28
Posted: Thu, 2005-12-15 17:27

Ok. If you view the earth with Google Earth, you will see lots of "Placemarks" or waypoints. Some of them were extracted from posts made at bbs.keyhole.com. The last time this extraction happened was on 13 December. If you click on one of the placemarks made with my software, you will see a link to the post, as well as a placeholder for a thumbnail.

Let's ignore the first problem, namely that the thumbnail does not load, and concentrate on what happens that when you click on the thumbnail. You would expect your webbrowser to open and go to the correct gallery photo. But instead the URL contains an extra 'amp;' after the '&'. This was added during the extraction process and the original posting still works perfectly. I've posted a bug report on the bbs, so it should not happen during the next extraction which should be in January.

In the mean time I changed my gallery installation to be a bit more forgiving. I looked at my weblog and saw that Google Earth is not the only sinner. Since not properly written application will have a variable name that starts with 'amp;', there are IMHO only benefits in removing any additional 'amp;'s from a URL.

PS: It should be
$keyPath = preg_split('/[\[\]]/', $key, -1, PREG_SPLIT_NO_EMPTY);
$result = GalleryUtilities::_internalGetRequestVariable($keyPath, $_GET);
if (isset($result)) {
return $result;
}
+ $ampkeyPath = preg_split('/[\[\]]/', 'amp;' . $key, -1, PREG_SPLIT_NO_EMPTY);
+ $result = GalleryUtilities::_internalGetRequestVariable($ampkeyPath, $_GET);
+ if (isset($result)) {
+ return $result;
+ }
return GalleryUtilities::_internalGetRequestVariable($keyPath, $_POST);

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Thu, 2005-12-15 17:47

Thanks for the clarification, It all makes sense now :-)

I will refer this post in the other thread so that user's can change their gallery as well to get that fixed up :-)

Thanks again
-------------------------
The Termite :-)

 
briefnotion

Joined: 2006-06-02
Posts: 2
Posted: Fri, 2006-06-02 21:23

I created a GPSR program that creates a live path in Google Earth here, http://briefnotion.250free.com/ Time stamp info is not being record in the KML but in the the nmea data file. Would it help if I place timestamp info in the kml file?

 
nicroets

Joined: 2005-11-07
Posts: 28
Posted: Sat, 2006-06-03 06:46

I'd say yes. It's always a good idea to record as much information as possible.

Note however that the gallery module discussed here does not read kml files. It only reads the 'custom' format created by gpsbabel.org. It's a comma seperated text format, so changing your software to output it will as easy as writing 5 lines of code.

--
I'm pleased how well my photo map of South Africa is progressing. I already visited most of the historic sites in Pretoria, Durban and George, and I have many photos of wildlife including big five, waterfalls etc.
All I need now is to go to Capte Town.

 
briefnotion

Joined: 2006-06-02
Posts: 2
Posted: Sat, 2006-06-03 16:33

I took a good look at the custom fields generated by gpsbabel. The format seems simple enough: two header lines, CONSTANT, index, Lat, Lon, Lat ,Lon, more info, ... ALT and such. The fields at the end of line is unknown and so is a few in the middle. CommTest2 could easly output most of the data into a seperate log file, while running.

Its just that I wasn't successful at installing Gallery/Google Earth Module, no web server up and running, so testing here wouldnt be possible. I would be glad to generate the code if you think is would be useful. I cant test the data though.

 
nicroets

Joined: 2005-11-07
Posts: 28
Posted: Sun, 2006-06-04 12:31

I can give you an account on my gallery installation for testing purposed. Or you can send me the data. Just mail me at

Perhaps you should explain what you want to achieve. If your photo collection is private, you can create a kml file with references to your harddrive. Such a kml file can be created with a patched version of gpsbabel (see the wiki mentioned earlier). That version of gpsbabel should be able to read nmea data file, if I'm not mistaken.

 
eye1marie

Joined: 2006-05-21
Posts: 13
Posted: Tue, 2006-08-29 14:57
nicroets wrote:
Ok. If you view the earth with Google Earth, you will see lots of "Placemarks" or wayoints. Some of them were extracted from posts made at bbs.keyhole.com. The last time this extraction happened was on 13 December. If you click on one of the placemarks made with my software, you will see a link to the post, as well as a placeholder for a thumbnail.

Let's ignore the first problem, namely that the thumbnail does not load, and concentrate on what happens that when you click on the thumbnail. You would expect your webbrowser to open and go to the correct gallery photo. But instead the URL contains an extra 'amp;' after the '&'. This was added during the extraction process and the original posting still works perfectly. I've posted a bug report on the bbs, so it should not happen during the next extraction which should be in January.

In the mean time I changed my gallery installation to be a bit more forgiving. I looked at my weblog and saw that Google Earth is not the only sinner. Since not properly written application will have a variable name that starts with 'amp;', there are IMHO only benefits in removing any additional 'amp;'s from a URL.

PS: It should be
$keyPath = preg_split('/[\[\]]/', $key, -1, PREG_SPLIT_NO_EMPTY);
$result = GalleryUtilities::_internalGetRequestVariable($keyPath, $_GET);
if (isset($result)) {
return $result;
}
+ $ampkeyPath = preg_split('/[\[\]]/', 'amp;' . $key, -1, PREG_SPLIT_NO_EMPTY);
+ $result = GalleryUtilities::_internalGetRequestVariable($ampkeyPath, $_GET);
+ if (isset($result)) {
+ return $result;
+ }
return GalleryUtilities::_internalGetRequestVariable($keyPath, $_POST);

Very handy information to combine it with Google Earth. A client of my wanted that too, but i told him he couldnt... so things change now. Damn i love this forum!

 
swissphoenix

Joined: 2004-09-10
Posts: 12
Posted: Thu, 2007-03-22 23:04

are there any news about this modul

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Fri, 2007-03-23 02:48

The functionality of this module is part of the Google Maps module now and some improvement are being made for an upcoming release.

See you !
-------------------------

The Termite - :-) - http://www.termitenshort.com/

 
caddymob
caddymob's picture

Joined: 2007-01-30
Posts: 82
Posted: Sat, 2007-03-24 08:33

Hmmm, doesn't seem to work for me... I have just upgraded to Gallery 2.2 -

Gallery version = 2.2 core 1.2.0
PHP version = 4.4.4 cgi
Webserver = Apache/1.3.33 (Unix)
Database = mysql 4.0.27-standard-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, NetPBM, SquareThumb, Thumbnail, Gd, LinkItemToolkit
Acceleration = none, none
Operating system = Linux infong 2.4 #1 SMP Thu Jan 13 08:59:31 CET 2005 i686 unknown
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3
Rows in GalleryAccessMap table = 63
Rows in GalleryAccessSubscriberMap table = 1146
Rows in GalleryUser table = 4
Rows in GalleryItem table = 1136
Rows in GalleryAlbumItem table = 12
Rows in GalleryCacheMap table = 0

Anyway, I looked at the gpsbabel output and it seems to have converted my tracklog correctly- here is the top of the converted file: (full file attached, but changed extension to .txt so it would upload)

<?xml version="1.0" encoding="UTF-8"?>
<gpx
version="1.0"
creator="GPSBabel - http://www.gpsbabel.org"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.topografix.com/GPX/1/0"
xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd">
<time>2007-03-23T01:56:35Z</time>
<bounds minlat="33.524283981" minlon="-111.314108977" maxlat="33.537624031" maxlon="-111.300164005"/>
<trk>
<name>ACTIVE LOG153527</name>
<trkseg>
<trkpt lat="33.533134013" lon="-111.314016022">
<ele>874.333000</ele>
<time>2007-03-10T22:35:21Z</time>
</trkpt>
</trkseg>
</trk>
<trk>
.
.
.

When I do the 'Export to GE' - GoogleEarth (Plus, v4.0.2722) opens and shows nothing. When I look at the EXIF data for the photos, no coordinates. Am I doing something wrong here? Would love to get this working, any help would be much appreciated!!

J

 
nicroets

Joined: 2005-11-07
Posts: 28
Posted: Sat, 2007-03-24 11:56

The module, as I wrote it, only accepted the tracklog in the "custom" format, which is a CSV format with 22 odd columns. (see the wiki)

Your file is in GPX format, which has become quite popular, but not supported by the module I wrote.

 
nicroets

Joined: 2005-11-07
Posts: 28
Posted: Sat, 2007-03-24 12:02

The module, as I wrote it, only accepted the tracklog in the "custom" format, which is a CSV format with 22 odd columns. (see the wiki)

Your file is in GPX format, which has become quite popular, but not supported by the module I wrote.

 
nicroets

Joined: 2005-11-07
Posts: 28
Posted: Sat, 2007-03-24 12:09

The module, as I wrote it, only accepted the tracklog in the "custom" format, which is a CSV format with 22 odd columns. (see the wiki)

Your file is in GPX format, which has become quite popular, but not supported by the module I wrote.

 
nicroets

Joined: 2005-11-07
Posts: 28
Posted: Sat, 2007-03-24 12:13

The module, as I wrote it, only accepted the tracklog in the "custom" format, which is a CSV format with 22 odd columns. (see the wiki)

Your file is in GPX format, which has become quite popular, but not supported by the module I wrote.

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Sat, 2007-03-24 17:53

And the module that nicroets wrote wasn't modified much yet ... so it would probably only support that format still :-)

GPX format support is something we're envisionning for the map module soon but not for the next release.

-------------------------
The Termite - :-) - http://www.termitenshort.com/

 
caddymob
caddymob's picture

Joined: 2007-01-30
Posts: 82
Posted: Sat, 2007-03-24 19:42

OOOOOPS!!! I attached the wrong version, my apologies guys! So, attached is the real 'custom' version, and I still have the same problem- It does nothing when I export to GoogleEarth. I looked at the main.php.kml file and it is 194 KB. I have attached it as well as the real fish.custom. Again, I have added a .txt extension so that I could upload.

Again, thanks for your help~

 
nicroets

Joined: 2005-11-07
Posts: 28
Posted: Sat, 2007-03-24 21:06

The main.php.kml is supposed to contain one placemark for each photo in the ALBUM. But since it's empty it means that you either ran the export on an empty album or the module wasn't able to extract the data it needs (i.e. the timestamp, the thumbnail location and the photo location) from any of them.

 
caddymob
caddymob's picture

Joined: 2007-01-30
Posts: 82
Posted: Sun, 2007-03-25 00:28

Guys, I just cannot get this to work, and I don't know why. I just did a test walking around my house, shooting photos, GPS in hand. I took pics of my GPS to show that indeed the times are sync'd. The photos are on my gallery at:

http://corneveaux.com/gallery2/v/GPS_TEST/

When I do Export to GoogleEarth, I get the same result, an empty main.php.kml file.

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.0">
<Folder>
<name>GPSr Module Test</name>
</Folder></kml>

I will again attach the .custom GPS tracks with a .txt extension.

I really appreciate your help on this. If this works, it will be one of the coolest gizmos out there.

 
nicroets

Joined: 2005-11-07
Posts: 28
Posted: Sun, 2007-03-25 21:18

I downloaded your files and uploaded them onto my own server at http://www.rational.co.za/gallery2/main.php?g2_view=core.ShowItem&g2_itemId=2590
My server generated the attached file which looks OK.

I'll just mention that your server is configured to use short URLs and I haven't tested that configuration.

 
caddymob
caddymob's picture

Joined: 2007-01-30
Posts: 82
Posted: Sun, 2007-03-25 22:18

Nic-- Thanks so much for looking into this!! I think I have found a work around that will solve this for me, but I'd like to provide you with some more information in case it is beneficial to you and the module.

I have attached a google earth screen shot that compares your main.kml coordinates to the ones generated for the same photos/tracks using WWMX and picasa. As you can see, your file shows the pics at basically the same location, while the WWMX/Picasa shows more precisely where the photos were taken. I am sure if I had more of a distance on my test your script would resolve this-- not a big deal, but thought you might like to see..

I actually really like the WWMX tool because it geotags my photos before I upload them and does so from the original GPS tracklog (using .GPX format)--- no gpsbable needed. Gpsbable is a great tool, but I wonder if you loose fidelity when making conversions?

I have also attached the Picasa generated .KMZ file so you can see the coordinates it called-- they are indeed correct, or very very close to correct. I'm sure if I further synched my GPS and Camera times, it would be even better.

Anyway, let me know if you need more information.... Now I need to get the EXIF stuff to be reconized in Gallery2.2 ...

J

 
nicroets

Joined: 2005-11-07
Posts: 28
Posted: Sun, 2007-03-25 23:47

I redid the export with -7:00 and got exactly the same result as picasa (attached).

Regarding fidelity : The error when converting between GPX, custom and geotags is very small compared to the error in the original GPS signal.

(After playing with this software) -> Zanzibar ! Soon ! Cool !

 
caddymob
caddymob's picture

Joined: 2007-01-30
Posts: 82
Posted: Mon, 2007-03-26 00:05

Awesome! So then, my problem is short URLs - (I have been doing -7:00)? Anyway to make the GPSr module allow them?

And what is this Zanzibar? Can you provide a link?? I couldn't find it, whatever it is....

 
caddymob
caddymob's picture

Joined: 2007-01-30
Posts: 82
Posted: Mon, 2007-03-26 00:17

Well, is it short URLs? I just deactivated them, created a new album, uploaded the original pics, custom track log, and again got a blank main.php.kml -- Is it something with gallery2.2 ? Are you using that? Maybe the google maps module? I have 0.5.1d.