Authoring and publishing projects from QGIS
For GIS operators. Install the kField Sync plugin, prepare a project for the field, publish it to kFieldCloud, and pull captured data back into QGIS.
1. Install the kField Sync plugin
kField Sync is a free QGIS plugin that talks to the kFieldCloud server. It is distributed from kField's own plugin repository, so you only need to add the URL once.
- In QGIS, open Plugins → Manage and Install Plugins → Settings.
- Under "Plugin Repositories", click Add.
- Name:
kField· URL:https://fdc.kfield.app/plugins.xml - Click OK. QGIS fetches the catalog.
- Switch to the All tab, search "kField", and click Install Plugin.
- Restart QGIS.
2. Sign in
- Top menu → kField Sync → Cloud Projects Overview.
- The login dialog appears with
fdc.kfield.apppre-filled. - Enter your kFieldCloud username and password.
- Optional: tick Stay signed in to skip the login next time.
3. Prepare a project for the field
Build your QGIS project as you normally would: add layers, design attribute forms, set a default extent. Three things to set up specifically for field use:
- Hide system fields like
fid. In Layer Properties → Attributes Form, select the field and set Widget Type to Hidden. Otherwise field officers will be prompted to type values that should be auto-generated. - Configure photo fields. For a column that should hold a photo (Text type, length 500), set Widget Type to Attachment, with "Relative paths" → Relative to project path.
- Set photo naming. Open Plugins → kField Sync → Configure Current Project → Photo Naming tab. For each Attachment field, enter an expression like:
This makes kField save photos under the project's DCIM folder with a unique timestamped name.'DCIM/<layername>_' || format_date(now(),'yyyyMMddhhmmsszzz') || '.{extension}'
4. Publish to kFieldCloud
- Top menu → kField Sync → Synchronize with kFieldCloud.
- Click Create new cloud project.
- Pick a project name and the kFieldCloud account or organisation that should own it.
- Click Create → Upload. The plugin packages the project (geopackage + qgs + attachments) and pushes it.
- Officers assigned to that account will now see the project on their phones the next time they open the kField app.
5. Pull field data back
- When officers sync, their changes (new features + photos) land in the cloud.
- In QGIS, open kField Sync → Synchronize with kFieldCloud.
- Pick the project from the list, then Pull changes.
- The local copy under
~/kField/cloud/<project>/is updated. - Open the project, click any new feature, switch to Form view, and you'll see the photo thumbnail rendered inline.
Tip Newly captured photos arrive under
~/kField/cloud/<project>/DCIM/. Click any thumbnail in the form view to open the full-resolution image in your system viewer.Common pitfalls
- Photos exist on the phone but the form shows no thumbnail. Make sure officers use kField's built-in camera (Settings → "Use integrated camera") so geotags and EXIF metadata are embedded.
- Joins create stray
fid_1columns. Hide them via Widget Type → Hidden, or drop them from the GeoPackage with the DB Manager. - Sync "Aborted" mid-download. If you see a download abort, tick "Stay signed in" on the login dialog and retry. (kField Sync >= 4.19.0-kf1 fixes this even without the checkbox.)