Skip to content
flywire edited this page Jul 13, 2015 · 10 revisions

GeoTiff2RMP

A simple command-line converter from GeoTiff raster format with WGS84 projection to RMP fromat used by Magellan Triton/Explorist GPS units.

Code was based on RMPCreator project https://github.com/antalos/RMPCreator, but got a few important improvements.

Dependencies:

  1. python2.7
  2. gdal binaries
  3. pillow (python-pil)
  4. rasterio (optional, https://github.com/mapbox/rasterio)
  5. python-gdal (optional)

Restrictions:

input map should be in WGS84 projection license is unclear, due to no license file in RMPCreator project - ask antalos@gmail.com for licence

Usage:

python geotiff2rmp.py [options] <input map1> [input map2] ...

Options:
  -h, --help            show this help message and exit
  -o RMPFILE, --outfile=RMPFILE
						write result to rmp file
  -n NAME, --name=NAME  map name [default: Map]
  -g GROUP, --group=GROUP
						map group [default: Map]
  -p PROV, --provider=PROV
						map provider [default: Map]
  -v VERSION, --version=VERSION
						map version [default: 31]
  -c CONTACT, --contact=CONTACT
						map contact [default: Anonymous]
  -l COPYRIGHT, --copyright=COPYRIGHT
						map copyright [default: (C) Anonymous. License CC-BY-4.0.]
  -f COPYRIGHTFILE, --copyright-file=COPYRIGHTFILE
						map copyright text file [default: none]
Enclose strings with spaces in "double quotes"

Example usage

Convert map to WGS84 projection:

  • gdalwarp -t_srs WGS84 -tr 0.00014 0.000077 -overwrite Arbalet-MO_All_300DPI.map arbalet_wgs84.tiff

Run GeoTiff2RMP:

  • python geotiff2rmp.py -o arbalet.rmp -n "Arbalet Topo" arbalet_wgs84.tiff Upload map to your Magellan unit and mark it to display

Questions

Q. How to install for Windows (eg win8.1 x64)

  1. Install python 2.7 from https://www.python.org/downloads/release/python-2710/
  2. Install Microsoft Visual C++ 2008 Redistributable Package (x64) from http://www.microsoft.com/en-us/download/details.aspx?id=15336
  3. Launch cmd.exe as administrator and run "pip install pillow"
  4. pip install GDAL-1.11.2-cp27-none-win32.whl from http://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal
  5. pip install rasterio-0.24.1-cp27-none-win32.whl from http://www.lfd.uci.edu/~gohlke/pythonlibs/#rasterio
  6. Install GeoTiff2RMP to a working directory from https://github.com/bazuchan/geotiff2rmp/archive/master.zip
  7. Copy gdal binaries to working directory from https://github.com/antalos/RMPCreator

Q. More Help

  • Contact Author here.
Clone this wiki locally