跳转至

工程选择

QField has a file selector that allows to open a project from the device locally. To open files from the cloud see QFieldCloud.

Note

Starting with Android 11 apps are denied full access to main and external storage content. For QField, this means direct access to projects and datasets transferred and/or downloaded into storage folders is not possible anymore. You can know more about QField storage access.

You have to import project folders or individual datasets into the app-dedicated storage location <drive>:/Android/data/ch.opengis.qfield/files/QField where it has unrestricted read/write access. With that behavior importing from external SD cards or providers that work with remote files (e.g. Google Drive) are supported as well.

警告

请注意,卸载QField时,应用程序文件夹将被删除,而更新则不会。

导入并打开本地工程

QField界面

When going to Open local files (on the side Dashboard > Open) you will see a set of new folders named "QField files directory", "Imported datasets", and "Imported projects" as well as a drop-down menu accessible via a bottom-right plus button.

QField文件选择器
QField文件选择器

下拉菜单列出了导入工程和数据集的方式:从文件夹导入工程从ZIP导入工程 (归档文件)导入 (单) 数据集

从文件夹或ZIP归档文件导入工程

When importing a project from a folder or a ZIP archive, you will be asked to grant permission for QField to read the content of a given folder on the device's storage via a system folder picker. When the folder or the archive is selected, QField copies the content (including its sub-folders) into the app's "Imported projects" location. You can then open the project from there.

Re-importing a given folder through the drop-down menu action will overwrite preexisting projects given an identical folder name. That allows you to be able to update projects.

Warning

Note that feature editing, addition and deletion will be saved into the imported project's datasets, not in the original folder selected during the import process.

导入数据集

You can also import individual datasets. You will be asked to select one or more files via a system file picker, which will be copied into the "Imported datasets" folder. You have to ensure that all sidecar files are selected when importing (e.g. a Shapefile dataset would require you to select the .shp, .shx, .dbf, .prj, and .cpg files).

收藏夹目录

In the first screen of the file selector, there is a section showing the favorite directories. To add a directory to the favorites, long click in the file selector on the directory name. To remove an entry from the favorites, long click on the entry in the favorites list.

Set Default Project

This functionality allows you to set a specific project to be used as the default basemap whenever you open individual datasets. This is useful when a QFieldCloud project should be used as a basemap.

How to Set a Default Project

  1. In the welcome screen Recent Projects list.
  2. Press long on the project you wish to set as your default basemap.
  3. From the context menu that appears, select Set as Default Project.

Basemap Loading Logic

When you open an individual dataset, the application will now determine which basemap to load based on the following hierarchy:

  1. Default Project: The application will first check if a default project has been set. If so, it will be used as the basemap.
  2. Basemap File: If no default project is set, the application will look for a basemap.{qgs/.qgz) file within the QField directory on your device. If found, this project will be used.
  3. OpenStreetMap: If neither a default project nor a basemap file is found, a default OpenStreetMap XYZ layer will be loaded as the basemap.

检索修改的工程和数据集

桌面端筹备工作

Imported projects and datasets can be accessed directly using a USB cable. The location on storage is displayed in the top navigation bar when opening a local file.

在多数通过USB数据线连接插入计算机的设备上,路径将是 <drive>:/Android/data/ch.opengis.qfield/files/ ,在其中可以找到 "Imported Datasets" 和 "Imported Projects" 文件夹,您编辑的内容位于这些文件夹中。

发送到

QField界面

You can share and send the datasets straight from QField using Android APIs. This allows for the sending of edited datasets directly to third party apps (Gmail, Drive, Dropbox, Nextcloud, your favorite messenger app, etc.).

发送到...
发送到...