When OSM is not enough, part 1

 Картография  maptrek trekarta

The problem

On your trip to Cyprus you might want to see three beautiful medieval bridges: Roudia Bridge, Kelefos Bridge and Elia Bridge.

The last two can be easily accessed from a good road but the first one is hidden from most of tourists deep in the mountains. If you are accustomed to off-road driving you can rent a great Suzuki Jimny 4х4 and go for a ride.

But much greater challenge is to drive from Roudia to Kelefos bridge directly through mountains. (Disclaimer: take this ride only if you are brave and confident enough.)

For the later task using OSM map along may be not enough: satellite map can become very handy in some situations. (During my trip via this route I two times came to the situation when the road was blocked - one time by a fence, second time by a landslide.)

That's why I want to show you how to prepare custom offline maps for Trekarta from online sources. This is where a very handy SAS.Planet application comes into place.

Solution

Download SAS.Planet application from http://www.sasgis.org/download/. It does not have an installer so you just have to unpack it to a folder of your choice. Run SAS.Planet. If you run it for the first time you can appreciate the number of supported maps in corresponding menu.

First you have to decide which area you need. For our case I have prepared a GPX file with bridge points. Open it in application:

Then select a map of your choice. This is ArcGIS Imagery in our case:

You can see how nicely all roads are visible on the imagery. Having that in your mobile device will let you select and drive roads that are not present on OSM map.

Using selection menu select the area you want to create a map for:

In our case it covers mountain area between two bridges. The third bridge is accessible by good road from the second one, so we won't extend map area there:

After you finish Selection Manager will open. Before you will be able to create a map you need to download all the tiles for selected area. First check that correct map is selected as source (you can view one map but download another in fact). Then select zoom levels you want to download. In our case the source does not have zooms bigger then 18 and there is no much sense to view imagery in zooms smaller than 15. Take into account resulting number of tiles. When everything looks good start the download:

Depending on the number of tiles and map source productivity it can take from minutes to hours:

When download is finished press Selection Manager button (in the bottom left corner) or, if you have occasionally closed this window, use selection menu to open last selection. Go to Export tab. First select MBTiles format. Then select the same zoom levels as you have used for download. Recheck that correct map is selected. Optionally give descriptive name to a map. Finally select the output file:

After export is finished transfer resulting file to device (it should have .mbtiles extension). Open file manager on device and tap the file. File open dialog should appear if you do this for the first time. Select Trekarta data import:

Trekarta will import the map to the internal folder (you can remove the source file after that):

Open Trekarta and tap Maps button:

Select the map you have just created and appreciate the result:

You can see that it covers native OSM map, so you can play with transparency slider if you wish.

Conclusion

SAS.Planet application is very powerful. Take time to explore its features to get maximum from it. You can create many map files and use them in Trekarta on demand. In fact MBTiles is popular format used by many other map applications, so once created you can use the same map in any application of your choice, not only in Trekarta.

Next time I will show you how to create a map from single image with a help of another great application.

Comments