Re: [OSM-talk] JOSM update

2008-03-28 Thread Raphael Mack
Am Freitag, 28. März 2008 schrieb Steve Hill:
> On Fri, 28 Mar 2008, Steve Hill wrote:
> >> Are you saying every single arrow points the wrong way? Because that
> >> would be an easy fix to make ;-)
> >
> > Yes, seems to be the case :)
>
> To complicate things more, the direction arrows on data imported from a
> local GPX file are the right way around, so this problem is only
> affecting data being retrieved from the OSM server.

mh, I guess this cannot be fixed in josm, since the the server returns the 
stored gps points in arbitrary order. I would even suggest not to draw any 
direction arrows for gps data from the server.

Cheers,
Rapha

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


Re: [OSM-talk] JOSM update / why does API return GPS points in descending order?

2008-03-28 Thread Raphael Mack
Am Freitag, 28. März 2008 schrieb Frederik Ramm:
> Hi,
>
> > mh, I guess this cannot be fixed in josm, since the the server returns
> > the stored gps points in arbitrary order. I would even suggest not to
> > draw any direction arrows for gps data from the server.
>
> But they can't be too arbitrary since drawing lines in between the
> points would reveal a completely chaotic picture otherwise. I think
> David Earl is right about sorting by timestamp since this is what's in
> the API source:
>
> points = Tracepoint.find_by_area(min_lat, min_lon, max_lat, max_lon,
>
> :offset => offset, :limit => TRACEPOINTS_PER_PAGE, :order => "timestamp
>
> DESC" )
>
> ... and the "DESC" nicely explains the observation that all arrows are
> in the wrong direction! I wonder why it is there. TomH?

Oh, this sounds nice. I expected, that the timestamps are not even stored 
in the db, since they are not included in the delivered gpx. Maybe one 
could implement this, when touching the code to change to ascending 
order? - This would allow to split the track into track segments which 
would help to draw arrows only if the time difference is less than some 
threshold...

Rapha

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk