Tag Archives: GPX Tools

Planning Multi-Day Cruises—Example Revisited

A few years ago I wrote a series of articles about planning multi-day cruises. I finished off the series with an example. See Planning Multi-Day Cruises—Example. Since that time, I created a user-friendly GPX tool. So now I revisit that example.

The example walks through finding anchorages, planning a route between them, refining the route, cleaning up the route, documenting the route, and adding it to a chartplotter. What has changed is the GPX Tools that I use to clean up the route and document the route in a spreadsheet. I now have more user-friendly GPX tools.

There are two ways you can continue reading this post. You can go to the original post here and follow it to the heading Cleaning the Route, skipping the section on GPX Tools, or, you can download the route that was created by clicking here.

This route, named WP-OWW, was created and refined using OpenCPN and HomePort. This post continues after the section titled Exporting a Route from HomePort.

Cleaning the Route

I open the GPX Tool. I have it installed as a shortcut on my desktop. Alternately, I can point my browser to questeria.info/gpx/.

I click Chose File, and choose the file named WP-OWW.gpx. Then, I upload it to see the contents of the route.

Uploaded Route

I scroll down to the last entry, and see there are 11 waypoints in the route. The names are random, except for the starting and ending anchorages. There are two waypoints in the file that correspond to the two anchorages. I can download a CSV file now, but I want to clean the route before that. First, I set some options.

Setting Options

I click Show Options and the Options panel appears. The first set of options are formatting choices for the CSV file. I set Lat/Lon format to dd mm.mmm and Distance to Naut. Miles. Depth and Time Set are options for tracks, so I leave them alone.

GPX Options

The last set of options are for route cleaning. I check Reorder, Clean Sym, Hide Name and Clean All. I set Num Digits to 3 and Symbol to Waypoint. These are the default options that I used last time.

I click Hide Options to save the values and continue. I set Start Num to 400. This is because my previous routes start at 0, 100, 200 and 300.

Clean Route

I click Clean Route to clean the route.

Cleaned Route WP-OWW

The message says 11 waypoints out of 11 cleaned and Start Num is updated to 411.

I scroll through the route and it looks like the cleaned route from the original example, but I want to redo it using a different option.

Clean All Unchecked

I click Clear to restart the whole process. Then I click Show Options and uncheck Clean All. This tells the GPX Tool to ignore the two anchorage waypoints. I click Chose File, select WP-OWW.gpx, and click Upload GPX as before. I reset Start Num to 400. Next, when I click Clean Route, the message says 9 waypoints out of 11 cleaned, and everything is reordered and cleaned except for the two anchorage waypoints.

Clean All Unchecked

Downloading the Files

Next, I click Download CSV and it downloads a file named WP-OWW_cln.csv to my Download folder and disables the Download CSV button.

Then, I click Download GPX and it downloads a file named WP-OWW_cln.gpx to my Download folder and disables the Download GPX button.

Importing Cleaned Route

Because it has the effect of freezing muscles, it was generic vs viagra originally developed to treat spasms, particularly overactive eye spasms. It improves your immunity and relieves cheapest tadalafil browse that pharmacy shop you from weakness. Blood flows in and fills in the organ which results in cialis 100mg canada rigidity of the organ and sustentation or hard on. levitra prescription Netiquette is to never forward petitions via email. 5.

You can now go back to the original example header Importing Cleaned Route, but I do things a litte differently below.

Importing to OpenCPN

I import the cleaned route back into OpenCPN. I delete the old uncleaned route to avoid confusion. I right-click on it and select Delete… I get a message “Are you sure you want to delete this route?”. I click Yes. Then, I open the Route & Mark Manager and go to the Routes tab. I click Import GPX…, and select file WP-OWW_cln.gpx in my Download folder. I get a message that 2 duplicate waypoints were detected and ignored. I now have a route named WP-OWW. I open the route’s properties and notice that some of the original information has been lost or changed. This is caused by importing it after it was exported from HomePort.

I restore it to its original state. I put West Pass in the Depart From field and Okeechobee Waterway in the Destination field. I change Color from Magenta to Default color and click OK.

There are still some differences. The waypoint symbol is now Combo! and appears as circle with a dot. Also, the Show name box is checked for each waypoint. I can manually change each waypoint property, but I can do them all at once with the GPX Tool.

Recleaning the Route

I export the route from the Route & Mark Manager by selecting WP-OWW and clicking Export selected… and save it to a folder. Then, I open the GPX tool and upload the file I just exported.

I click Show Options and uncheck Reorder, and check Clean Sym, Hide Name and Clean All. I also set Symbol to diamond.

