Introducing GPXClean for Windows!

 

Before I get long winded, I wish to thank BobKZ and Box Car (or is it 'Sox Car' wink ) for helping me beat up the very early beta versions (like last week!). It's a very small package that doesn't require an install. Just save somewhere where Windows (sorry Mac guys...) can find it and run. It's basically a filter program that will parse your .gpx files one line at a time, making the pre-described changes in each record. Cleans up case issues (all caps, lower, etc), removes extra spaces, expands out abbreviations, etc. Read on...

What GPXClean does (without asking):

  • What GPXClean will do: Compresses multiple spaces into a single space in the 'gpxx:StreetAddress' & 'gpxx:City' fields
  • Removes spaces from the beginning and end of anything in the 'gpxx:StreetAddress' & 'gpxx:City' fields
  • Log to a file any changes made that aren't case related (upper to lower, i.e.)

What GPXClean can do (optional):

  • Change the character case in the 'name' field
  • Change the character case in the 'gpxx:StreetAddress' & 'gpxx:City' fields
  • Change abbreviated road types into their long names (Rd to Road, Ave to Avenue, etc.) and remove trailing periods
  • Add/change/remove the country field
  • Modify the format of the phone number (to either xxx-xxx-xxxx, (xxx) xxx-xxxx or xxx.xxx.xxxx)
  • Append ' - ' to the POI name, to make it more unique
  • Make sure mcx stays McX (McAllen, McDonalds, McMillan, etc.) if 'normal' is set in Name (-poi) or City & Address (-case) fields
  • Make sure states are capitalized if 'normal' is set in Name (-poi) or Address (-case) fields
  • If -case is 'normal', it will capitalize directions (N, S, E, W, NE, etc.) and remove the period
  • Log to a file any format changes in the phone number

The best part about it is it's free. My time, my server, your benefit. Let's start spring cleaning early!

http://camerabob.dyndns.org:5190/poi-factory/gpxclean.html

Enjoy all

-Bob

P.S. -message me if your find any errors anywhere with the package or web site. I'll do my best to correct them.

--
Striving to make the NYC Metro area project the best.
<<Page 3

This is something I can use

Thanks for your time creating this and sharing

THis progreqam is great

It helps me keep everything alike. It helps findiong dups,etc. Also help making the file more readable..

Thanks Camera BOB!

Edit: btw, You should ask to put this site in the software and tools area. I was tring to find it but could not. I checked the FAQ but was not there.. JM or Turtle, Can you do this for future ref?

Thanks!!

--
Bobkz - Garmin Nuvi 3597LMTHD/2455LMT/C530/C580- "Pain Is Fear Leaving The Body - Semper Fidelis"

I will use this just before

I will use this just before posting up the updated Mazda poi.

Thanks for all the your hardwork!

--
Nuvi 3790LMT, Nuvi 760 Lifetime map, Lifetime NavTraffic, Garmin E-Trex Legend Just because "Everyone" drives badly does not mean you have to.

I have no problem with a link

bobkz wrote:

Edit: btw, You should ask to put this site in the software and tools area. I was tring to find it but could not. I checked the FAQ but was not there.. JM or Turtle, Can you do this for future ref?

Thanks!!

