Jump to content

Waypoint conversion program


Huga

Recommended Posts

I've just managed to decipher (mostly) the rather nasty Garmin Mapsource file format, and have written a rought and dirty conversion utility to convert .LOC files downloadable from the GC.com website directly to Mapsource 4 .mps files.

 

Those with Garmin units and Mapsource are no doubt aware of the pain involved in uploading the .loc files to the GPS, then back down to Mapsource.

 

My program will take multiple .loc files, either those downlaoded from individual pages, or those generated as pocket queries, and merge them into a single .mps file. Overlapping .loc files are handled too (it renames duplicate waypoints, so they can be easily deleted from Mapsource.

 

If anyone wants a copy of the utility (or information about the .mps file format), let me know, and I'll send it all to ya.

 

--

**Mother is the name of God on the lips of all children**

Link to comment

Excellent! I'd been meaning to do this myself, but I hadn't gotten around to it yet. Now I needn't bother!

 

In other words, yes, I'd love a copy.

 

###################################################

Hp, ura'y yphy aukn, ypn duwn bw ypn khvfluctn glnrucnay ur qurruat ypn kbm bw ypn Bmwblc klnd. - Phllz Khlgnaynl

Link to comment

quote:
Originally posted by Huga:

 

If anyone wants a copy of the utility (or information about the .mps file format), let me know, and I'll send it all to ya.

 


 

Yes, please.

I'd love to be able to do stuff like that myself but the last time I did any serious coding, it was in Z80 assembler to run under CPM icon_frown.gif

 

John

__________________________________________________________

 

The Team... A group of people who, individually, can do nothing but collectively.. decide that nothing can be done. icon_wink.gif

Link to comment

Well, Pharisee can have it, but SimonG has to decipher a series of fiendish clues to slowly track down the program, culminating in a mammoth expenditure of effort! Buwahahahahahahaha! icon_cool.gif

 

Seriously, anyone that wants it, email me:

ian at iancowley.co.uk

and I'll email the program back to you.

 

It's only 30k at the moment ('cos it's about as simple as programs get), but I plan to make it bigger and better, with .loc merging, .mps merging and .mps to .loc conversion.

 

Watch this space!

 

--

**Mother is the name of God on the lips of all children**

Link to comment

Hi Huga,

 

Are you aware of GPSBabel? This tool can convert from multi formats to multi formats, including Mapsource.

It's commandline drive, but a GUI is also available.

 

For the syntax check this page.

 

I do not use Mapsource and did not compare your tool with GPSBabel. I just want to make sure you are aware of it if you are reinventing the wheel.

 

Good luck with your developments!

 

BigBird icon_smile.gif

 

-- there is no spoon --

Link to comment

I would be greatly interested in your utility Huga.

I tried out GPSbabel and could not get it to run properly, maybe the download was corrupt?

 

Any utility that saves having to download to the gps and upload to mapsource has to be a winner.

 

Cheers and a very merry Christmas.

Chris

The Merman

 

I woke this morning and my boat was not rocking...for one horrid moment I thought I lived in a house!

Link to comment

quote:
Originally posted by The Merman:

I would be greatly interested in your utility Huga.


I know that Huga's PCless over Christmas, so I'll reply instead. You can get his program here.

 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Dzm Agslpewjp Mum L gmjsf j zdlpm dz egm sddi.

"Wqwwt, lp egje pzdo?"

"Zd, le'p cqpe sjlz fmjs."

Link to comment

Just in case you're wondering - the link to Huga's EasyMPS won't be working for a few days. It'll appear at the same time as he does; daresay you'll know about it then.

 

Talking of wheels and reinventing, I presume Teasel knows something of the MPS format, because the old GeocacheUK stats pages could produce MPS format waypoints (which is how I got them into the Garmin), so maybe another resource to pool?

 

--

Seek and ye shall find (tupperware, ammo boxes, bears, free ISP CDs...)

Link to comment

Right, i was away (caching in Wilts) over xmas, so apologies to all those who tried to download EasyMPS.

 

I'll make a couple of mods, add some featrues people have asked for, and post a new link for it. I think the previously advertised link will work, but I'll get a more long-lived URl for y'all.

 

Wheee! It's 2003!

 

--

**Mother is the name of God on the lips of all children**

Link to comment

What's over your head - the need to convert between LOC and MPS or the way to download the program?

 

If it's the former, it's because many of us like to use Garmin's Mapsource to manipulate waypoints, display maps and communicate with the GPS.

 

However, geocaching.com only provides .LOC files which Mapsource can't handle. The traditional way to deal with this is to use EasyGPS (I think) to send the LOC format to the GPSr, then load it back into Mapsource from the GPSr. Save et voila - an MPS file.

 

Huga's EasyMPS does this conversion for you - much easier.

 

Sam

 

--

Seek and ye shall find (tupperware, ammo boxes, bears, free ISP CDs...)

Link to comment

Geobuddy is not the same deal as easyMPS.

EasyMPS does what it says on the can!

You download .loc files from GC and then open them in easyMPS hit one button and bingo! You have .mps file to open in mapsource software. I can't think of an easier utility to do the conversion.

 

I had a few minor bugs and Ian emailed me straight back with the fixes. Thanks Huga for a great little utility that cuts out the ****! icon_wink.gif

 

I woke this morning and my boat was not rocking...for one horrid moment I thought I lived in a house!

Link to comment

Information about the Mapsource file format is strictly copyright me 2003. icon_razz.gif

 

It's quite complicated - if you want it, email me, and I'll let ya know icon_smile.gif

 

Oh, BTW guys: Some people are having ActiveX issues with EasyMPS 0.3.39 - I think this is related to msxml2.dll and its registration. Rest assured I am desperately trying to solve the issue, and will keep you updated. Most people are not reporting problems, but some are...it's all a bit of a gamble!

 

And there's no real snow in Cambridge icon_frown.gif

 

--

**Mother is the name of God on the lips of all children**

Link to comment

Nice one Huga, that saves a *lot* of hassle (or am I just getting lazy? I can't be: I'm a geocacher!). I look forward to any updates you may wish to add. I'm still getting the hang of it (only downloaded it 10 minutes ago!) but if I think of anything you might find interesting I'll let ya know.

 

It's a tradition, or an old charter or something...

Link to comment

Martin Jarvis found that by installing Microsoft's XML Parser the program works.

 

Because the program works here (with WinXP and IE6) I kinda assumed it'd work everywhere. You computer needs MS's XML parser, which most computers do, but some don't. It's a useful thing to have anyway icon_smile.gif

 

--

**Mother is the name of God on the lips of all children**

Link to comment

As someone pointed out to me. Now If we can get the cache description in the waypoint properties, then it would be complete. This would eliminate the need for PDA caching epecially for people like me "one who was going to buy a PDA for caching".

Just a thought! I know nothing about what you guys are cooking up.

Link to comment

By 'cache description' do you mean the whole page of info? Could be hard to get in, especially since Mapsource only allows 256 characters for the long description of the cache (I think), and at present there seems to be no way to get them off the site.

 

icon_frown.gif

 

--

**Mother is the name of God on the lips of all children**

Link to comment

quote:
Originally posted by Huga:

... and at present there seems to be no way to get them off the site.


Huh? Its all in the GPX file that you get from a Pocket Query.

 

The only thing I can't get out of a GPX file that I really want, is the "goal" of the travel bugs that are in a cache.

 

Lil Devil lildevil.gif

Link to comment

For those bored of version 0.3.39, or just fancy a complete revamp of the UI, download version 0.31 build 41 from http://caching.iancowley.co.uk.

Be sure to keep a copy of 0.3 build 39 in case you don't like 0.31!

 

I shall be putting old versions for download on the site so people that don't like the newer versions can get the old ones again.

 

As to GPX files - I just got a pocket query generated to see what info I can nobble. The only thing they have extra to the .loc files is the type and difficulty of the cche, which will be added to the description anyway by EasyMPS....

 

--

**Mother is the name of God on the lips of all children**

 

[This message was edited by Huga on January 09, 2003 at 11:48 AM.]

Link to comment

Just to let y'all know that the latest version of EasyMPS (0.32.55) has a button to open the imported waypoints in Mapsource.

It creates a file in your temp direcotry, and opens it for ya, so there's no need to save to a .mps and then open it in Mapsource if you're planning on going straight to it icon_smile.gif

 

If all this incessant posting is annoying anyone, I'll stop, but I like it in this thread, it's all cosy....

 

http://caching.iancowley.co.uk as ever

 

--

**Mother is the name of God on the lips of all children**

Link to comment

quote:
Originally posted by Huga:

If all this incessant posting is annoying anyone, I'll stop, but I like it in this thread, it's all cosy....


Not at all Huga - keep posting. I am enjoying keeping track of all the new versions.

Do you work for Microsoft? icon_wink.gif

 

Rich

mobilis in mobili

Link to comment

Which is possibly worse.

 

No, I don't work for Microsoft, I just like to let people have new featuers as quickly as possible.

 

Anyone got any suggestions? I'm running out of ideas...

 

--

**Mother is the name of God on the lips of all children**

Link to comment

EasyMPS Version 0.35 (build 75) is now available for all at http://caching.iancowley.co.uk for all and sundry to download.

 

New features: Command line scripting support!

 

/m flag to export to Mapsource.

/s flag to auto-save to a file

/? flag to give ya guidance

Much better filename handling.

/q flag quits EasyMPS!

 

Download it now and enjoy the fun! Previous builds are available on the website for those that don't like spangly, new, fab features.

 

Go get it!

 

advertisement>

 

--

**Mother is the name of God on the lips of all children**

Link to comment

A few points:

 

1. Command line scripting is stonking, but the usefulness of the /q flag is somewhat diminished by the fact that you still have to OK the 'Waypoints saved as...' dialog.

 

2. It doesn't remember my settings. I'm sure it did at one point. This is especially important for scripting.

 

3. 'Winston's view' still comes out as 'Winston’s view'. I refer the honourable gentleman to this thread.

 

4. If I go easymps c:myloc.loc /m /s c:mymps.mps /q, it creates the .mps file, saves it as both c:mymps.mps and c:temphugaxxxx.mps, then opens hugaxxxx.mps in MapSource. I want it to open mymps.mps.

 

That ought to keep you busy.

 

SimonG.org

Link to comment

1. and 4. duly fixed.

2: Not sure which settings you mean....

3: Will require more investigation.

 

The new version's not on the site yet, as I'll add a few more bugfixes icon_smile.gif to it first (and possibly test it)

 

--

**Mother is the name of God on the lips of all children**

Link to comment

I run EasyMPS. I set Waypoint Icon to 'Geocache' and Display Options to 'Symbol & Desc'. I close EasyMPS. I run it again. It comes up with the things I just set set back to what they were before I set them.

 

I want it to remember the settings I put in previously! Otherwise, running it from the command line will never do what I want.

 

I could have sworn you'd done this already, but I just tried V0.3.39 and that didn't do it, so I think it must have been a dream.

 

SimonG.org

Link to comment

That's easy to do.

 

Well, build 77 (with items 1 and 4 fixed) is now online, so grab it while you can, before a newer build replaces it!

 

UPDATE:

Build 78 is now there...

It now remembers icon and display settings, as well as the window position on the screen.

 

Enjoy!

 

--

**Mother is the name of God on the lips of all children**

 

[This message was edited by Huga on January 14, 2003 at 05:09 PM.]

Link to comment

Thanks to MCL for working this out:

 

How to add "Open in Mapsource" right-click functionality to .loc and .gpx files

 

Ever wanted to just right-click on a .loc or .gpx file and have it open direct in Mapsource?

Thanks to EasyMPS, this is a reality!

 

Instructions: (These are for Windows XP, but they are similarish for earlierwindows versions)

In Windows Explorer, click Tools then Folder Options.

Go to the File Types tab, and search for .loc in the list (it'll be there if you have EasyGPS installed).

Click the Advanced.. button.

Click New.. to add a new association to it.

Title the new association as "Open in Mapsource"

For "Application used", browse for EasyMPS. Then, after the path and filename in the box, type the following:

%1 /m /q

so you'll either have:

"c:foo barbazeasymps.exe" %1 /m /q

or

c:foobarbazeasymps.exe %1 /m /q

(Depending on whether the path to EasyMPS has a space in it or not.

 

Click OK, and OK out of all the dialog boxes.

 

Find a .loc file, and right click, to see the pant-wettingly exciting "Open in Mapsource" function!

Perform the same trickery for .gpx files.

 

Fab!

 

Latest version of EasyMPS (as ever) at:

http://caching.iancowley.co.uk

 

--

**Mother is the name of God on the lips of all children**

Link to comment

Steady.

 

Isn't it about time there was a support group set up to help with this level of reaction?

 

My wife lets me hunt plastic boxes (humours me). If she could see this kind of reaction to plastic boxes and computer stuff that would be it! icon_wink.gif

 

Nil Satis Nisi Optimum

Link to comment

I had missed this thread since I'm not in the U.K. Thanx to information from Ian, I've added code to http://gpsbabel.sourceforge.net to handle mapsource input and output. It additionally reads and writes GPX, LOC, Mapsend, and a bunch of other formats as well as talking directly to GPSes over serial ports. It works on about any interesting operating system, including Linux, Windows, OS/X, Solaris, and a bunch more. Source is provided, so if it doesn't do what you want, you can make it do what you want.

 

It really is meant to be a "back end" kind of tool. If you're looking for a fancy GUI waypoint editor, this isn't it. If you're looking for something to automate a task, it can be your friend.

 

Special thank to Ian for cracking the Mapsource nut!

Link to comment

Gah! My program has been stolen out from beneath me!

 

Oh well, there's a newer, better version available.

 

Version 0.38 build 112 of EasyMPS is now available.

 

However, due to reasons completely beyond my control, I've temporarily lost write access to my webspace, so you'll have to get the new version from

http://homepage.ntlworld.com/rowans178/.

There's also lib.zip and all the old versions there too.

 

I'm going on holiday for a week tomorrow, so there'll be no more new versions icon_frown.gif

 

Enjoy 0.38 while it's still hot!

 

Changes from version 0.35:

* New splash/help screen rather than a dialog.

* Changed the graphic slightly so it doesn't look so weird

* Added "Open in Mapsource" right-click menu option in Explorer (optional) functionality

* Made saving files much much much faster (only really noticeable on large files like the UK Trigpoints database)

* Added a "Generate .loc" button. Now you can import loads of .loc files and export them as one!

* Couple of minor bug fixes

* Made imports faster

* Reduced RAM usage by tidying up some code and learning all about UDTs

* The program now starts in the directory that EasyMPS is in, rather than c:.

* The "Clear list" button works properly now (beforehand, it'd go wrong in certain circumstances)

* Some other stuff I probably forgot

 

Enjoy!

 

--

**Mother is the name of God on the lips of all children**

Link to comment

quote:
Originally posted by Huga:

Gah! My program has been stolen out from beneath me!


 

Sorry if it came across that way. I really wasn't trying to steal your thunder and I (and many others) appreciate the hand with the Mapsource file format. Yours has a much nicer UI. GPSBabel was targeted to run on every computer imaginable and to provide something that was highly automatable. So while there is some overlap (they can both merge multiple files, for example) they really do seem to have two different focuses. One user is using GPSBabel from a CGI script to provide waypoints on a download page in a user-specified format on a Solaris server; this would be hard to do with EasyMPS. OTOH, as people point out, GPSBabel is kind of ugly. :-)

 

If you're interested in using GPSBabel as the back-end to your program (maybe you have desires to write other files formats like MapSend or direct serial port access) contact me. We might be able to both reduce our effort in the intersection.

 

Thanx again!

Link to comment

quote:
Originally posted by robertlipe:

quote:
Originally posted by Huga:

Gah! My program has been stolen out from beneath me!


 

Sorry if it came across that way. I really wasn't trying to steal your thunder..


 

Ooops, forgot the smilie winky thing on my original post icon_wink.gificon_wink.gificon_wink.gif

 

--

**Mother is the name of God on the lips of all children**

Link to comment

Just to let you all know that the EasyMPS webpage is now at http://www.iancowley.co.uk/caching/easyMPS.shtml, so please update your bookmarks.

 

Oh, and version 0.39.113 is out, with the following updates:

* Bug-fixed check-box not picking up registry setting

* Removed form-body right-click fror about menu

* Made the program assign the description of a waypoint to the name field if no name field exists for importing ExpertGPs GPX files.

* Started thinking about importing MPs files - not implemented yet

 

So I'm starting a bit more work on the program - if anyone has any suggestions/bugs, then let me know at easymps@iancowley.co.uk and I'll try to fix bugs and incorporate ideas.

 

--

**Mother is the name of God on the lips of all children**

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...