9266 Commits

Author SHA1 Message Date
Alessandro Pasotti
b75997e217 No renderer 2022-10-22 08:52:37 +10:00
Alessandro Pasotti
0473d363a6 RAT save 2022-10-22 08:52:37 +10:00
Alessandro Pasotti
d5559be0ba Sipify 2022-10-22 08:52:37 +10:00
Alessandro Pasotti
7debc91480 sipify 2022-10-22 08:52:37 +10:00
Alessandro Pasotti
fe2c86d7ed RAT implementation 2022-10-22 08:52:37 +10:00
Alessandro Pasotti
5a72e35c6d Initial RAT implementation 2022-10-22 08:52:37 +10:00
Stefanos Natsis
ba97282dd0
Allow hiding empty layers in sublayers dialog (#49870)
* Sublayers dialog improvements

* added tests

* fix flake

* check against DisplayRole instead of EditRole
2022-10-21 10:53:49 +00:00
Vincent Cloarec
220806ef5a
suggest to fix topological mesh error when starting mesh editing 2022-10-21 01:09:01 +00:00
Loïc Bartoletti
e3bf816f55 rename addMultiRing to addRingV2 2022-10-18 12:28:22 +02:00
Loïc Bartoletti
6a1222f187 apply nyall's review: use unique_ptr and sip things 2022-10-18 10:31:02 +02:00
Loïc Bartoletti
5d7a025304 qgsvectorlayereditutils.h: add \since tag 2022-10-18 10:31:02 +02:00
Loïc Bartoletti
992e2bf1df Remove addMultiRing method in QgsVectorLayer.
QgsMapToolAddRing can use the one from QgsVectorLayerEditUtils.
All checks are made inside QgsVectorLayerEditUtils.
2022-10-18 10:31:02 +02:00
Loïc Bartoletti
b09c2d1132 QgsVectorLayer: add addMultiRing and use it in QgsMapToolAddRing
The `QgsMapToolAddRing` adds a ring through the `addRing` method of
`QgsVectorLayerEditUtils` called by this of `QgsVectorLayer`.

The bug described in #23113 indicates that only one of the entities receives the
ring addition when using the map tool.

This is consistent with the documentation of the `addRing` methods.
So, it is by design that the tool works like this.

However, as stated in the ticket, it is best to add the ring to all entities.

In order to avoid an api break, I added a new addMultiRing method that adds the ring on all entities.

Fixes #23113
2022-10-18 10:31:01 +02:00
Nyall Dawson
4a3e0b5b4b Add formal api for setting/retrieving project coordinate axis order
Instead of requiring informa fragile/slow project readEntry calls
2022-10-17 14:35:26 +10:00
Nyall Dawson
fb3c110d08 Arrange includes 2022-10-13 08:47:43 +10:00
Tomas Johansson
95e00c50d2
Resolves 'Delete holes' bug when 'area' argument is used
Fixes #49578
2022-10-03 07:58:31 +10:00
Nyall Dawson
3d168eddee Fix raster contour renderer ignores opacity setting
Fixes #41663
2022-09-29 19:10:59 +10:00
Nyall Dawson
73e50bfc06 Ensure correct expression context is used when generating symbol preview
icons

Fixes #49106
2022-09-29 15:32:46 +10:00
Nyall Dawson
1c05421486 Cache summed up area for curve geometry classes
Avoids recalculation when area is retrieved multiple times
2022-09-28 15:58:22 +10:00
Nyall Dawson
765d89c675 Add method to get user friendly error when a relationship is not valid 2022-09-28 14:53:40 +10:00
Julien Cabieces
2d1e3fb387
Merge pull request #50200 from troopa81/fix_legend_geomgenerator
Fix legend icon geom generator is involved
2022-09-27 17:05:23 +02:00
Nyall Dawson
a0fb44b0b0 Fix handling of vector tiles when zoom level 0 is not available
E.g. when a vector tile connection has a manually set zoom level
range which doesn't include level 0, we still need this available
for correct tile feature decoding

Fixes #47934
2022-09-27 13:26:03 +10:00
Nyall Dawson
6f072cfba9 Never try to handle base parameter type values as map layers
in QgsProcessingParameterDefinition::valueAs* methods

Avoids misleading log messages and a crash on macos

Fixes #48598
2022-09-26 16:39:56 +10:00
Julien Cabieces
5a2a89bb99 Fixes #37804 : save original layout item picture mode 2022-09-26 09:38:57 +10:00
Julien Cabieces
dcf64e80fe add an ok boolean to check if it exists a restricted symbol 2022-09-21 09:30:45 +02:00
Mauro Bettella
c8192cb71c
Added GNSS constellation abbreviation (#50205) 2022-09-16 06:58:07 +10:00
Julien Cabieces
e24700df2d Move geom generator logic in QgsSymbolLayerUtils 2022-09-15 15:10:08 +02:00
Nyall Dawson
fc0e97ecb7 Add custom hash for QgsFeature
Fixes #49932
2022-09-12 10:07:14 +10:00
rldhont
c26d58ece8 feat: New force read only option for vector layer
To be able to open vector layer in a read-only mode, a new vector layer option has been defined to do it.

This option is used to open world_map.gpkg and fixes #35383
2022-09-12 09:17:02 +10:00
rldhont
0fc64b101a feat: Open layers in a read only mode with Qgis::ProjectReadFlag::ForceLayerReadOnly
In most cases of use of QGIS Server, it is not necessary to access the layers in write mode.
The read-only mode is sufficient.

We would like to introduce a new flag Qgis::ProjectReadFlag::ForceLayerReadOnly to
open layers in a read-only mode.
2022-09-12 09:17:02 +10:00
Nyall Dawson
a4a0e10902 Use QgsGeometryParameters class for specifying grid size instead
of dedicated arguments
2022-09-10 06:00:45 +10:00
Loïc Bartoletti
cde06e022b qgsgeometryengine.h: fix docstring including previsously missing params 2022-09-10 06:00:45 +10:00
Loïc Bartoletti
9c5821a8c1 qgsgeometry.h: subdivde: add previously missing \param for maxNodes 2022-09-10 06:00:45 +10:00
Loïc Bartoletti
2ce57c4037 qgsgeometry.h: fix docstring including previsously missing geometry param 2022-09-10 06:00:45 +10:00
Loïc Bartoletti
4fbc7a9e5f Fix dox. Add more descriptions and add gridSize documentation 2022-09-10 06:00:45 +10:00
Loïc Bartoletti
2dd6f9f1ee fix use prec when gridSize <= 0 2022-09-10 06:00:45 +10:00
Loïc Bartoletti
c0c631a9f9 Use precision if compiled with geos >= 3.9 2022-09-10 06:00:45 +10:00
Alessandro Pasotti
f649d498d8
Merge pull request #50095 from elpaso/layer-metadata-provider-gui2
Layer metadata provider gui
2022-09-08 14:40:41 +02:00
Alessandro Pasotti
9986e6f4a0 Return false from metadata contains when string is empty 2022-09-08 10:51:40 +02:00
vcloarec
e89698e618 SIPIFY 2022-09-07 13:43:28 -04:00
vcloarec
1d9495b8a9 change ui 2022-09-07 08:23:23 -04:00
vcloarec
410af1d023 fix spelling 2022-09-07 08:23:23 -04:00
vcloarec
8d47b47e20 option to reload mesh layer temporal properties 2022-09-07 08:23:23 -04:00
Nyall Dawson
8dbb654a55 Address review 2022-09-07 22:09:52 +10:00
Nyall Dawson
254c43df5f Correctly render vertical oriented text using HTML formatting 2022-09-07 22:09:52 +10:00
Nyall Dawson
05bd566089 Modify text renderer to account for rendering text with HTML
content which varies in font metrics
2022-09-07 22:09:52 +10:00
Nyall Dawson
5f2aca49af Correctly account for scaling factor and render context scale
when creating fonts for document fragments
2022-09-07 22:09:52 +10:00
Nyall Dawson
ad5d9d89f5 Add font size, family, italic and bold to QgsTextCharacterFormat 2022-09-07 22:09:52 +10:00
Alessandro Pasotti
c5dbf31860 Remove copy ctor 2022-09-06 16:28:35 +02:00
Alessandro Pasotti
7cab873eac Address PR review comments and add model tests 2022-09-06 15:50:34 +02:00