List Info

Thread: kml export and gps interpolation bugfix




kml export and gps interpolation bugfix
country flaguser name
France
2007-03-29 05:03:46
Hi,

I finally found time to work again on the kmlexport. I use
QDom and merge it 
with gpssync plugin. It can now take a gpx file to create a
track with the 
pictures.
Next thing to implement is to give user the choice of the
track and picture 
style (color, width and elevation mode) but before going
further, I wanted to 
have your opinion on this plugin.

To create the track I had to add a lineString method to the
GPSDataParser 
class. The track created is time independent and cant be
clicked. If I want 
to be able to create a track which can be clicked (to get
information about 
to road taken between two picture for example) I have to
create a new set of 
points using time and localisation of each gpx point. I can
add this 
functionality to GPSDataParser class, but since it's more
kml function 
related than GPS data parsing, isn't it cleaner to create a
new class 
derivate from GPSDataParser to put all kml related method in
?


the diff file is here:
http://stpo.homelinux.org/data/gpssync-kmlexport.diff

the example file (for googleearth):
http://stpo.homelinux.org/data/kmltest/kmldocument.kml


the example file (for googlemaps):
http://stpo.homelinux.org/data/kmltest2/kmldocument.kml


When I checked the result on the map (see the examples) I
was wondering why to 
points where standing out of the track (img_5161_jpg.jpeg
and 
img_5168_jpg.jpeg). I found out that these two points where
interpolated and 
found out that the formula to interpolate points should be 
point1 + (point2-point1) * (time3-time1)/(time2-time1)
instead of 
point1 + (point2-point1) * (time2-time1)/(time3-time1)
after using the attached patch, the pictures where
interpolated correctly and 
get back to the track.

_______________________________________________
Kde-imaging mailing list
Kde-imagingkde.org
htt
ps://mail.kde.org/mailman/listinfo/kde-imaging

  
Re: kml export and gps interpolation bugfix
user name
2007-03-29 08:08:17


2007/3/29, Stéphane Pontier < shadow.wgmail.com">shadow.wgmail.com>:
Hi,

I finally found time to work again on the kmlexport. I use QDom and merge it
with gpssync plugin. It can now take a gpx file to create a track with the
pictures.


ok. I have checked your code (not tested, i'm busy right actually). It look fine for me...
&nbsp;

Next thing to implement is to give user the choice of the track and picture
style (color, width and elevation mode) but before going further, I wanted to
have your opinion on this plugin.

sure. It's better to post your patch and the comments into B.K.O, especially in this file :

http://bugs.kde.org/show_bug.cgi?id=139793

Important : these files sound like relevant of your patch :

http://bugs.kde.org/show_bug.cgi?id=135386
http://bugs.kde.org/show_bug.cgi?id=135387

If yes, tag these files like dupplicate of #139793, if no, just post a comment
 
Stephane, if you want to touch the real users of GPSSync plugin, i recommend you to use B.K.O instead mailing, because B.K.O file time live is infinte. Also comments posted to B.K.O are CC to mailing list...

To create the track I had to add a lineString method to the GPSDataParser
class. The track created is time independent and cant be clicked. If I want
to be able to create a track which can be clicked (to get information about
to road taken between two picture for example) I have to create a new set of
points using time and localisation of each gpx point. I can add this
functionality to GPSDataParser class, but since it's more kml function
related than GPS data parsing, isn't it cleaner to create a new class
derivate from GPSDataParser to put all kml related method in ?

yes, its better to derivate the class.
 

the diff file is here:
http://stpo.homelinux.org/data/gpssync-kmlexport.diff

the example file (for googleearth):
http://stpo.homelinux.org/data/kmltest/kmldocument.kml

the example file (for googlemaps):
http://stpo.homelinux.org/data/kmltest2/kmldocument.kml


When I checked the result on the map (see the examples) I was wondering why to
points where standing out of the track (img_5161_jpg.jpeg and
img_5168_jpg.jpeg). I found out that these two points where interpolated and
found out that the formula to interpolate points should be
point1 + (point2-point1) * (time3-time1)/(time2-time1)
instead of
point1 + (point2-point1) * (time2-time1)/(time3-time1)
after using the attached patch, the pictures where interpolated correctly and
get back to the track.

No idea as well. Need to test, and i busy now. Try to get comment in B.K.O with others users.

Gerhard, have you any ideas ?

Gilles

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )