跳转至

高级设置向导

支持矢量数据

Currently, QFieldCloud supports GeoPackage and PostGIS layers for collaborative editing. Other formats supported by QGIS should also work but are not officially supported.

使用地理包

使用地理包通常是简单设置的最佳选择,可将QField用户收集的数据集中到一个文件中。

If you would like to set up a relation, add a UUID field and use that as the primary or foreign key.

Note

Do not use the default fid field for relations (as primary or foreign key). It will lead to errors over time.

工作流程示例 (地理包)

桌面端筹备工作

  1. 创建新工程。
  2. Create GeoPackage layers, save it in the same folder than the QGIS project.
  3. 在QField同步插件中将地理包设置为 "离线编辑" 。
  4. 将工程上传到QFieldCloud。

QField界面

  1. Sign in to QFieldCloud and download the project to your device.
  2. Collect and edit some data and upload the changes.

Desktop

  1. Using QFieldSync, download the updated files (the GeoPackage file should have changed).

Warning

This workflow does not support changing the GeoPackage on the desktop, as being file-based, the whole GeoPackage will be replaced. This means that data can only be digitized using QFieldCloud.

PostGIS

Using PostGIS layers is a good choice if your data should directly be editable for multiple users through QFieldCloud when they sync their work without any further steps.

It requires your database to be publicly accessible, and credentials must be saved unencrypted in the QGIS project. Please be aware of the security implications of such requirements, and remember to have backups.

工作流程示例 (PostGIS)

桌面端筹备工作

  1. 创建新工程。
  2. 创建并添加PostGIS图层,确保将网络凭证存储在工程中。
  3. Make sure the PostGIS database connection is publicly accessible (public IP or domain name, it will not work with 127.0.0.1 or localhost).
  4. In the QFieldSync project settings, set the GeoPackage to "Offline editing" if your QField users will not have a reliable internet connection in the field or "Direct database access".
  5. 将工程上传到QFieldCloud。

QField界面

  1. Sign in to QFieldCloud and download the project.
  2. Collect some data
  3. Push or synchronize the changes once back at the office if you were using offline editing.

Desktop

  1. All changes should be directly visible inside the PostGIS database.

Note

When using direct database access, QFieldCloud will directly edit data in the PostGIS database. This will only work with a reliable internet connection in the field, but has the advantage that all data is directly visible to all users and allows to use any PostGIS specific setup (triggers, generated fields, etc).

Note

When using offline editing, QField will work on a local copy of the database in a GeoPackage, which will be synced by QFieldCloud to the original database once synchronized by the user. We recommend to use this option to avoid unnecessary data losses in case of lost data connection.

Changes will only be visible to users once the Synchronisation via QFieldCloud has been applied on the different devices. When a local copy is created, advanced PostGIS operations (like triggers) will not be available on QField.

您可以在 QFieldCloud技术参考 中找到更多信息。

Restriction of Project Files

To prevent any modification to the core QGIS project file, the project administrators can restrict the access to these files. This can be achieved under the settings section in QFieldCloud.

  1. From the QFieldCloud homepage direct to Settings
  2. Enable the Restrict project files button

Once set, only administrators and managers will be able to push changes to the files listed above. Other project collaborators can still upload and modify other project files, such as data in GeoPackages, but they cannot alter the main project file or its core components.

Restricted Files

When enabled, the following files can only be modified or uploaded by a user with an "admin" or "manager" role for the project:

  • The primary QGIS project file (e.g., my_project.qgz).
  • The attachments zip archive associated with the project (e.g., my_project_attachments.zip).
  • QGIS auxiliary data files that store information like label positions (e.g., my_project.qgd).
  • QField style files (.qml) that share the same name as the project file.

Automatic push to QFieldCloud

With this functionality, you can enforce automatic pushing of pending changes to QField devices in the field, as well as specify the interval in between automated pushes. The functionality is activated through a project setting, allowing remote activation.

桌面端筹备工作

  1. Access Project Settings: Direct to Project > Properties... > QField > QFieldCloud Packaging

  2. Enable Auto-Push: Toggle the "Automatically push pending changes on the following interval" option and establish your preferred interval.

Auto push QFieldSync
Auto push QFieldSync

Auto push QField
Auto push QField

Note

Benefits:

  • Real-Time Updates: Ensures prompt Synchronisation of field data with the QFieldCloud project.
  • Streamlined Workflow: Minimizes manual intervention and ensures surveyors do not need to worry about Synchronisation, helping them focus on data quality.

Considerations:

  • Network Stability: Ensure stable internet connectivity for auto-push functionality.
  • Battery Optimization: Implement strategies to mitigate battery consumption on QField devices during prolonged fieldwork.

Project creation in an organisation

如何在组织中创建工程:

Option 1: Using QField Sync

  1. Follow the steps configure your cloud project, until you get to the "Project details".

  2. 将工程的所有者更改为您的组织。

    在QFieldCloud中查看工程文件

  3. Click on "Create" to start the conversion and Synchronisation. When finished the project will appear in the list of projects of your Organization in QFieldCloud.

    Project files overview in QFieldCloud