Reclean for OpenCPN

I click Hide Options and Clean Route, and Download GPX. Then, in OpenCPN, I delete the old route and import the re-cleaned route as before. It all looks good.

Importing to HomePort

I import the cleaned route back into HomePort. I delete the old route to avoid renaming due to duplicate names. I open HomePort and click on my Route2019 list. Then, I right-click on route WP-OWW and select Delete. I get a message saying “Items will be deleted from ALL lists.”, I click Delete.

To import the cleaned route, I click File and select Import into Route2019… I select file WP-OWW_cln.gpx and click Open. Surprisingly, it doesn’t make a difference if I use the original cleaned file or the one I recleaned for OpenCPN. This is because HomePort ignores Show name and waypoint symbol diamond. It knows about the starting and ending anchor waypoints because I already imported them into Route2019. I select WP-OWW_cln.gpx. It looks good.

To send this route to the SD card, I right-click on route WP-OWW and select Send To… I click on USERDATA, and then OK.

I can now put the route on my chartplotter, see Saving Routes and Waypoints to Chartplotter. I can also copy it to my ActiveCaptain App, see Copying Route to ActiveCaptain App.

Organizing Routes in a Spreadsheet

You can now go back to the original post heading, Organizing Routes in a Spreadsheet, but I do it a little differently below.

When I have all the routes for my trip, I like to organize them in a spreadsheet. You can use Excel or Google Sheets. I use both. The first step is to get a template. I have a shared template on Google Sheets here. Start by copying it to your own spreadsheet. I’ll name mine Example RouteSheet. The spreadsheet has a template sheet, named RteFormat. The template has six rows of header. The first step is to customize your template. Change speed of 5.5 in cell D3 to your planned average speed, in knots. Then, change your Start, cell C4, to your planned departure date and time, for example “11/21/2021 8:30”. This field can later be modified for each route.

I keep RteFormat sheet as is, and duplicate it to create a sheet for each route in my trip. To start, I click on the RteFormat sheet and select Duplicate. Then I click on Copy of RteFormat and select Rename... I give the sheet the same name as my route, WP-OWW.

I go to my Download folder and open WP-OWW_cln.csv with Excel and I see this.

Spreadsheet

Next, I copy the route information into my sheet. I copy all the cells in columns A through F, starting with row 9, by dragging my mouse from corner-to-corner to highlight the data, right-clicking and selecting Copy. Then I go to WP-OWW sheet, right-click on cell A7, and select Paste. Finally, I type the route name, WP-OWW, in cell B1, the starting point, West Pass, in cell B2, and the destination, Okeechobee Waterway, in cell F2. I update the speed, in knots, in cell D3, and the start time, in cell C4, if needed. The other fields in the header are computed by the spreadsheet; Total distance of 60.04 nautical miles, in cell B3. Total time of 10 hours, 55 minutes and 1 second, in cell F3. End time and date of 11/21/2021 19:25:01, in cell F4.

Example Route Sheet

I’ve shared my completed route spreadsheet here.

I’d love to hear what you think about the GPX Tool. Leave a comment to this post if you have any suggestions. I am planning to write more posts about the GPX Tool. You can subscribe below to receive an email notice when new post are available.

New Post Notification

Sign up to receive new post notifications.

We don’t spam! Read our privacy policy for more info.

I do all this with my own time and money. If you find anything useful, please go to questeria.info/donate.html, and donate something to my website. Thanks!

GPX Tool

I provide tools for boaters and cruisers on this website. I call them “Tools for Cruisers”. Some of these tools are not user friendly, but now I have a solution—a Progressive Web App, PWA, that runs on both my server and your device. I’m talking specifically about my GPX to CSV and Clean Route utilities.

Note: I republished this post to address the version 1.1.1 update of the GPX Tool.

GPX Files

GPX, or GPS eXchange, files are used to import and export GPS user data between tools and devices. Navigation programs like OpenCPN and HomePort use GPX files to import and export waypoints, routes and tracks. GPX files are a type of XML, eXtended Markup Language file. GPX files are text files—you can view them with a text editor or browser, but there is a lot of extraneous information that makes it difficult to see the important things.

GPX Tools

My original GPX tools were Perl scripts that had to be run from a command prompt. One utility creates a CSV, Comma Separated Values, file and the other cleans up a route. Refer to Planning Multi-Day Cruises—GPX Tools for details. You also have to install a Perl interpreter on your device before you can run them.

The program Convert GPX to CSV extracts data from a GPX file and puts it in a CSV, Comma Separated Value, file that can be read as a spreadsheet.

