Skip to content
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
7 changes: 7 additions & 0 deletions docs/user_manual/introduction/browser.rst
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@ each level of the dataset tree.
| | :menuselection:`New Field Domain --> | | | | | | |
| | New Glob Domain` | |checkbox| | | | | | |
| +--------------------------------------------+--------------+--------------+------------+------------+---------------+------------+
| | :guilabel:`New Relationship...` | |checkbox| | | | | | |
| +--------------------------------------------+--------------+--------------+------------+------------+---------------+------------+
| | :guilabel:`Delete <database_name>` | |checkbox| | |checkbox| | | | | |
| +--------------------------------------------+--------------+--------------+------------+------------+---------------+------------+
| | :guilabel:`Compact Database (VACUUM)` | |checkbox| | | | | | |
Expand Down Expand Up @@ -405,6 +407,7 @@ each level of the dataset tree.
(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.
You can edit and delete these domains by right-clicking on the field domain entry.

Importing vector layers into databases using Browser panel
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down Expand Up @@ -651,6 +654,10 @@ Supported file types
:width: 1.5em
.. |stac| image:: /static/common/mIconStac.png
:width: 1.5em
.. |symbologyAdd| image:: /static/common/symbologyAdd.png
:width: 1.5em
.. |symbologyRemove| image:: /static/common/symbologyRemove.png
:width: 1.5em
.. |tiledSceneLayer| image:: /static/common/mIconTiledSceneLayer.png
:width: 1.5em
.. |unchecked| image:: /static/common/unchecked.png
Expand Down
49 changes: 49 additions & 0 deletions docs/user_manual/managing_data_source/supported_data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,51 @@ selecting the columns in the :guilabel:`Feature id` column. For best
performance, the :guilabel:`Feature id` value should be a single ``INTEGER``
column.


.. index:: Field domain
.. _field_domain:

Field domain
-------------

Field domains are rules that define acceptable values for a field in a database table.
This is applicable when working with data sources that support field domains,
such as GeoPackage and OpenfileGDB.
The following options are available:

* :guilabel:`New Range Domain...`: create a new range domain to restrict field values
to a specified numeric range.
* :guilabel:`New Coded Values Domain...`: create a new coded values domain to
restrict field values to a predefined list of acceptable values.
* :guilabel:`New Glob Domain...`: create a new glob domain to restrict field values
based on pattern matching using wildcard characters.

More details on each selected option are provided below:

* :guilabel:`Name`: set the name of the new field domain.
* :guilabel:`Description`: provide a description for the new field domain.
* :guilabel:`Field type`: select the data type of the field domain
(e.g., Boolean, Text, Integer, Decimal).
* Here are two available :guilabel:`Policies`:

* :guilabel:`Split policy`
* :guilabel:`Merge policy`

* Under :guilabel:`Range`, you can set the following options:

* :guilabel:`Minimum`: set the minimum acceptable value for the field.
* :guilabel:`Maximum`: set the maximum acceptable value for the field.
* Check the |checkbox| :guilabel:`Inclusive` if you want to include the boundary values in the acceptable range.

* :guilabel:`Values`: click the |symbologyAdd| :sup:`Add row` or |symbologyRemove| :sup:`Remove row` to manage
the list of acceptable values for the field.
* :guilabel:`Pattern`: define the :guilabel:`Glob pattern` using wildcard characters
(e.g., `*` for any sequence of characters, `?` for a single character).

Update and delete field domains by selecting the desired domain from the list and
right-clicking to access the context menu options.


.. index:: PostgreSQL; PostGIS; ST_Shift_Longitude

Layers crossing 180° longitude
Expand Down Expand Up @@ -723,3 +768,7 @@ and a -180..180° representation of a 0..360° data.
:width: 1em
.. |setProjection| image:: /static/common/mActionSetProjection.png
:width: 1.5em
.. |symbologyAdd| image:: /static/common/symbologyAdd.png
:width: 1.5em
.. |symbologyRemove| image:: /static/common/symbologyRemove.png
:width: 1.5em