Saltar a contenido

Usar adjunto

En QField se puede utilizar un campo con el control Adjunto para:

  • mostrar y tomar fotos
  • mostrar y grabar vídeos
  • escuchar y grabar clips de sonido
  • mostrar enlaces a archivos externos, como PDF o documentos

Archivos adjuntos

Para configurar el control, consulte la Documentación de formularios de atributos

Añadir una serie de imágenes a un objeto

Preparación en escritorio

One or more pictures can be added to the feature. Here is an example of how to proceed.

Tablas

It is necessary to set up two tables. One table where the features are stored and one with a list of pictures.

Apiario

Campo Tipo
id Texto (UUID)
geometry Geometría
...

Apiary_pictures

Campo Tipo
id Texto (UUID)
apiary_id Texto (UUID)
path Texto
...

Relaciones

Crear una relación con:

  • apiary Capa referenciada
  • id Campo referenciado
  • apiary_picture Capa que referencia
  • apiary_id Campo que referencia
  • strength Composición

Relaciones

Controles

Apiario

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

widgets

Establezca el control de relación a muchas a una relación y añada la relación al formulario

widgets

Imágenes de apiario

Establezca el tipo de control del campo ruta a Adjunto y añádalo al formulario

widgets

Dibujar y esbozar

QField has an in-app drawing and sketching functionality enabling you to directly sketch over and annotate images captured while in the field as well as drawing on top of a blank canvas or over a template.

Drawing templates

On top of annotating captured images, QField supports drawing from image templates. The following two methods are available to add templates:

  • The first method is to create a drawing_templates folder located alongside a project file and populate it with images. Whenever that project is loaded, QField will register all images within that folder as drawing templates.
  • Alternatively, you can add images into the drawing_templates folder found inside your QField app folder. If you are not familiar with that app folder, its location is shown at the bottom of the About QField overlay.

Templates shipped alongside projects as well as the QField app folder will be shown when users choose 'Draw a sketch' within attachments widget's 3-dot menu.

picture path

Geoetiquetado

Trabajo de campo

La cámara interna de QField geoetiquetará automáticamente sus fotos.

La información sobre localización y dirección de las fotografías será entonces empaquetada dentro del archivo de imagen.

Note

While with older Android versions it was possible to use other apps like the amazing OpenCamera app for taking pictures and preserving EXIF information from there, this is no longer with recent Android versions. Is recommended to disable Use native Camera in the settings to preserve EXIF information.

Obtención de geoetiquetas (EXIF) del archivo de imagen en la tabla de atributos

Preparación en escritorio

Sometimes you might be interested in automatically storing Geotags such as the latitude, longitude, orientation, etc. This information is also known as EXIF tags.

Para almacenar la información EXIF, siga estos pasos:

  1. Añadir un atributo por etiqueta EXIF en la tabla que contiene las imágenes.
  2. En el formulario de imágenes, configure el valor predeterminado de cada atributo con el correspondiente Expresión EXIF Véase la función EXIF de QGIS, y asegúrese de que Aplicar al actualizar está activado.
  3. Las etiquetas EXIF que QField puede capturar se enumeran en la documentación de QGIS (enlace anterior). However, this list might slightly vary depending on the mobile characteristics.
  4. Capturing EXIF tags requires accessing the full physical path of the picture. Be sure to reflect this in the QGIS expression. Por ejemplo, la expresión exif(@project_folder + '/' + "ruta", 'Exif.Image.Orientation') genera la orientación de la imagen almacenada en ruta. For more tags visit the QField EXIF reference documentation and the exiv library documentation.
  5. Completed! QField now captures and stores the EXIF tags in the pictures table while taking pictures.

Tamaño máximo de la imagen

Preparación en escritorio

La configuración avanzada permite reescalar las fotos a una anchura/altura máxima en Complemento QFieldSync > Configuración del proyecto

imagen

Ruta de adjuntos configurable

Preparación en escritorio

QFieldSync provides the possibility to configure the path and the file names of picture attachments.

  1. Go to *Layer Properties > QFieldSync plugin *
  2. Elija la capa, el campo y configure la expresión.

Use expressions to specify the path of the attachments. By default, pictures are saved into the "DCIM" folder, audio are saved into the "audio" folder and videos are saved into "video" with a timestamp as name.

ruta de imágenes

Additional directories can be synchronized with pictures or other attachments. Extra paths can be configured in Attachment directories in the QFieldSync settings under project properties. All paths are relative to the project directory.

directorios de archivos adjuntos