Skip to content

andrewerrington/sotalayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sotalayer

Make a POI layer for OsmAnd using SOTA summit data.

There are two versions of this software:

sotalayer.py

makes a .osm XML file which can be processed by OsmAnd Map Creator to produce a .obf file.

sotagpx.py

makes a favourites.gpx file which can be directly read by OsmAnd

In either case, the file contains POI nodes for SOTA summits, which can be viewed on the OsmAnd mapping screen.

Requirements

You will need Python 3, and a copy of the SOTA summit data, which can be downloaded from here (13Mb CSV file)

Using the program

To run the program, specify the region you want to extract. For example:

sotalayer.py G/

or

sotagpx.py G/

This will extract all the England summits. The program does a very simple character match to the beginning of the SOTA ref., so 'G' will match England ('G'), Isle of Man ('GD'), Northern Ireland ('GI'), Scotland ('GM') and Wales (GW). 'G/' will match only England, and 'G/CE' will match Central England, and so on.

In the case of sotalayer.py the output is an OSM XML file, which is written to sotalayer.osm. If this file exists it will be overwritten, so please move or rename it after each extraction.

In the case of sotagpx.py the output is an GPX XML file, which is written to favourites.gpx. If this file exists it will be overwritten, so please move or rename it after each extraction.

Further processing

No further processing is needed for favourites.gpx, however to make the OsmAnd POI layer from sotalayer.osm you will need OsmAnd Map Creator, which is described here

Run OsmAnd Map Creator and select only Build POI index. Choose Create .obf file from osm file... from the File menu and open the .osm file you created above. OsmAnd Map Creator will make a file called Sotalayer.obf (or similar, if you renamed the .osm file). Copy this file to the OsmAnd 'files' directory on your phone.

About

Make a POI layer for OsmAnd using SOTA summit data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages