Skip to content

Commit 850db10

Browse files
authored
Merge pull request #495 from mapperfr/master
Ajout article MapSCII et bio JG
2 parents d2a1650 + 7fbdd73 commit 850db10

File tree

3 files changed

+102
-3
lines changed

3 files changed

+102
-3
lines changed
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
---
2+
title: "OpenStreetMap dans le terminal, en braille et en ASCII"
3+
authors:
4+
- Jérémy Garniaux
5+
categories:
6+
- article
7+
date: "2021-12-31 13:00"
8+
description: "Présentation de MapSCII, une application Node.js permettant de naviguer dans un version ASCII d'OpenStreetMap depuis le terminal."
9+
image: https://cdn.geotribu.fr/img/articles-blog-rdp/articles/mapscii/mapscii_0.png
10+
license: default
11+
robots: index, follow
12+
tags:
13+
- mapscii
14+
- nodejs
15+
- terminal
16+
- OpenStreetMap
17+
---
18+
19+
# OpenStreetMap dans le terminal, en braille et en ASCII
20+
21+
:calendar: Date de publication initiale : 31 décembre 2021
22+
23+
![logo OpenStreetMap](https://cdn.geotribu.fr/img/logos-icones/OpenStreetMap/Openstreetmap.png "logo OpenStreetMap"){: .img-rdp-news-thumb }
24+
25+
[Publié sur Github](https://github.com/rastapasta/mapscii) en 2017 par le développeur allemand Michael Straßburger, MapSCII est une application Node.js qui propose de naviguer dans la carte mondiale d'OpenStreetMap... depuis un [terminal](https://fr.wikipedia.org/wiki/Terminal), avec un style cartographique détonnant construit en braille et en [ASCII](https://fr.wikipedia.org/wiki/American_Standard_Code_for_Information_Interchange) !
26+
Le projet, qui nous avait échappé jusqu'ici, dispose d'une démo rapidement consultable, mais peut aussi être téléchargé et personnalisé.
27+
28+
Petit tour d'horizon.
29+
30+
[![MapSCII 1](https://cdn.geotribu.fr/img/articles-blog-rdp/articles/mapscii/mapscii_1.png "MapSCII 1"){: .img-center loading=lazy }](https://cdn.geotribu.fr/img/articles-blog-rdp/articles/mapscii/mapscii_1.png){: data-mediabox="lightbox-gallery" data-title="MapSCII - Asie centrale"}
31+
32+
[Commenter cet article :fontawesome-solid-comments:](#__comments){: .md-button }
33+
{: align=middle }
34+
35+
----
36+
37+
## Lancer la démo
38+
39+
### Linux et MacOS
40+
41+
MapSCII est accessible via le protocole [telnet](https://fr.wikipedia.org/wiki/Telnet). Si vous êtes sous Debian/Ubuntu, telnet devrait être installé par défaut. Sous MacOS, vous pouvez utiliser le gestionnaire de paquets [Homebrew](https://brew.sh/index_fr) pour installer telnet en rentrant la commande suivante dans une fenêtre de Terminal :
42+
43+
```bash
44+
brew install telnet
45+
```
46+
47+
Ensuite, la commande pour lancer MapSCII dans le terminal sous Linux ou MacOS est :
48+
49+
```bash
50+
telnet mapscii.me
51+
```
52+
53+
<!-- markdownlint-disable MD033 -->
54+
<script id="asciicast-117813" src="https://asciinema.org/a/117813.js" async></script>
55+
<!-- markdownlint-enable MD033 -->
56+
57+
### Windows
58+
59+
Sous Windows, telnet est accessible avec le logiciel client [PuTTY](https://www.putty.org/). Au lancement de PuTTY, Il faut indiquer `mapscii.me` comme nom d'hôte, `telnet` comme type de connexion, avant d'ouvrir la connexion.
60+
61+
![MapSCII Putty](https://cdn.geotribu.fr/img/articles-blog-rdp/articles/mapscii/mapscii_putty.png "MapSCII Putty Windows"){: .img-center loading=lazy }
62+
63+
----
64+
65+
## Installation locale
66+
67+
Il est possible d'installer MapSCII en local, via[Node.js](https://nodejs.org/fr/download/) :
68+
69+
```sh
70+
npm install -g mapscii
71+
```
72+
73+
Un snap dédié est aussi disponible sous Ubuntu : `sudo snap install mapscii`.
74+
75+
MapSCII se lance ensuite avec`mapscii`.
76+
77+
[![MapSCII_screenshot_3](https://cdn.geotribu.fr/img/articles-blog-rdp/articles/mapscii/mapscii_3.png "MapSCII 3"){: .img-center loading=lazy }](https://cdn.geotribu.fr/img/articles-blog-rdp/articles/mapscii/mapscii_3.png){: data-mediabox="lightbox-gallery" data-title="MapSCII - Zoom"}
78+
79+
----
80+
81+
## Personnalisation
82+
83+
Vous pouvez également personnaliser différents aspects de MapSCII : changer le style (l'application est fournie avec deux styles Mapbox au choix, Bright ou Dark), ou bien explorer d'autres services d'autres lots de tuiles vecteurs, en local ou en se connectant à un service distant.
84+
Ces éléments sont assez faciles à identifier dans le code source : par exemple, le fichier [`/src/config.js`](https://github.com/rastapasta/mapscii/blob/2315a3515c8870b8f88b1aa7978922fc7d426777/src/config.js#L10) permet d'indiquer, ligne 10, le fichier de style au format JSON à utiliser.
85+
86+
[![MapSCII_screenshot_5](https://cdn.geotribu.fr/img/articles-blog-rdp/articles/mapscii/mapscii_5.png "MapSCII 5"){: .img-center loading=lazy }](https://cdn.geotribu.fr/img/articles-blog-rdp/articles/mapscii/mapscii_5.png){: data-mediabox="lightbox-gallery" data-title="MapSCII - Style personnalisé"}
87+
88+
Ces aspects de personnalisation dépassent un peu, pour le moment, les compétences de l'auteur de ces lignes, qui fera de son mieux pour développer ce dernier point quand il aura percé les secrets des packages Node.js... N'hésitez pas à compléter cet article si vous le souhaitez, et bonne exploration de MapSCII en attendant !
89+
90+
----
91+
92+
## Auteur {: data-search-exclude }
93+
94+
--8<-- "content/team/jgar.md"
95+
96+
{% include "licenses/default.md" %}

content/team/jgar.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Jérémy Garniaux {: data-search-exclude }
2+
3+
Géographe de formation, tendance urbaine, je tombe dans la géomatique libre à partir de 2008. Je participe alors à des traductions de documentation (QGIS, OpenLayers, Mapserver) et devient contributeur OpenStreetMap. Après plusieurs années à exercer comme cartographe indépendant pour la presse ou l'édition, je rejoins le LPED (Aix Marseille Université) comme ingénieur d'études au service de la recherche en urbanisme et changement climatique. Depuis 2020, je suis développeur pour la science ouverte en archéologie au sein de la MMSH à Aix-en-Provence.

content/theme/home.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,14 @@ <h3>Articles</h3>
131131
</div>
132132
<div class="second-column">
133133
<div class="image-wrapper">
134-
<a href="/articles/2021/2021-11-09_fiche_geolecture_enfer_numerique/" title="Lien vers le dernier article" >
134+
<a href="/articles/2021/2021-12-31_mapscii_osm_terminal/" title="Lien vers le dernier article" >
135135
<img
136-
src="https://cdn.geotribu.fr/img/articles-blog-rdp/articles/geolecture_enfer_numerique/enfer_numerique_v2.png"
136+
src="https://cdn.geotribu.fr/img/articles-blog-rdp/articles/mapscii/mapscii_0.png"
137137
alt="lien vers le dernier article publié"
138138
loading="lazy"
139139
draggable="false"
140140
title="Illustration du dernier article publié">
141-
<div class="image-overlay">Fiche de géo-lecture du livre <i>L'enfer du numérique</i> de Guillaume Pitron, par Aurélien Chaumet.</div>
141+
<div class="image-overlay">Présentation de MapSCII : OSM dans le terminal, en braille et en ASCII, par Jérémy Garniaux.</div>
142142
</a>
143143
</div>
144144
</div>

0 commit comments

Comments
 (0)