Please select your home edition
Edition
upffront 2018 FSE Robline 728x90 1

Mbtiles for OpenCPN: A huge step forward for satellite charting

by Rob Murray 16 Jan 11:57 UTC
150131-F-QZ836-017 DJIBOUTI (January 31,2015) The charting maps for the Gulf of Tadjoura showing the exercise area of operations are displayed during Exercise Cutlass Express 2015 in Djibouti, Jan. 31, 2015 © U.S. Air Force photo by Staff Sgt. Carlin Leslie

OpenCPN has become a staple for cruisers. Even those that don't use it as their primary software for navigation have it loaded on a computer for use in planning, research and exchanging information with other cruisers. An increasingly capable navigation software suite, it is worth exploring and loading on your computer aboard.

Around 2005, mariners who were also computer geeks, began to realize the potential to use satellite imagery alongside nautical charts in poorly charted areas of the world, using (free) services like Google Earth™.

Around 2010, a sailor (Paul Higgins aboard Gday II) who was a programmer, developed GE2KAP (Google Earth to KAP (*.KAP files are a common file format for nautical charts)). This was a revelation: suddenly, you could see if charts were offset, see many uncharted hazards, and note details not contained on even the most detailed of nautical charts. Paul updates his work constantly, and has added *.Mbtile support in his new software SAT2CHART (SATellite to CHART).

Cruisers around the world began feverishly creating and sharing GE2KAP based 'chartlets' of under-charted regions and the safety of coast wise navigation soared. GE2KAP, while fantastic, had a few issues: it was a form of image capture, so you needed to do the coast, an area or anchorage at a time as you viewed it; it was time consuming, the form of image capture degraded the original satellite image through the process of converting it to a *.KAP file, and it was not possible to capture a high quality detailed image of a large area.

The new *.Mbtiles image format supported in OpenCPN version 5.0, released in May 2019, overcomes many of these issues, and makes creating detailed satellite images of large areas simple (although still time consuming). This article is designed as a walk through of one of the processes to create and use satellite images in OpenCPN using SasPlanet (a free Russian Geographic Information System software package), while getting you set up for other methods as you want to explore further.

Downloading and installing the software

First, gather snacks and beverages. Perhaps make a pot of coffee. We're going to be here a while. Take your Windows based PC, snacks and beverages to a place with good high speed internet - if at home, use an Ethernet cable directly to your PC if you can, it's faster than WiFi. Then download and install the following software:

  • OpenCPN, version 5.0+
  • SasPlanet, any version should be ok, but I chose to install it from the *.ZIP file on Paul Higgins' site to ensure compatibility with his work in SAT2CHART. Click on the link Sasplanet.zip. Unzip the SasPlanet directory in the zip file to your hard drive, for example to C:\SasPlanet. There is no 'install program' for SasPlanet: you click on the sasplanet.exe program file to run it. You can create a shortcut to make running it easier, by right clicking on the sasplanet.exe file and selecting 'create shortcut' and copying or dragging and dropping the shortcut to your desktop.
  • Google Earth™. You MUST use an older version, as the newer versions are not compatible with SAT2CHART. If you have a version other than 7.1.2.2041 (circa 2013) on your PC, uninstall it via 'settings' or 'control panel' on your computer and then install the correct version from Paul Higgins' download site.
  • SAT2CHART, available from Paul Higgins' download site (or a newer version if available). Run SAT2CHART, and it may ask you to install additional software; just follow the instructions.
All these were current links as of early October 2019, but are likely to change over time.

Configuring SasPlanet

Now open SasPlanet and configure it (open it by clicking on the sasplanet.exe file or the shortcut you created).

Step 1: Click 'view', and select 'main', 'zoom' and 'sources'.

Step 2: Click 'source' and choose 'Internet & Cache'

Step 3: Click 'settings', 'layer settings', and select 'Hybrid (Google)'

Step 4: Use 'file manager' program to find the file "C:\SasPlanet\Maps\sas.maps\Google\Ghyb.zmp" on your hard drive, and edit where it says "ru" to "en" (resetting the language from Russian to English)

