From: Johannes Wolf (mp2100_at_mail-gw.estec.esa.int)
Date: Tue Apr 12 2005 - 08:06:35 PDT
I use MS Autoroute (shame on me) and I also take my GPS-mouse with me on
missions to connect it to my Laptop and have a navigation in the rental
car - very handy and saved me a lot of time and hassle so far.
There is only one backdraw: the refresh rate of the GPS position and
readings is really slow (about 3 sec! - regardless that the mouse receiver
can deliver data much faster) so that you can really miss a turn. But still,
3 sec later you will see...
But back to the Newt and GPS Map and NTLK:
if I read the code lines I get the slight suspicion that the function
MakePixFamily does N O T consider "Ojai_1.rsrc" to be the resource of
"Ojai1"...
I always used the very same name for the picture file except the .rsrc that
is added automatically from GC.
So this would read then "Ojai1.rsrc" and "Ojai1" to make it crystal clear
;-))
Correct me if I am wrong and I do not remember exactly WHY I put both into
the same directory, the PICT file AND the .rsrc file that is supposed to
contain the picture data as well, but it seems that OpenResFile reads the
resource ONLY while MakePixFamily is processing the real picture data.
So in theory it should work as well to put the "Ojai1.rsrc" as a parameter
for both functions, provided that the .rsrc contains the picture data as
well.
But if I open the .rsrc file with GC I do see the picture and the file size
is almost the same as for the PICT file.
HTH
Cheers
Johannes
> -----Original Message-----
> From: newtontalk-bounce_at_newtontalk.net
> [mailto:newtontalk-bounce_at_newtontalk.net]On Behalf Of Michael Briley
> Sent: Tuesday, April 12, 2005 4:07 PM
> To: newtontalk_at_newtontalk.net
> Subject: Re: [NTLK] Help with GPS MAP process (VERY,VERY LONG POST)
> Hi Ed (and everyone else!),
> To answer some questions:
> > What website are you using for maps? Are they
> > free or are you paying a subscription?
> I use the Route 66 USA 2004 application for both maps and
> coordinates. They've got it a amazon.com for $35 and it includes
> street level maps (plus coordinates) for the entire US and most of
> Canada. I think that's a bargain for 6.5 million streets! There's a
> version for Western Europe too.
> I can also stick my GPS card into the Powerbook and use it directly
> with Route 66.
> Code:
> > rf := OpenResFileX (Home & "Ojai_1.rsrc");
> > BMAP_1 := MakePixFamily (NIL,NIL,"Ojai1");
> > CloseResFileX (rf);
> Error:
> > Error in Map_Main.t, Map_Main.afterScript, line 22:
> > Couldn't open resource file (-43): "Macintosh
> > HD:Users:edwardjohnson:Documents:NewtonStuff:NewtonDev:Ojai1:
> > Ojai_1.rsrc"
> NTK is expecting your map file with the resource fork to be named
> "Ojai_1.rsrc" and the resource (0) to be named "Ojai1", all in the
> same directory as the NTK Map source. Given your earlier posts, I'm
> presuming this is indeed the case, but it's worth checking. I too use
> the same technique as Johannes (putting everything in the same
> directory).
> I use an older version of Photoshop for making my resource files. I
> actually keep a beat up 9500 lying around for this and other mostly
> Newton things that like serial ports and OS 9. But I think I remember
> something about Graphic Converter giving the resource the same name
> as the file, so perhaps it is in there as "Ojai_1", not "Ojai1". A
> way to check this would be to find an old copy of ResEdit (ah, the
> memories!) and use it to open the map resource file. It will tell you
> exactly what it is labeled (and give you another chance to see what
> it looks like). I'm also not sure about your using RLE compression in
> the Resource - but again, I just don't know.
> Finally be sure the PICT resource is 4-bit and not 8. To be honest, I
> tried Graphic Converter when I first started all this, but never got
> a map that worked from it (well, I did switch to Photoshop without
> giving it much of a chance though).
>
> I hope this helps some...
> Cheers,
> -Mike
-- This is the NewtonTalk list - http://www.newtontalk.net/ for all inquiries Official Newton FAQ: http://www.chuma.org/newton/faq/ WikiWikiNewt for all kinds of articles: http://tools.unna.org/wikiwikinewt/
This archive was generated by hypermail 2.1.5 : Tue Apr 12 2005 - 08:30:01 PDT