Databases#
This page shows how to keep projects in a QMapShack database. The images use the example database Example.db.
Creating a database#
A database is one file that holds your projects, sorted into folders. The Database panel lists your databases.
Right-click an empty spot in the Database panel and click Add Database.
Enter
Exampleas Name and leave SQLite selected.Click the plus button marked in the image of step 2. Choose a folder, enter a file name and click Save.
The dialog opens in the folder you last chose a database in. If you have set up the home folder, QMapShack points it to its
Databasesfolder.If you already have a database file, click the folder button to the right of the plus button instead. Select the file and click Open.
Click OK. The database appears in the Database panel.
Folders#
A database keeps its data in folders. The color of a folder shows its type:
A Group folder (blue) holds other folders and helps to structure the data. You can’t load it into the workspace. Put Project folders into a Group folder, not directly into the database.
A Project folder (green) holds tracks, waypoints, routes and areas, like a project file. You can load it into the workspace.
An Other folder (orange) works like a Project folder. Use it as you like. For example, put a trip’s recording into a Project folder and the planning into an Other folder below it.
Right-click the Example database and click Add Folder.
Enter
Toursas Folder name and choose Group.
Click OK. The group Tours appears below Example.
Right-click Tours and click Add Folder. Enter
Alpine tour, choose Project and click OK.
Right-click Alpine tour and click Add Folder. Enter
Planning, choose Other and click OK.
Importing files#
You can put project files into a database without loading them into the workspace.
Right-click the folder for the projects, in this example the group Tours, and click Import from Files….
Select one or more files, for example
Vilsalpsee.gpx, and click Open.
QMapShack creates a Project folder for each file inside the folder you right-clicked. In this example, Vilsalpsee appears below Tours. The folder takes the name of the project in the file. QMapShack skips a project that is already in the database.
Exporting to GPX#
You can export a database, or one of its folders, to GPX files, for example to share the data.
Right-click the Example database and click Export to GPX….
Click the folder button marked in the image and choose a folder on your computer. Check GPX 1.1 without extensions to leave out QMapShack’s own data.
Click Start. QMapShack creates a folder for the database and for each group, and a GPX file for each Project and Other folder. The file name of an Other folder starts with the name of the folder above it.
When Done! appears, click Close.
Working with the workspace#
The database stores your data. You change it in the workspace: load a project, change it, save it back to the database and unload it again.
Click the load button marked in the image, at the right end of the row of Vilsalpsee.
The project appears in the Workspace panel as Vilsalpsee @ Tours: its name and the folder it is in.
Change the project as you would change a project file, for example add a waypoint. Then click the save button on the project’s row in the Workspace panel. QMapShack writes the changes to the database.
Click the load button in the Database panel again to unload the project. If the project has unsaved changes, QMapShack asks first: Save saves them, No discards them, Abort keeps the project loaded.
Removing an item from a project in the workspace leaves it in the database, even after saving. To delete it from a folder, right-click it in the Database panel and click Delete Item. An item that is no longer in any folder moves to Lost & Found. Deleting it there removes it permanently.