工程选择¶
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界面
当转到 打开本地文件 (通过 菜单按钮 > 打开) 时,您将看到一组名为 "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.
通过下拉菜单操作重新导入指定文件夹,将盖写已存在相同文件夹名称的现有工程。此操作允许您更新工程内容。
警告
请注意,要素的编辑、添加和删除将保存在导入工程的数据集中,而不是导入过程中选择的原始文件夹。
导入数据集¶
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¶
- In the welcome screen Recent Projects list.
- Press long on the project you wish to set as your default basemap.
- 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:
- Default Project: The application will first check if a default project has been set. If so, it will be used as the basemap.
- Basemap File: If no default project is set, the application will look for a
basemap.{qgs/.qgz)
file within theQField
directory on your device. If found, this project will be used. - 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 favourite messenger app, etc.).