-
Notifications
You must be signed in to change notification settings - Fork 2
Home
flywire edited this page Jul 13, 2015
·
10 revisions
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.
- python2.7
- gdal binaries
- pillow (python-pil)
- rasterio (optional, https://github.com/mapbox/rasterio)
- python-gdal (optional)
input map should be in WGS84 projection license is unclear, due to no license file in RMPCreator project - ask antalos@gmail.com for licence
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"
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
Q. How to install for Windows (eg win8.1 x64)
- Install python 2.7 from https://www.python.org/downloads/release/python-2710/
- Install Microsoft Visual C++ 2008 Redistributable Package (x64) from http://www.microsoft.com/en-us/download/details.aspx?id=15336
- Launch cmd.exe as administrator and run "pip install pillow"
- pip install GDAL-1.11.2-cp27-none-win32.whl from http://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal
- pip install rasterio-0.24.1-cp27-none-win32.whl from http://www.lfd.uci.edu/~gohlke/pythonlibs/#rasterio
- Install GeoTiff2RMP to a working directory from https://github.com/bazuchan/geotiff2rmp/archive/master.zip
- Copy gdal binaries to working directory from https://github.com/antalos/RMPCreator
Q. More Help
- Contact Author here.