工程¶
Projects are the main data containers on QField and QFieldCloud.
Users can create any number of projects.
Projects must contain a single .qgs
/.qgz
QGIS file, and may in addition contain any combination of geospatial files -- GeoPackages, Shapefiles, TIFs -- or data files such as photos, PDFs etc.
To ensure optimal performance, it is recommended to keep the size of any file sizes below 2GB. Larger files than this may take significantly longer to process and lead to jobs issues.
Files cannot be shared between projects, unless shared layers are used.
QFieldCloud projects have a name and an owner.
The owner of a project is a QFieldCloud user or an organization.
No two projects can use the same pair owner_name
and project_name
.
Projects can be marked as either public or private. Private projects are accessible only to users added to a project as project collaborators. Public projects are visible to, and can be downloaded by, any QFieldCloud user.
创建工程¶
A project can be created in multiple ways:
- via QFieldCloud web interface;
- via QFieldSync in QGIS;
- via QFieldCloud-SDK;
文件¶
Files are the skeleton on which QFieldCloud projects work.
To make a QFieldCloud project alive users need to upload at least a single QGIS project file in the .qgs
or .qgz
file formats.
All geospatial files must be uploaded using the same relative paths as on one's computer.
If external SVG or raster symbology is used, users must upload the corresponding files too.
笔记
QFieldCloud不支持存储在地理包 (.gpkg
) 文件中的工程 (但用户仍然可以使用地理包文件为其工程存储数据集)。
QGIS文件的典型文件结构如下所示:
project
├── data
│ ├── basemap.tif
│ ├── bees.gpkg
│ └── fields.gpkg
├── symbology
│ ├── icon.svg
│ └── line-pattern.png
├── DCIM
│ ├── bees-20220404121212.jpg
│ ├── bees-20220405040506.jpg
│ └── fields-20220405040607.jpg
├── project.qgs
├── project_attachments.zip
└── project.qml
The files in a QGIS project can be in one of the following groups by their purpose:
- QGIS project file - a
.qgs
or.qgz
project file. - QGIS sidecar files - the utility files to the QGIS project file, such as
*_attachments.zip
or other sidecar files. - Data source files - all your vector and raster data, such as
.gpkg
,.tif
,.mbtiles
or other data source files. - Attachments - all your additional project data, such as
.jpg
,.pdf
or other files. - QField plugins - all your QField plugins, usually
.qml
files.
文件版本¶
QFieldCloud uses file versioning. This allows users to restore any modified file to a previous version. Files and file versions can be found under the Files section of your projects. Subscriptions plans allow a different number of versions per file. See the qfield.cloud pricing page for further details.
删除旧文件版本¶
To ensure that only relevant file versions are kept, and to reduce the amount of storage needed by accounts, users can delete obsolete file versions. One can manually delete file versions from the project's File section. Each file and version can be linked to a specific QFieldCloud user who uploaded it.
要删除QFieldCloud中的文件版本,请执行以下步骤:
- 转到工程的 "文件" 部分。
- 找到要删除其版本的图层。
- 单击图层名称旁边的三点按钮。
- 您将看到指定图层的版本列表。
- 找出要删除的版本,然后单击旁边的红色垃圾桶图标。
- 当提示时确认删除,如果想删除特定版本之前的所有版本,您可以激活选项 "Also delete
n
version(s) older than the selected version.". - 删除后,将弹出一条成功删除信息,版本列表将仅显示未选择删除的版本。
合作者¶
A project collaborator is a QFieldCloud user invited to contribute to a project. A single project may have multiple collaborators. Collaborators with roles owner or admin can add more users as collaborators. Projects owned by an organization allow adding teams as collaborators. Read more about collaborator roles.
更改¶
Changes made on vector layers and uploaded to QFieldCloud from a QField device will appear here. A change stores the difference between attributes or geometries before and after the upload.
更改记录用于上传的方法,可以是以下之一:
创建 - create
- 已创建一个新要素。删除 - delete
- 已删除现有要素。修正 - patch
- 现有要素已修改。
已创建并稍后删除但未推送到QFieldCloud的要素不会出现在工程更改中。
笔记
对没有 "离线编辑" 云图层动作的在线矢量图层 (PostGIS、WFS) 所做的更改不会生成更改,而是 直接 修改原始数据源。
笔记
在QGIS中对矢量图层所做的更改不会显示在此处。
作业¶
请阅读有关 工程作业 的更多信息。
机密¶
Secrets are Project settings that are securely stored in an encrypted way. Jobs will automatically have access to project's secrets.
Read more about project secrets.
设置¶
工程设置仅适用于具有 "管理员" 角色的工程所有者和合作者。应谨慎处理 设置 ,因为用户可以修改敏感的工程设置并执行不可逆的动作。
- 将工程可见性更改为公共。
- 更改工程所有者。
- 永久删除工程。
- 等等
警告
从工程的设置页面发出的动作可能会导致数据丢失!