Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GeoPackage - Field domain added to Browser #9276

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/user_manual/introduction/browser.rst
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,15 @@ each level of the dataset tree.
| +--------------------------------------------+--------------+--------------+------------+------------+---------------+------------+
| | :guilabel:`Remove Connection` | |checkbox| | |checkbox| | |checkbox| | |checkbox| | |checkbox| | |
| +--------------------------------------------+--------------+--------------+------------+------------+---------------+------------+
| | :menuselection:`New Field Domain --> | | | | | | |
| | New Range Domain` | |checkbox| | | | | | |
| +--------------------------------------------+--------------+--------------+------------+------------+---------------+------------+
| | :menuselection:`New Field Domain --> | | | | | | |
| | New Coded Values Domain` | |checkbox| | | | | | |
| +--------------------------------------------+--------------+--------------+------------+------------+---------------+------------+
| | :menuselection:`New Field Domain --> | | | | | | |
| | New Glob Domain` | |checkbox| | | | | | |
| +--------------------------------------------+--------------+--------------+------------+------------+---------------+------------+
| | :guilabel:`Delete <database_name>` | |checkbox| | |checkbox| | | | | |
| +--------------------------------------------+--------------+--------------+------------+------------+---------------+------------+
| | :guilabel:`Compact Database (VACUUM)` | |checkbox| | | | | | |
Expand Down
15 changes: 15 additions & 0 deletions docs/user_manual/managing_data_source/opening_data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,19 @@ To load a layer from a file:
.. index:: ArcInfo Binary Coverage, Tiger Format, UK National Transfer Format
.. index:: US Census Bureau

.. note::

When loading vector layers into QGIS, fields with |sourceFields| :guilabel:`Field Domains`
(such as those defined in a GeoPackage or ESRI File Geodatabase) are automatically
detected. These domains are database-level constraints, meaning they are enforced
by the database itself and apply across different applications, not just QGIS.
This differs from the QGIS-only **Value Maps** widget, which is saved within QGIS project styles
and is not enforced outside QGIS.
For coded domains, which are similar to **Value Maps**, there is a set of
predefined valid values. QGIS also supports range domains, enforcing minimum and maximum
value constraints, and glob domains (specific to GeoPackage), which apply different constraints
on the values acceptable in the associated fields.

The |addOgrLayer| :sup:`Add Vector Layer` and |addRasterLayer| :sup:`Add Raster
Layer` tabs allow loading of layers from source types other than :guilabel:`File`:

Expand Down Expand Up @@ -1715,6 +1728,8 @@ to your map.
:width: 1.5em
.. |setProjection| image:: /static/common/mActionSetProjection.png
:width: 1.5em
.. |sourceFields| image:: /static/common/mSourceFields.png
:width: 1.5em
.. |spatialite| image:: /static/common/mIconSpatialite.png
:width: 1.5em
.. |symbologyAdd| image:: /static/common/symbologyAdd.png
Expand Down
6 changes: 6 additions & 0 deletions docs/user_manual/working_with_vector/vector_properties.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2608,6 +2608,12 @@ with the field type. The available widgets are:
* **Value Map**: A combo box with predefined items. The value is stored in
the attribute, the description is shown in the combo box. You can define
values manually or load them from a layer or a CSV file.

.. note::

GeoPackage and ESRI File Geodatabase layers with predefined coded **Field Domains**
will be automatically recognized by QGIS and assigned a **Value Map** widget for the relevant fields.

* **Value Relation**: Offers values from a related table in a combobox. You can
select layer, key column and value column. Several options are available to
change the standard behaviors: allow null value, order by value, allow
Expand Down