ms2view -- mapsoft2 viewer for geodata and raster maps
ms2view [<options>] <input files>
Show help message.
Show help message as POD template.
Be verbose.
Geodata input format (json, gu, gpx, kml, kmz, ozi, zip).
Garmin Utils format charset (default KOI8-R).
OziExplorer format charset (default Windows-1251).
Track drawing mode (normal, speed, height, default - normal).
Use transparent color (0..1, default - 0.5).
Draw dots (for normal drawing mode), default: 1.
Track width factor, default: 3px.
Min value for speed mode [km/h].
Max value for speed mode [km/h].
Min value for height mode [m].
Max value for height mode [m].
Color gradient (for speed or height modes), default: BCGYRM.
Waypoint font (default: "serif").
Waypoint font size, pixels (default: 10).
Waypoint text padding, pixels (default: 2).
Waypoint dot radius, pixels (default: 3).
Waypoint line width, (default: 1).
Length of waypoint flag stick (default: 10).
Waypoint color (default: 0xFF000000).
Waypoint background color (default: 0xFFFFFFFF).
Adjust waypoint flag positions to prevent mutual collisions (default: 1).
Adjust waypoint flag positions to prevent boundary collisions (default: 0).
Skip points if their labels can not be placed close enough (default: 10*wpt_stick_len).
Smooth map drawing, interpolation for small scales, averaging for large ones, (0|1, default - 0).
Clip map to its border (default 1).
Draw map reference points (ARGB color, default 0).
Draw map border (ARGB color, default 0).
Color to fade the map (default is 0, no fading).
Min scale (<map pixels>/<image pixels>) (default is 0.1).
Max scale (<map pixels>/<image pixels>) (default is 10).
Color to paint the map outside min_sc/max_sc (default is 0x80FF0000).
Set srtm data folder, default - $HOME/.srtm_data
Use overlay (0|1, default 1).
Interpolation (nearest, linear, cubic. Default: linear).
SRTM surface drawing mode (slopes, heights, shades, default - shades).
Min height [m] for heights and shades modes (default - 0).
Max height [m] for heights and shades modes (default - 5000).
Min slope [deg] for slopes mode (default - 35).
Max slope [deg] for slopes mode (default - 50).
Color to draw no-data and out-of-scale areas (default 0x60FF0000).
draw SRTM color surface (default 1).
Draw contours (0|1, default - 1).
Contour step [m], default 50.
altitude tolerance for smoothing contours [m], default 5
Step multiplier for thick contours, default - 5.
Contour color, default - 0xFF000000.
Contour line width, default - 0.25.
Width multiplier for thick contours, default - 2.
Size of round corners on contours, in linewidth units, default - 20.
Draw contours around data holes (1|0, default - 0).
Color of hole contours, default - 0xFF000000.
Linewidth of hole contours, default - 1.
Draw summits (0|1, default - 0).
Summit's color, default - 0xFF000000.
Summit point size, default - 3.
DH parameter for peak finder [m], default - 20.
PS parameter fr peak finder [pts], default - 1000.
Draw peak text (0|1, default - 1).
Peak text size, default - 10.
Peak text font, default - serif.
Open vector map
Rasterisation config-file instead of default raster.txt
Structure of ms2view window is simple: a viewer, a main menu, a statusbar, tables with waypoints, tracks, and maps, a few dialogs, etc. Appearence of these elements is controlled by GTK3 theme. One can customize it using CSS styles. Styles are read from two places: /usr/share/mapsoft2/mapsoft2.css -- system-wide file. By default it contains a few definitions, mostly for making interface elements smaller. Some tips about viewer structure can be also find there. $HOME/.mapsoft2/mapsoft2.css -- user-specific file.
Additional information about writing css styles can be found in GTK3 documentation or GTK theme sources:
https://developer.gnome.org/gtk3/stable/chap-css-overview.html
https://developer.gnome.org/gtk3/stable/chap-css-properties.html
Menu hotkeys can be changed in $HOME/.mapsoft2/mapsoft2.acc file. The file is read each time the program is started and written when it exits. A default hotkey mapping with all lines commented is written in the first run.
Mapsoft2 viewer uses the following algorithm to set viewer projection and view area:
Vladislav Zavjalov <slazav@altlinux.org>