Please select your home edition
Yalikavak Marina Leaderboard

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 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 (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

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
Sailing in Chile: Part 2 - Sailing in the White
Every sailor has a comfort zone Every sailor has a comfort zone. For most of us, this zone is a moving target that expands a little bit each time we push ourselves to experience something new. Posted on 9 Jan
What comes around goes around
We joined the Vancouver Rowing Club and volunteered to do committee boat I met my husband volunteering. I had just graduated with a Master's in Psychology, but the degree was in social research, not clinical or counseling, and I wanted to help people one-on-one and not just watch it all from an office in a university somewhere Posted on 9 Jan
The best of 9 years, 9 months and 9 days
Jordan and Judy return to VI Mid-Island Jordan and Judy Mills left Victoria in September, 2009 on their 35 ft. cutter, Sea Turtle IV, for what they expected to be a five year west-about circumnavigation. Posted on 8 Jan
Preparing your sails for a long journey
There is a lot to consider when planning a long trip In this informal evening, the presenter will outline what you need to do to prepare your sails for a long journey. This course is being offered by Evolution Sails in a three hour interactive session. Posted on 7 Jan
Down the Rivers of the Great Loop
Calgary Club Night: The Great Loop is a great compromise Rowland and Alexandra Harrison, Calgary's first presenters of 2020, will tell us about a unique way of journeying on your own boat through virtually all of the states of the eastern US, the Great Lakes and the heartland of the US. Posted on 28 Dec 2019
Psychology of Voyaging
This course puts people back into the centre of the voyage As we prepare for offshore cruising, our focus is so often on the boat and its equipment, that we tend to forget that the most important piece of equipment aboard is the crew. Posted on 26 Dec 2019
Abandon Ship! How to Stay Alive in Your Life Raft
If your boat went down today, would you be ready and know what to do? If you plan on going offshore and have answered "no" to any of these questions, then the Abandon Ship! How to Stay Alive in Your Life Raft course is for you. Posted on 23 Dec 2019
Drama on the Columbia River Bar
The Columbia River Bar is not some sleazy joint on a river side street Any mariner who plies the coastal waters of the Pacific Northwest knows how wild that coast can often be. Chances are they also know the entrance to the Columbia River and the Bar that protects it from any dubious vessel Posted on 13 Dec 2019
Grapefruit Graphics 2019 - FooterMarine Resources 2019 - FooterVaikobi 2019AUG - Footer 1