跳转至

Use pictures

In QField a field with Attachment widget can be used to: - show and take photos - show links to external files like pdfs or documents

To configure the Widget, please refer to the Attributes Form Documentation

为要素添加多张图片

Desktop preparation

You can add one or more pictures to a feature. Here is an example on how to proceed.

Tables

You will need two tables. One table where the features are stored and one with a list of pictures.

Apiary

Field Type
id Text (UUID)
geometry 几何图形
...

Apiary_pictures

Field Type
id Text (UUID)
apiary_id Text (UUID)
path Text
...

关系

创建关系如下:

  • apiary Referenced layer
  • id Referenced field
  • apiary_picture Referencing layer
  • apiary_id Referencing field
  • strength Composition

Relations
Relations

部件

Apiary

Set the default value of the field id to uuid() or use the UUID Generator widget. No need to show it in the form.

widgets
widgets

Set the relation widget to many to one relation and add the relation to the form

widgets
widgets

Apiary picture

Set the widget type of the field path to Attachment and add it to the form

widgets
widgets

智能影像定位

Fieldwork

某些移动设备需要安装 Open Camera 才能启用智能影像定位。

要启用智能影像定位,请执行以下步骤:

  1. In QField, go to the settings and make sure Use native Camera is activated
  2. Install the Open Camera app on your mobile device
  3. 在 Open Camera 设置中,确保启用了智能影像定位功能
  4. 在您的移动设备设置中,请将默认相机应用程序设置为 Open Camera
  5. 非常好!现在将在QField中使用 Open Camera 进行拍照

Configurable picture path

Desktop preparation

QFieldSync gives the possibility to configure the path of picture attachments.

  1. Go to QFieldSync plugin > Project configuration
  2. Select the table "Photo Naming"
  3. Choose the layer, the field and configure the expression

Use expressions to configure the path of the attachments. By default, pictures are saved into the "DCIM" folder with a timestamp as name.

picture_path
picture_path

Note

QGIS 3.14 or newer is required for this functionality

回到页面顶部