Pretty geographical maps generation 🔰
The goal of the Imhof project, named in honor of the cartographer Eduard Imhof, is to write a program for drawing topographic maps in a style similar to that of Swiss maps, from freely available data. These data come partly from the project OpenStreetMap, and on the other hand from the site viewfinderpanoramas by Jonathan de Ferranti.
The map of Interlaken and its region, shown in Figure 1 below, was generated using the program. The style of this map draws heavily on that of national topographic maps.
Figure 1: Interlaken and its region. Image generated by the Imhof programFor comparison, Figure 2 below shows the official 1:50,000 map for this same region.
Figure 2: Interlaken and its region (© swisstopo)The program to be produced does not include a graphical interface. It simply takes as input two data files — the first containing the OpenStreetMap data, the second the terrain model — as well as information concerning the area to be drawn, and outputs a map image.
Figure 3 below illustrates the general organization of the program. On the one hand, OpenStreetMap data is loaded from an OSM file (in XML format) then transformed into simple geometric entities (segments lines and polygons) before being drawn to obtain a map without relief. On the other hand, the altimetric information is loaded from a DEM file (in HGT format), then transformed into a relief image. These two images are finally combined to get the final relief map.
Figure 3: Program organization- Dominique Roduit
- Thierry Treyer