A WMS client for the terminal.
MapsInTerminal is a simple command line utility to view maps in the terminal using a WMS service.
Supports WMS version 1.1.1 and 1.3.0. Might work with other versions, but that is untested.
Tested on GNU/Linux, but might work on other Operating Systems as well.
Mozilla Public License, v. 2.0
This is the default projection, EPSG:3857.
mapsint http://some-wms-service/my/wms mylayer
Use a custom projection, for example EPSG:3006.
mapsint http://some-wms-service/my/wms mylayer --crs epsg:3006 --center 593000,6902000
Can be used with OpenStreetMap WMS provided by terrestris
mapsint https://ows.terrestris.de/osm/service OSM-WMS
(Map data from OpenStreetMap)
Pan: arrow keys
Zoom: +/-
Reset view: backspace
Exit: escape
- WMS CRS
- WMS image format
- WMS styles
- WMS version
- Center coordinate, view positioning
x,y
- Resolution (units/pixel), zoom level at startup
- Image gutter
- Image scaling
- Basic Auth
user:pass
- Invert axis order
- Disable SSL certificate verification
To see all options run: mapsint --help
It is possible to set default values for options by creating a file named .MapsInTerminal
in the user's home directory:
{
"crs": "EPSG:3857",
"format": "image/png",
"styles": null,
"version": "1.1.1",
"center": "2044638,8251379",
"res": 1222.992452562820,
"gutter": 0,
"scaling": 1,
"auth": null,
"invert": false,
"ssl_verify": true
}
- Python 3
- requests
- Pillow
- pager
- img2txt.py
cd MapsInTerminal
pip install .