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
Alessandro Pasotti
08591c63a1
Merge pull request #50497 from dmarteau/fix-FilterFeatures
...
Fix unwanted side effect with QgsAccessControl filter cache
2022-10-13 09:39:15 +02:00
Nyall Dawson
fb3c110d08
Arrange includes
2022-10-13 08:47:43 +10:00
David Marteau
22cbbf7239
Fix unwanted side effect with QgsAccessControl filter cache
...
Prevent leaking access control cache filter between
requests.
2022-10-12 16:42:16 +02:00
Nyall Dawson
34227bdf1c
Fix broken logic in clearing python console history
...
- clearing session was also clearing the file history
- clearing file history was doing nothing
2022-10-12 08:22:34 +10:00
Jacky Volpes
673f44811d
Fix #47525
2022-10-11 19:05:59 +02:00
Nyall Dawson
fcb83a7a30
Fix code folding not shown for non-python code editor classes
2022-10-10 14:01:24 +10:00
Nyall Dawson
39a4a63890
Promote to enum class
2022-10-10 14:01:24 +10:00
Nyall Dawson
ed54489a09
Move some useful python console methods to base class
2022-10-10 14:01:24 +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
Denis Rouzaud
01db45d0cc
fix QgsMapTool convert to subclass ( #50303 )
2022-09-26 21:53:58 +02:00
Loïc Bartoletti
30d0c467fc
Merge pull request #50265 from nicogodet/fix-50238
...
Fix output process of r.horizon
2022-09-26 12:19:43 +02:00
Loïc Bartoletti
7c94e1f228
Add a coment to GRASS logic
2022-09-26 09:35:57 +02: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
Loïc Bartoletti
db2464977c
Merge pull request #49226 from Kanahiro/fix/grass7-unicodeerror
...
Fix GRASS7/SAGA UnicodeDecodeError in QGIS of Windows-Japanese or others
2022-09-26 07:56:30 +02:00
Alessandro Pasotti
7621a9a108
Address PR comments
2022-09-26 13:29:15 +10:00
Alessandro Pasotti
84272d4c7c
Sipify
2022-09-26 13:29:15 +10:00
Even Rouault
ab7feb6e15
[Processing] Fix typo in smoothing parameter name of gdal_grid algorithms
...
The correct spelling is 'smoothing' (two o's): https://github.com/OSGeo/gdal/search?q=smoothing
No match with single o: https://github.com/OSGeo/gdal/search?q=smothing
2022-09-26 12:47:31 +10:00
Julien Cabieces
5a2a89bb99
Fixes #37804 : save original layout item picture mode
2022-09-26 09:38:57 +10:00
nicogodet
d3434fbfc9
More robust output process
...
Co-Authored-By: Andrea Giudiceandrea <16253859+agiudiceandrea@users.noreply.github.com>
2022-09-22 08:35:48 +02:00
Julien Cabieces
dcf64e80fe
add an ok boolean to check if it exists a restricted symbol
2022-09-21 09:30:45 +02:00
nicogodet
720d24e1a1
typo & flake8
2022-09-20 16:47:03 +02:00
nicogodet
a4bf4afea2
Fix output process of r.horizon
2022-09-20 16:38:41 +02:00
Alessandro Pasotti
8b2520718c
Merge pull request #50203 from elpaso/bugfix-gh49399-wfs3-displayname
...
Server OAPIF: be good and accept both aliased and real field names ...
2022-09-20 09:55:55 +02:00
Nyall Dawson
094cd30650
Move plugins "automatically check for updates" settings key to
...
a new key
This change moves the old "app/plugin_installer/checkOnStart" setting
key to a new "plugins/automatically-check-for-updates" key, and
switches the default value to enable automatic checks
This is designed to switch all existing QGIS users to the new
default behavior of checking for plugin updates at startup (at
a maximum of once every 3 days).
It is intended to offer a better QGIS experience to our users,
by proactively informing all users when plugins should be
updated, ensuring that ALL users are more likely to upgrade
plugins and get the bug fixes for plugins promptly.
Enterprise users who have customised this setting in their
deployments will need to adapt their scripts for the new
setting key.
2022-09-16 18:11:47 +10:00
Nyall Dawson
9e12c70f21
Remove option to control plugin update check frequency, and hardcode
...
to every 3 days
This level of configuration is not warranted here
2022-09-16 18:11:47 +10: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
Alessandro Pasotti
4ec664a40b
Typo
2022-09-15 10:11:30 +02:00
Alessandro Pasotti
904a120282
Hide real name string args from schema and messages
2022-09-15 09:58:08 +02:00
Nyall Dawson
9c4d0a2064
[plugins] Default to checking for plugin updates every 3 days
...
instead of manually
Too many QGIS users use outdated plugins without even realising it,
leading to an overall buggier QGIS experience then they should have...
2022-09-15 14:40:22 +10:00
Sandro Mani
6452390080
Move QgsVectorTileLayerProperties to gui
2022-09-15 09:27:55 +10:00
Alessandro Pasotti
e8f44dabd7
Fix search text not updates when reopening the DSM dialog
...
Also, handle clear from QgsFilterLineEdit correctly.
2022-09-15 09:26:08 +10:00
Alessandro Pasotti
e747ffede0
Server OAPIF: be good and accept both aliased and real field names ...
...
... when filtering and sorting, but only output aliased field names.
Fixes #49399
2022-09-14 19:51:54 +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