Update: Input has been renamed as Mergin Maps as of May 2022.
During FOSS4GUK 2019 in Edinburgh we ran a workshop for collecting data using Mergin Maps. This is the content of the workshop with all the datasets.
To be able to work with Mergin Maps, you will need the following:
For the purpose of this workshop, we have prepared a QGIS project. Let'suse that as a starting point:
The project you have copied in Mergin, is a QGIS project with variousmap layers. To see the content of the project in QGIS:
Alternatively:
The above process can be done through the Mergin plugin for QGIS. To dothat:
Mergin Maps is based on QGIS, therefore, any layer symbology / styles you setin QGIS, will be displayed in Mergin Maps. If you are using SVGs (e.g. OSMasterMap), you need to embed these in the QGIS project.
Mergin Maps also supports most of the edit widgets from QGIS. Edit widgetsallow you to simplify filling-in forms with drop-down options,TRUE/FALSE switches, sliders, calendar and time, default values,attachments, value relations and more. To see some of those settings:
For this layer, we have set the Photo field to use an Attachment widget.This will allow Mergin Maps to make use of your mobile camera to attach photosto features.
For the Surveyor field, we have linked it to an external CSV table, topopulate a drop-down option with the names of surveyors.
Mergin Maps can also use a pop-up window (similar to Google Maps) to displaybasic information about a single feature:
To customise this pop window's content:
# image
file:///[%@project_folder%]/[% "Photo" %]
To simplify handling layer visibility, Mergin Maps makes use of map themesdefined in your QGIS project. In this project, there is a map theme foraerial photo (using a Bing aerial layer) and OpenStreetMap (geopackage).
[]{#anchor-5}Survey layer
In Mergin Maps, any vector layer (point, line, polygon) can be edited (as longas editing that format is supported in QGIS). This could be veryconfusing when dealing with large numbers of vector layers in a singleproject (trying to figure out which one to edit).
Luckily you can set background layers (or those you don't want to beeditable in Mergin Maps) to read-only:
Below is the list of layers and their capability settings for theproject. Layers not marked as read-only will be shown as surveylayers (editable) in Mergin Maps.
By default, the file paths to layers are relative. You can change thatunder the General tab of this window.
To use Mergin Maps, open the app on your device. On its first run, Mergin Maps willshow the Projects page.
When you open the project, you may not see all layers. This is becausesome of the layers have zoom-dependant visibility settings (againconfigured in QGIS).
To switch map themes:
You can also display feature details simply by tapping on them.
To capture data:
If you are recording a line or a polygon, you can either add points to definethe shape of your feature or press and hold the GPS icon when inRecord mode to generate a shape from your GPS track.
You can edit the existing features on your map. For point layers, youcan edit geometry and form data. For lines and polygons, you can editonly the form data.
Let's get out and capture some data for the Path layer!
Once you have made changes to your data, you can upload them back to Mergin:
You can now download the project again to your desktop and see thechanges in QGIS. Alternatively, you can synchronise the changes you madeback to QGIS by using the Mergin plugin for QGIS (described earlier).
Let's make the QGIS work for you
Lutra Consulting is a QGIS-focused expert provider of geospatial software development, consulting, training, and support services.