I have a large gpx file with about 750 waypoints and a bunch of tracks that was made on various devices and assembled on Basecamp. Each of the waypoints contains between 0 and a whole bunch of now meaningless categories. My gps unit, a BMW Navigator-V, helpfully displays an entry on the Saved Places screen for every single one of those categories which probably total 50 or more more unique categories. I want to get rid of all those categories in this gpx file and replace them with a single category which has some meaning to me.
In Basecamp at present there is only one way to do this: for each waypoint, "Get Info", then mouse to the References tab, place the cursor in the Categories field, do a command-a to select everything in that field, hit delete, type in your new category name and hit enter. Tedious, but doable.
I have my waypoints sorted by type and have started working my way through. At the end of each type I highlight all of the waypoints of that type, do a Get Info, tab to the References tab and look in the Category field. If I have successfully changed them all to the single category I will see only that category in the field. If I have missed one then I will see the word "multiple" in that field. Then I must hunt down the error and correct it. So I do that until I get a clean field, i.e., it just shows my category. Then I continue on and do the next type, check them etc.
Now the problem: If I check several types all together, all of which have previously passed the test when checked as one group, I will get the dreaded "multiple" tag and I will have to go back through the previously correctly tagged waypoints and I will find some that are now missing the previously entered tag! :confused:
The first type has 49 waypoints, the second has a single waypoint, then a group of 10 of a third type, and then a single entry of a fourth type. I have given up at this point since I cannot get these points all categorized properly using Basecamp.
Other info that may be of some help: my new category is three letters long: a capital letter, a lowercase letter and then another capital letter. That combination appears in some of the other unwanted categories so I get a populated list when I am typing such that I have to add a space after my category's name to isolate it and then press the enter key.
[P.S. If anyone knows how to get grep to match and select a random group of characters across new-line characters between <gpxx:Categories> and </gpxx:Categories> or even a bash script of some sort perhaps using awk and sed I would be perfectly willing to make the change that way :)]