Step 5: Go to 'settings', 'later settings' 'Hybrid (Google)', click and select 'settings Internet' edit the text in the popup box from "ru" to "en" (this resets the language from Russian to English).

Shut down SasPlanet and restart it for the reset language changes to take effect.

Creating your satellite charts

Now you're ready to get to work on creating satellite charts. Whew! There are two ways to do this with reasonable expedience. I will use the Gulf of Fonseca (approximately 13 degrees 13' North, 87 degrees 38' West) as an example.

First Method

In the first method, you download tiles in a batch, and then convert them to *.Mbtile. To download an area in a batch, select it with the rectangle or other area selection tool on the menu. View the satellite image at zoom level 10 or 11 (in zoom slider on right) so you don't select too large an area. Tile set of ~100,000 tiles seems to make manageable downloads and reasonable *.Mbtile 'charts' in use.

After you select the area, a box pops up. Select the zoom levels you want to download by ticking the 'zooms' boxes on the right for 16 and 18, select the 'download' tab, tick the 'close download window once finish' and set the 'split selection to, parts' to the maximum value (this will change based on area selected and computer used). Click 'start'. Take a breath, this will be a while.

After you have downloaded these images, they are available for viewing in SasPlanet, even when you are no longer connected to the Internet, as well as for re-processing and exporting as *.Mbtile, whether you're connected to the Internet or not. SasPlanet can be connected to a GPS and used as a satellite image chart viewer in its own right, but lacks the navigation features of OpenCPN.

Google does have some limits on downloads, and the Internet can sometimes fail in attempts to download image sets. If your finished product has gaps in coverage, review the downloaded area on the screen and re-download as required to 'fill in the blanks'. Enabling 'view' 'cached tiles map' and selecting the appropriate zoom level in SasPlanet will show via a shaded area what tiles you have downloaded for the specified zooms.

Notes on zoom levels:
I like 16 and 18; try them and see if that works for you. Not all areas of the earth have all levels of zoom. In some areas you may have to use lower zooms, like 14 and 16 or 15 and 17. While zoom levels above 18 are available for some areas, they don't seem to add much value for navigation (at least to my eye), and image sets below 12 or 14 don't seem to have much use value in navigation, as the detail is poor. When selecting zoom levels to download, I find skipping a level works fine and makes the Mbtiles chart smaller.

After the download completes and all the download windows close, go to the area selection tool again and select 'last selection'.

