Bohrprofil Software

← Back to Projects

Bohrprofile (eng. borehole profiles) show which soil and rock layers were found at which depth in a borehole. For construction projects they tell you what the foundation will sit on. I built this tool for a client who draws these profiles for building sites: you enter the layers, and the profile is drawn to scale next to the input.

Bohrprofil main window with an example profile

The app is written in Python with Tkinter, and the drawing is done with Pillow at 300 DPI. Code and a Windows download are on GitHub.

Features:

The drawing code doesn't depend on the UI, so it is covered by tests that run in CI on Linux and Windows. The PDF export is a small hand-written PDF writer (one JPEG on an A4 page), which avoids pulling in a PDF library. Releases are built with Nuitka by a GitHub Actions workflow.

A saved profile looks like this:

{
  "title": "Bohrung B1",
  "height": 412.5,
  "max_depth": 6.0,
  "layers": [
    {
      "end_depth": 0.3,
      "texture": "Humus",
      "description": "Oberboden, humos,
dunkelbraun"
    },
    {
      "end_depth": 1.4,
      "texture": "Lehm sandig",
      "description": "Lehm, sandig,
steif, braun"
    },
    ...
  ]
}
Bohrprofil configuration dialog