Until now, this utility required a Perl interpreter, like ActivePerl. As a retired software engineer, this is not a big deal for me, but I understand why most people wouldn’t bother. After Perl is installed, you had to open a command prompt and type a cryptic command like …

gpx2csv WP-OWW.gpx

Another program, Clean Route, cleans up waypoint names and symbols in route. This program also requires a Perl interpreter and runs from a command prompt.

Now, you can create a CSV file by entering a URL in your favorite web browser. It brings up a menu that walks you through the steps.

GPX Tool

Start at the top-left of the screen and work your way down. Unavailable options are greyed-out.

Creating a CSV File

To create a CVS file from a GPX file, do the following:

Click Show Help to see help information. Click Hide Help to continue.

Click Show Options to set options. The only option that works at this time is Lat/Lon format.

Click Hide Options to save and continue.

Click Choose File and select a GPX file. You will get a file selection menu. Choose the desired GPX file. The Upload GPX button is enabled.

Click Upload GPX to upload the file for processing. If the GPX file is valid, and contains a route or track, the Download CSV button is enabled, and the GPX file is displayed in a separate pane.

Click Download CSV to download the CVS file.

Click Clear to restart any time during the process.

The CSV files for routes or tracks are different.

CSV File for Routes

GPX Tool Route

CSV files for routes contain the following fields:

  • wp – Waypoint name
  • lat – Latitude
  • lon – Longitude
  • nm – Nautical miles from previous route point*
  • feet – Feet from previous route point
  • brg – Bearing from previous route point, in degrees true
The most common thing one in a busy routine does maybe sitting all day without any movement and buy levitra cute-n-tiny.com exercises. If you are a young man suffering from the erectile dysfunction, the ordering viagra from canada cute-n-tiny.com made of Sildenafil citrate has taken the most effective treatments to cure impotency in men.There can be many issues that can create fights in a marital relationship. The mental viagra buy in usa always in stock relationship does not make any sense. Elder people are the most who are bound to loose your cialis on line http://cute-n-tiny.com/item-3633 body fat at warp speed.
  • * Future versions will have the option to show distance in Nautical Miles, Statute Miles, or Kilometers.

The nm, feet and brg values are calculated by the program.

CSV File for Tracks

GPX Tool Track

CSV files for tracks contain the following:

  • lat – Latitude
  • lon – Longitude
  • date – Date of track point
  • utc – Time of track point in UTC, Universal Coordinated Time*
  • dep ft – Depth at at track point (in feet**)
  • elapsed – Elapsed time since last track point
  • nm – Nautical miles from previous track point***
  • feet – Feet from previous track point
  • kts – Speed in knots***
  • brg – Bearing from previous track point, in degrees true
  • * The original version displayed time as local time, as defined in the users device, but now it is in UTC.
  • ** Future versions will have the option to show depth in feet or meters.
  • *** Future versions will have the option to show distance in Nautical Miles, Statute Miles, or Kilometers and speed in Knots, MPH or KPH.

The elapsed, nm, feet, kts and brg values are calculated by the program.

GPX to CSV Options

GPX Tool Options

Latitude Longitude Format

There are three latitude longitude formats:

  • dd mm.mmm (default) – Degrees and minutes to 3 decimal places.
  • dd mm ss – Degrees, minutes and seconds.
  • dd.ddddd – Degrees to 5, or more decimal places.

Distance Format

  • Naut. Miles (Default) – Distance in nautical miles and feet, speed in knots.
  • Stat. Miles – Distance in statute miles and feet, speed in MPH.
  • Kilometers – Distance in kilometers, speed in KPM.

Depth Format

  • feet (default) – Depth in feet.
  • meters – Depth in meters.

Time Set

Time Set is used to filter our track entries that are close in time. If the number of seconds between track entries is less than Time Set, only the first will be displayed.

Running the GPX Tool

This tool should work on any device with a web browser, but it works best on a PC. A larger screen makes it easier to use, and many mobile devices have limited support for GPX and CSV files.

To start the GPX Tool open your web browser and go to https://questeria.info/gpx/. You will see the GPX Tool menu. You can look at the help screen, show options or choose a GPX file. Once you choose a file, you can upload it. Once uploaded, the GPX file contents are displayed if file is valid. You can download the CSV file.

You can add the page to your home screen to make it more like a regular app. I have done this on Windows using both Google Chrome and Microsoft Edge.

Future plans include cleaning routes.

Summary

I plan to continue making improvements to the GPX Tool. I hope that people will try it and like it. Send me any comments, suggestions and/or complaints.