[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ gpsdrive ] top_ mapimage display problem
On 11/5/06, Ryan J. Earley <ryan.j.earley@gmail.com> wrote:
> On 11/5/06, Joerg Ostertag (gpsdrive Munich/Germany)
> <gpsdrive@ostertag.name> wrote:
> > On Sunday 05 November 2006 20:17, Ryan J. Earley wrote:
> > > Hi List,
> > >
> > > Has the way that map images with top_ and map_ prefixes been changed
> > > since ~June 2006?
> > >
> > > I have some topo maps imported from the terraservice WMS with the
> > > script i had posted. An old version of gpsdrive (2.09 as shipped by
> > > ubuntu) displays these pefectly, while a CVS version of the code does
> > > not.
> > >
> > > Both versions display a properly scaled version of a map_ file.
> >
> > Yes the code has changed: you can move the maps into a directory
> > under .gpsdrive/maps/ which ends with _map or _top
> > for more detail you can have a look at src/map_projection.c in the function
> > map_projection()
>
> I am still having problems with this...could someone please verify
> that top_ maps are working as they should in a new version of the
> code? at least then i will know it is a problem on my side of things.
>
> i have tried moving the maps and renaming the directories. i have
> also tried adding my own directory names into the hard-wired code in
> map_projections.c . so far, i keep having the same issue with the new
> version of gpsdrive not treating the topo-type maps correctly.
>
> I am having the same problem on both my linux box (ubuntu 6.10) and
> OSX with gpsdrive svn.
>
> thank you!
> -ryan
OK...i think i got it:
src/map_projection.c contains a function map_projection, which is a
series of the tests on the map filename, eg:
else if (!strstr (filename, "_top/"))
proj = proj_top;
else if (!strstr (filename, "top_")) // For Compatibility
proj = proj_top;
..etc
but shouldn't those actually be without a '!':
else if (strstr (filename, "_top/"))
proj = proj_top;
I haven't worked with C in a while, so could someone confirm that this
works for them and that it does not break anything deeper?
a svn diff between my modified code and the source tree is here:
http://turbidity.rutgers.edu/~ryan/gpsdrive_stuff/rje_map_projection_svn_diff_20061105.txt
thanks,
ryan
--
This message was part of the gpsdrive mailinglist
unsubscribing can be done by sending a mail containing a body of:
-quote--
unsubscribe gpsdrive
-unquote--
to majordomo@warbase.selwerd.nl