🗺 Imhof

Team project lasting for 3 months, carried out in pairs as part of the EPFL course « Practice of object-oriented programming »

Java 8

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 open source data. These data come partly from the project OpenStreetMap, and on the other hand from the site viewfinderpanoramas by Jonathan de Ferranti.

Interlaken
Figure 1: Interlaken and its region. Image generated by the Imhof program

For comparison, Figure 2 below shows the official 1:50,000 map for this same region.

Interlaken Swisstopo
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.

Sorry, your browser does not support SVG.
Figure 3: Program organization

Professor: Michel Schinz | Course website