19453 Commits

Author SHA1 Message Date
Damiano
432224ab94 Moved most core settings to SettingsEntry 2021-04-15 14:06:30 +02:00
Alessandro Pasotti
9563b040ef
Merge pull request #41333 from sbrunner/configurable-serviceurl
[Server][Feature][needs-docs] Make service URL configurable
2021-04-15 13:42:28 +02:00
Denis Rouzaud
fbb7eaaf32
Merge pull request #42597 from domi4484/settingsRegistryStaticInline
Settings registry (QEP 124)
2021-04-15 13:28:44 +02:00
fiddlersfan
84c2ab436e
Update documentation for new timeout behavior in 3.18 (#42744)
* update documentation for new timeout behavior in 3.18

* fix tests

* fix indentation test

* Revert "fix indentation test"

This reverts commit a2dd63920e864de78a3bf36efc5d2f657a217403.

* fix all tests
2021-04-15 13:23:36 +02:00
Vincent Cloarec
63ec727003
fix API header references (#42795)
* fix API header reference

* fix SIP
2021-04-15 13:21:45 +02:00
Damiano
97f1a645f0 Changed SettingsType to scoped enum 2021-04-15 09:58:39 +02:00
Stéphane Brunner
3202e3ac70 [Server][Feature][needs-docs] Make service URL configurable
The goals are:
* To have better result in the GetCapabilities URL without having to fill it in the Project configuration
* Be able to be set by an integrator with environment variable or by providing headers from a proxy

The server resolution will use the following order:
 - Value defined in the project per service.
 - The ``<service>_SERVICE_URL`` environment variable.
 - The ``SERVICE_URL`` environment variable.
 - The custom ``X-Qgis-<service>-Servcie-Url`` header.
 - The custom ``X-Qgis-Service-Url`` header.
 - Build form the standard ``Forwarded`` header.
 - Build form the pseudo standard ``X-Forwarded-Host`` and ``X-Forwarded-Proto`` headers.
 - Build form the standard ``Host`` header and the server protocol.
 - Build form the server name and the server protocol.
2021-04-15 09:24:41 +02:00
Damiano
abb8e80c1f Added functionality to override default value for settings entries 2021-04-14 19:49:57 +02:00
Damiano
9082cfa268 Fixed trailing space 2021-04-14 18:13:51 +02:00
Damiano
4891bd6ebb Added support for settings with keys with multiple dynamic parts 2021-04-14 18:05:41 +02:00
Damiano
9762206731 Removed Settings struct / unified Enum/Flag logic in one base class 2021-04-14 15:41:49 +02:00
Germán Carrillo
b9ee50b963 Add parameter to decorator in default custom expression function to avoid 'No feature was found on this layer to evaluate the expression' message and be able to get a calculated value even on empty layers 2021-04-09 16:32:22 -05:00
Nyall Dawson
7126faf27c [feature][labelling] Add an option to control how line features are
clipped before their anchor points are calculated

The previous behavior was to always use only the visible part
of the line when calculating the anchor point for labels. Now,
users have the option to choose "Use Entire Line" when setting
the label anchor point for lines, so that the entire line
feature is considered when calculating the point to place
the label instead of just the visible part of the line.

Sponsored by Stadt Zürich
2021-04-09 13:29:08 +10:00
Loïc Bartoletti
2fd51b2a13 3.18 -> 3.20 2021-04-09 11:46:40 +10:00
Loïc Bartoletti
1d29a42cd9 Fix tests in test_qgsgeometry.py with geos 3.9 2021-04-09 11:46:40 +10:00
Nyall Dawson
d3870937b2 [processing] When exporting a model to a python script, include
helpful comments next to all static enum parameter values used
in child algorithms with the corresponding text.

I.e. instead of

  alg_params = {
    'END_CAP_STYLE': 2,
  }

we now export

  alg_params = {
    'END_CAP_STYLE': 2,  # Flat
  }

Much more readable!
2021-04-09 11:45:53 +10:00
Matthias Kuhn
3cf8a982af
Merge pull request #42681 from suricactus/layer_props_page
Open a specific page in the layer properties dialog using the iface instance
2021-04-08 23:26:44 +02:00
NEDJIMAbelgacem
aca1146390 change the point budge to qint64 and double spin box 2021-04-08 14:26:31 -07:00
NEDJIMAbelgacem
1a60a4562d fix tests 2021-04-08 14:26:31 -07:00
NEDJIMAbelgacem
4a0230fc5c Add QgsFeedback to handle canceling rendering 2021-04-08 14:26:31 -07:00
NEDJIMAbelgacem
b01deeb156 revert qgsfiledownloader changes 2021-04-08 14:26:31 -07:00
NEDJIMAbelgacem
e9f8cab806 Address reviews 2021-04-08 14:26:31 -07:00
NEDJIMAbelgacem
f9b71846c9 address reviews 2021-04-08 14:26:31 -07:00
NEDJIMAbelgacem
c9890935bf remove the use of dataSourceType 2021-04-08 14:26:31 -07:00
NEDJIMAbelgacem
ede1c6394e UI initial implementation for remote ept files 2021-04-08 14:26:31 -07:00
NEDJIMAbelgacem
e870065342 initial implementation of remote ept 2021-04-08 14:26:31 -07:00
Nyall Dawson
832d5e95ee Cleanup and refactor calculationg of label text metrics for curved
labels, and move methods for calculating curved text placement
out of PAL so that they can be reused elsewhere
2021-04-08 14:26:05 +10:00
Damiano
3c5f9b1e91 Python implementation for QgsSettingsEntryEnum/Flag and fixed docstrings 2021-04-07 14:02:08 +02:00
Ivan Ivanov
27883030c6
Update python/gui/auto_generated/qgisinterface.sip.in
Co-authored-by: Matthias Kuhn <matthias@opengis.ch>
2021-04-07 11:15:34 +03:00
Ivan Ivanov
294b01a6f1 Added docstring describing the page argument of showLayerProperties
One can get a list of page names by executing the following command:
grep \"mOptsPage ./build/src/ui/ui_qgs*layerpropertiesbase.h
2021-04-07 10:51:31 +03:00
Ivan Ivanov
3057966086 Open a specific page in the layer properties dialog using the iface instance 2021-04-06 19:37:10 +03:00
Damiano
767923937f Added python tests for settings entries classes 2021-04-05 00:14:14 +02:00
Nyall Dawson
d9d0f9a9dd [feature] Add support for rounded corners for balloon callout styles
Allows for visually please rounded corners by exposing a "corner radius"
setting for balloon callouts.
2021-04-04 16:25:00 +10:00
nirvn
026b8416ae [processing] Regroup executed algorithms under meaningful groups in the history dialog 2021-04-03 20:46:02 -07:00
Nyall Dawson
12905ccf4e Gracefully handle import errors in console
Fixes opening the console when 3d library is not built

Fixes #41855
2021-04-04 06:40:55 +10:00
Juergen E. Fischer
c5ea4b220c osgeo4w: vc16 updates 2021-04-01 23:39:19 +02:00
Nyall Dawson
615b63e76d [processing] When configurating a field calculator algorithm in a model,
ensure that the correct expression context is set for the widget

Otherwise we don't see any of the available variables ready for
use in the calculation.

We need to do this manually after creating the widget, because the
context generator isn't set till after the widget is created, and
this particular widget configuration doesn't fetch the expression
context on demand.
2021-04-02 06:30:27 +10:00
Damiano Lombardi
fe0dcee284 Added new QgsSettingsEntryFlag and tests for enum and flag 2021-04-01 21:09:36 +02:00
Denis Rouzaud
22dc611995
make methods of QgsMapLayerAction virtual so the canRunUsingLayer can be fine tuned (#42613) 2021-04-01 15:39:34 +02:00
Damiano
d16702dfbc no more hand modified sip files 2021-04-01 10:13:08 +02:00
Damiano
628f9dab29 Added QgsSettingsEntryBase and value() is now typed according to setting 2021-04-01 09:38:56 +02:00
Damiano
cee0e310f8 Sip part running 2021-04-01 09:38:56 +02:00
Damiano
21c19aba9c static inline settings 2021-04-01 09:38:56 +02:00
Nyall Dawson
ce5558ee05 QgsSymbol::start/stopFeatureRender needs to be public so python subclasses can call it 2021-03-31 18:28:25 +10:00
Mathieu Pellerin
718a0eece9
Merge pull request #42587 from nirvn/processing_last_value
[feature][processing] Add a last_value function to the aggregate algorithm
2021-03-31 00:52:30 -07:00
Nyall Dawson
8f510cf2d4 [FEATURE] Add new variable @geometry_ring_num for data defined
styling when rendering polygon rings

The variable is available whenever a polygon outline is being
rendered (e.g. as a simple line, marker line, etc). It will
be set to 0 for the exterior ring, and 1, 2, 3... for interior
rings.
2021-03-31 17:04:53 +10:00
nirvn
410f4d024f Add test, fix issue raised by test 2021-03-31 11:50:23 +07:00
Nyall Dawson
7715a12916 Fix spelling 2021-03-31 10:59:47 +10:00
Nyall Dawson
b85614e67e Spelling 2021-03-31 10:59:47 +10:00
Nyall Dawson
c4c8aab7b4 Improve documentation for raster pyramid creation methods/classes
The PyQGIS documentation for this workflow was very poorly documented
2021-03-31 10:59:47 +10:00