Export step: When you click this, the same box pops up as did for the download, but now select the 'export' tab, set the 'export selection to format' to 'Mbtiles 1.2 (SQLite3)', and enter the appropriate values in the 'save to' box (in this case the directory I want to save to: 'C:\charts\mbtiles\' and the filename, 'gulf of fonseca.mbtiles'). Using the *.Mbtiles file extension tells OpenCPN it's an Mbtiles file so it is appropriately indexed.

After a few minutes, this is complete, and you can add the directory in OpenCPN and view the charts. Click 'ok' or 'apply' or if incrementing an existing set of files with a new Mbtiles chart, click 'scan charts and update database' so OpenCPN indexes the files.

The area you have charted will show as a red outline:

When you zoom in you will see the detailed satellite images. Use the charts groups tool in OpenCPN to manage this with your other charts.

Second Method

In the second method for satellite image chart creation, you simply 'look around' in SasPlanet at the area of interest. As you look, zooming in and out, panning to maneuver around the area, SasPlanet caches (saves) what you look at. You will notice 'blank spots' in the view, filling in as you look around as it downloads the image tiles. After you are satisfied you have seen enough, you can then create a set of Mbtiles by following the direction from the 'export step' above. In this case, a wider range of zoom levels may be appropriate, and you will typically create a smaller file due to the lower level of detail.

Before "charting the world" by downloading lots and lots of images and creating millions of tiles, test the first file or two you create at different zoom levels on the PC and display you plan to use, as the resolution of the files will give a different view on different screens.

Creating large areas is rather tedious, so teaming up with another cruiser or two and tag-teaming an area makes sense, exchanging files later.

There are multiple data sources available for downloading via SasPlanet: Google, Bing, Yahoo, several Marine chart options (including Navionics), and you can review them and play around to see what works best for you. Not all of them work, and many have download limiting software on the database that limits the number of images you can get. I have found the Google to be the most detailed and 'freshest', but different areas could yield different results. I prefer the Hybrid view, which adds place names and objects of interest yet doesn't seem to impede the view of the coastline and water. Your opinion could be different, and you might like a different data source, or Google Maps non-Hybrid view without the place names.

Now that you're an expert on one aspect of satellite charting, you can use Paul's excellent SAT2CHART for other areas, or with specific aspects of the Google Earth application, to create other charts. Perhaps I will pen another article on how to get the most out of SAT2CHART, as a second in this series.

Have fun!

This article has been provided by the courtesy of Bluewater Cruising Association.

Related Articles

Calgary Club Night: A South Pacific Odyssey
Escape the Calgary winter and head back to the South Pacific Escape the Calgary winter and head back to the South Pacific with Pam and Ted Simper as they continue their exploration of tropical islands on their 40' Moody, Roundabout II. Posted on 22 Feb
Docking Skills
Learn how to manage docking Improve your docking skills whether you are single-handing or have help, on a sailboat, or a powerboat. Posted on 21 Feb
Electronic Systems: Simplifying Choices
Jeff will provide an overview of the most essential electronics In this informal two-hour presentation, Jeff will provide an overview of the most essential electronics for today's boaters and cruisers. Posted on 16 Feb
Sailing in Chile: Part 3
Interpreting the Guidebook Guidebook writers must be a curious breed. While they provide incredibly useful information in terms of what to expect in an anchorage or in a general area, they don't always give that information in a straightforward manner. Posted on 5 Feb
Victoria to the Sea of Cortez: The Journey Within
The places we journey to within ourselves while cruising Stefa Katamay and Jürgen Harding spent three years preparing themselves and their Tayana 37 Mazu for an offshore voyage from Victoria to San Francisco and then the coastal hop to the Sea of Cortez. Posted on 4 Feb
Rigging Essentials for Smooth Sailing course
Steve White to share years of experience at Jericho Sailing Centre Steve, owner of Steve White Rigging, shares years of experience in this day long course. He will cover preparing your vessel for leaving, maintenance and repairs. As well, he will take an in-depth look at standing and running rigging and winches. Posted on 31 Jan
Calgary Club Night: Buy a boat and sail the Med
Garry and Linda Orme were motor boat owners for over 25 years Garry and Linda Orme were motor boat owners for over 25 years before they took up sailing in 2015. They took their ISPA certifications on the west coast of Canada, then began the journey of buying a sailboat. Posted on 25 Jan
The Eastern Mediterranean - Egypt to Turkey
Cruising through countries often in the throes of unrest Near the end of an 8000 NM one year odyssey from Australia, we continued via countries often in the throes of unrest: Israel, Palestine and Cyprus. In spring 2003 we felt there was a window of opportunity to visit despite traditional conflicts. Posted on 21 Jan
Passage Making two day seminar
From the psychology of leaving to living in cramped quarters Passage Making is a multi topic two day seminar. From the psychology of leaving to living in cramped quarters, the Gillstroms bring deep knowledge and experience into this conversation. Over the two days, they will cover broad and relevant subjects. Posted on 11 Jan
What makes a cruiser?
We hunted and searched until we found a fabulous boat Some years ago, Laurie saw an ad for the Bluewater Cruising Association's Ocean Cruising Adventures speakers series in Pacific Yachting magazine, which was a Christmas gift from my aunt and uncle. Posted on 10 Jan
North Sails 2019 - NSVictoryList - FooterVaikobi 2019AUG - Footer 2Yalikavak Marina THYA FOOTER