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
Dodaj serię zdjęć do obiektu¶
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 |
Geometry |
... |
Apiary_pictures¶
Field | Type |
---|---|
id |
Text (UUID) |
apiary_id |
Text (UUID) |
path |
Text |
... |
Relacje¶
Utwórz relację z:
apiary
Referenced layerid
Referenced fieldapiary_picture
Referencing layerapiary_id
Referencing fieldstrength
Composition
Widżety¶
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.
Set the relation widget to many to one relation and add the relation to the form
Apiary picture¶
Set the widget type of the field path to Attachment and add it to the form
Geotagowanie¶
Fieldwork
Niektóre urządzenia mobilne wymagają zainstalowania Open Camera, aby umożliwić geotagowanie.
Aby włączyć geotagowanie, wykonaj następujące kroki:
- In QField, go to the settings and make sure Use native Camera is activated
- Install the Open Camera app on your mobile device
- Upewnij się, że w ustawieniach Open Camera jest włączone geotagowanie.
- W ustawieniach urządzenia mobilnego ustaw domyślną aplikację do zdjęć na Open Camera.
- Gotowe! Open Camera będzie teraz używana podczas robienia zdjęć za pomocą QField.
Configurable picture path¶
Desktop preparation
QFieldSync gives the possibility to configure the path of picture attachments.
- Go to QFieldSync plugin > Project configuration
- Select the table "Photo Naming"
- 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.
Note
QGIS 3.14 or newer is required for this functionality