Option 2: Using QFieldCloud

  1. In the QFieldCloud landing page direct to your organization.

    Entering into Organization

  2. Click on "Create a project".

    Creating Project

  3. Select "Create a new empty project"

    New empty project

  4. 您可以在概览中看到新工程。

    New project created

  5. In QGIS open QFieldSync and you will see the new project listed, click on "Edit Selected Cloud Project".

    QFieldSync

  6. 选择要保存工程的文件夹。

    Selecting folder

  7. 在所选文件夹,可以粘贴已处理或保存新的工程。

    Copy to project folder

  8. 一旦文件夹包含工程,就可以对其进行同步。

    QFieldSync Overview

  9. 最后,将更改推送到云端。

    Pushing changes to QFieldCloud

  10. 您可以验证这些文件是否存在于组织工程中。

    Project files over view in QFieldCloud

Option 3: Changing the Ownership of a project

  1. On the QFieldCloud landing page, click on your project of concern.
  2. Direct to the Settings and select "Transfer ownership of this project" and choose the desired Organization for the transfer.

    Transferring to Organization

  3. A pop-up window will appear to confirm the transfer. To proceed, you will need to type the requested text and click "Transfer project".

    Confirm transfer

Activate email notifications for QFieldCloud changes

If you wish to be notified by QFieldCloud what happens to your team(s) and your projects, you can activate the email notification option.

  1. On your QFieldCloud landing page direct to settings.
  2. Navigate to the notifications section. Here, you can customize the frequency of notifications you wish to receive at the email address registered with your account.

Synchronize

The events you get notified about are:

  • 已创建的用户
  • 已创建的组织
  • 已删除的组织
  • 已创建的组织成员
  • 已删除的组织成员
  • 已创建的团队
  • 已删除的团队
  • 已创建的团队成员
  • 已删除的团队成员
  • 已创建的工程
  • 已删除的工程
  • 已创建的工程成员
  • 已删除的工程成员

You will receive notifications for events in which you are not the actor. These notifications are specifically for events that are initiated by other members of your organization or collaborators on your projects.

Enhance your project with the "Optimized Packager"

We recommend using the new "Optimized Packager" over the deprecated "QGIS Core Offline Editing" for all your projects. The "Optimized Packager" supports consolidating filtered layers of same datasource into a single offline layer, respecting distinct symbology but also using less storage.

  1. On the QFieldCloud landing page and select the project of concern
  2. Direct to Settings and set the packager under "Packaging Offliner" in the "Settings" tab of your project.

Here is an example to illustrate this feature:

Example Configuration:

  • Layer 1.1:
  • Data Source: layers.gpkg
  • Table: layer1
  • Filter: id % 2 = 1

  • Layer 1.2:

  • Data Source: layers.gpkg
  • Table: layer1
  • Filter: id % 2 = 0

Result:

For the new offliner:

  • A single layer is generated in the offline GeoPackage, combining data from layer1 with the specified filters.

For the old (QGIS) offliner:

  • Two separate layers are created, each representing the filtered datasets:
  • Layer 1: Filtered with id % 2 = 1
  • Layer 2: Filtered with id % 2 = 0

Note

This configuration must be set in the Settings page of each project in QFieldCloud.

Configuration of Attachment Folders

If your project contains photos, documents or other attachments, you have to configure your QGIS project accordingly to ensure that the data are downloaded to your QField device.

  1. In QGIS navigate to Project > Properties... > QField.
  2. Add your folder's path to the "Attachments and Directories" list. The path you enter must be relative to the location of your project file.

Example

You used pictures for a specific symbology. These are stored in a folder named "assets" located inside your project home folder. Add them under the folder name to the list.

On-Demand Attachment Downloads

For projects with many attachment files, you can enable on-demand downloading in QField. This is useful for saving storage space on field devices and reducing data transfer over limited network connections.

To enable this feature:

  1. From the QFieldCloud landing page, select your project.
  2. Direct to Settings.
  3. Enable the "On demand attachment files download" option.

Note

This feature can be activated during project creation or enabled at any time for existing projects.

Connect to a custom QFieldCloud server in QField and QFieldSync

QField and QFieldSync connect to the QFieldCloud service app.qfield.cloud by default.

You can modify the default that QField and QFieldSync connect to:

  1. 在 QField 或 QFieldSync 中打开登录界面。
  2. Double-tap on the Nyuki icon (the QFieldCloud logo).
  3. 此动作将显示一个字段,您可以在其中输入首选 QFieldCloud 服务器地址。
  4. 在提供的字段中输入所需服务器的详细信息。 (Leaving the field empty will automatically connect to the QFieldCloud server)

Revealing server in QFieldSync
Revealing server in QFieldSync

Revealing server in QField
Revealing server in QField

Note

QField will remember the last entered URL for future sessions. It's important to note that QFieldSync does not support the same cloud project in multiple QGIS profiles. As a recommendation use a single QGIS profile for your QFieldCloud projects to avoid Synchronisation issues.