I have no problem with that. Although the server is in my basement, barring another Sandy, it is usually up 100% of the time (unless I'm doing updates to my home network or server).

(For what it's worth, I hadn't even known that there was a page with web links to GPS software. grin )

--
Striving to make the NYC Metro area project the best.

never...

You guys always see to out do yourself every time, even when I think its impossible. keep up the awesome work!

Awesome work

Awesome work

I need to try this!

I need to try this!

Thanks! Great work.

Thanks! Great work.

Still working on that offline GUI front end

But in the interim, give this a whirl:

http://camerabob.dyndns.org:5190/poi-factory/CLIClean.html

Basically, it's an online syntax formatter for GPXclean. Copy and paste the output to the command prompt, and you should be good to go. It works in Firefox, but my IE doesn't seem to like it much. Any Chrome users, let me know how that fares. I don't use that either.

--
Striving to make the NYC Metro area project the best.

An awesome piece of software

An awesome piece of software engineering!

--
"Primum Non Nocere" 2595LMT Clear Channel and Navteq Traffic

@camerabob

seems like there is a 40 character limit in the input fields for the paths to files.

In Chrome I could not do a cut and paste.

I did manage to recreate in notepad the command I could not cut and paste and it ran ok after I filled in the characters left out by the 40 character limit.

That's a limit I set in testing

I opened that up. It's now 100. I also dumped the javascript popup window in favor of a text box that's much less elegant but way more functional. Have at it.

Damn javascript.... (and Internet Explorer)

Seems Internet Explorer doesn't like the 'document.form_name.id.value' method, so I had to change it to 'document.getElementById('id').value'. Not written anywhere obvious... sad But now it's working in Internet Explorer! grin

--
Striving to make the NYC Metro area project the best.

spaces

spaces seem to cause a problem

if -i is "g g"
and -o is gg
and -c is ggc
and path to gpxclean is c:x\y
and path to gpx suite is C:\a\b\c c\d d\f f\g g

then the result is

"C:\x\y\GPXClean.exe" -i "C:\a\b\c c\d d\f f\g g\"g g"" -o "C:\a\b\c c\d d\f f\g g\gg" -c "C:\a\b\c c\d d\f f\g g\ggc" -case normal -abbr long -poi normal -tele 2 -logt yes -save yes

Quotes are added automatically

You don't need to use them when you enter your file names or paths. Originally I didn't use them if a path wasn't entered. I just changed that. Now, quotes are always added for any field that is entered into a text box. I strip out any that are entered as well.

--
Striving to make the NYC Metro area project the best.

-i

camerabob wrote:

You don't need to use them when you enter your file names or paths. Originally I didn't use them if a path wasn't entered. I just changed that. Now, quotes are always added for any field that is entered into a text box. I strip out any that are entered as well.

not sure I am understanding this. The instructions say
"Extension is optional, quotes needed
if the name contains any spaces"

OK, I guess it is confusing

The web command builder doesn't require quotes. It adds them for the command line where they are needed.

Thanks for pointing that out! smile

Corrected.

--
Striving to make the NYC Metro area project the best.

Thanks

Looks good to me.

I am pasting the results into a simple batch file of the form

Echo
(camerabob output)
Pause

to see your messages

Last time I ran it, my output file and my change file did not have default extensions. I had to add them (.gpx and .txt, respectively) to view them.

Inputting the extensions obviously gets what is needed.

Whew.

I'll look into the missing auto extension function.

--
Striving to make the NYC Metro area project the best.

Coming soon...

The long anticipated GUI front end for GPX Clean!

http://camerabob.dyndns.org:5190/poi-factory/GPXClean-GUI.jp...

So far it looks good, but it doesn't do a damn thing! Expect it in under a week.

-camerabob

--
Striving to make the NYC Metro area project the best.

Looking forward to it

Will be another good tool in our bag.

Finally, it's here!

GPX Clean for Windows. It's not quite the whole package. You still need the original GPX Clean, but this will allow you to enter all the commands via a windows GUI. Also updated GPX Clean to version 0.93 which includes the new Windows version inside the .zip file as well. (I also changed CR from 'circle' to 'County Road') Cruise here to check it out.

http://camerabob.dyndns.org:5190/poi-factory/GPXCleanW.html

I'm only up to Windows XP at home. I hope it installs on Windows 7 and the like. Let me know if you have any problems. The built in Visual Basic installer wasn't worth the cardboard it was shipped in. I made my own installer in batch file form, so it's a bit dicey (but it should work!).

Have at it folks!

--
Striving to make the NYC Metro area project the best.
<<Page 3