Use pictures¶
In QField a field with Attachment widget can be used to: - Mostrar e tirar fotos - mostrar ligações para ficheiros externos como pdfs ou documentos
To configure the Widget, please refer to the Attributes Form Documentation
Adicione uma série de fotos a um elemento¶
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 |
Geometria |
... |
Apiary_pictures¶
Field | Type |
---|---|
id |
Text (UUID) |
apiary_id |
Text (UUID) |
path |
Text |
... |
Relações¶
Crie uma relação com:
apiary
Referenced layerid
Referenced fieldapiary_picture
Referencing layerapiary_id
Referencing fieldstrength
Composition
Widgets¶
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
Etiqueta de Geolocalização¶
Fieldwork
Alguns dispositivos móveis irão necessitar da aplicação Open Camera instalada para que possa ativar as etiquetas de geolocalização.
Para ativar a opção de adicionar etiqueta de geolocalização siga os seguintes passo:
- In QField, go to the settings and make sure Use native Camera is activated
- Install the Open Camera app on your mobile device
- Dentro das configurações da aplicaçã Open Camera, garante que a opção de etiqueta de geolocalização está ativa.
- Dentro das configurações do dispositivo móvel, defina como aplicação de câmera padrão para o Open Camera
- Completo| O Open Camera agora será utilizado para tirar fotos com o QField
Caminho configurável para as imagens¶
Desktop preparation
QFieldSync gives the possibility to configure the path of picture attachments.
- Go to QFieldSync plugin > Project configuration
- Selecione a tabela "Convenção para as Fotos"
- Escolha a camada, o campo e configure a expressão
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