Create a Hiking Path Symbol Renderer. Step 1: Basics
Welcome to Marble, a virtual globe and world atlas that runs on Linux, Windows, MacOS and Android. Find your way and explore the world! :-)
This task is closely related to Marble, but you can do it without it. All you need is a development environment with C++ and Qt installed.
Hiking routes in in OpenStreetMap have an optional tag osmc:symbol which contains a textual, machine-readable description of an image. This task is about writing a Qt based tool that creates an image from the textual description.
- Try to find existing code that could be reused. Existing code should be simple (no dependencies to huge libraries) and must have a license compatible with Marble (e.g. LGPL, BSD, Public Domain). If you don't find anything, ignore this step.
- Setup a simple (!) Qt application that takes a string argument from the command line, creates a QImage or QPixmap and shows it (using e.g. a QLabel)
- To keep this task simple, implement support for just one fixed string at first: "red:white:red_bar:FW:gray". Create the corresponding QImage or QPixmap.
Test your application: osmc-symbol red:white:red_bar:FW:gray
should open a window showing the corresponding image.
There will be follow-up tasks to add support for other colors and symbols. The final code will be embedded into the Marble library.
Got a question or a problem you cannot solve on your own? Please contact your mentors:
- Using live chat via the #marble IRC channel in Freenode
- By mail using nienhueser@kde.org and rahn@kde.org