18500 Commits

Author SHA1 Message Date
vcloarec
c79123bcb8 cppcheck-suppress memleak and fix typo 2020-12-02 11:08:15 -04:00
vcloarec
62125514b0 change to a parallel thread approach 2020-11-24 20:59:33 -04:00
vcloarec
39b111615f select feature context menu 2020-11-23 23:06:45 -04:00
Nyall Dawson
99fa35cdd4 Fix dox 2020-11-24 12:59:42 +10:00
Nyall Dawson
a035f434f4 Dox++ 2020-11-24 10:19:32 +10:00
Nyall Dawson
13e8d45fed Add signal for when project preset full extent is changed 2020-11-24 04:44:19 +10:00
Nyall Dawson
483cb8dfb1 Add api to set the maximal extent for a project
If set, this extent will be used when zooming to full extent (or for the
full extent for a map overview frame) instead of the extent calculated
from all map layers.

The intention is to eventually allow users a way to manually set their
desired "area of interest" for a project, so that zooming to full extent
won't zoom all the way out when the project contains global or national
datasets...
2020-11-24 04:44:19 +10:00
Matthias Kuhn
5bd0058bae
Merge pull request #38032 from troopa81/feat_gen_field_readonly
Display generated fields as read-only in editors
2020-11-23 11:24:49 +01:00
Nyall Dawson
b6ee3e66a3 [feature][processing] Add new algorithm to retain only selected fields
Allows users to select a list of fields to keep, and all other fields
will be dropped from the layer. Helps with making flexible models where
input datasets may have a range of different fields and you need to drop
all but a certain subset of these
2020-11-23 19:20:40 +10:00
Nyall Dawson
b07a58c028 [processing] Port delete fields algorithm to c++
1:1 port for speed/compile time safety, no user-facing changes

Also add tests
2020-11-23 19:20:40 +10:00
Nyall Dawson
6a86642c78
Merge pull request #40220 from nyalldawson/papercut_dd_grid
Don't show degrees based annotation format options for non-geographic map grids
2020-11-23 12:09:06 +10:00
Nyall Dawson
3234489d87 Add a __repr__ method to QgsDataSourceUri 2020-11-23 11:39:35 +10:00
Nyall Dawson
494bf24bc0 Add signals for when layout item map crs or grid crs are changed 2020-11-23 07:03:37 +10:00
Nyall Dawson
d47a65474a Use notify instead 2020-11-22 04:58:42 +10:00
Nyall Dawson
13951b2be4 Make it easier to use the correct timeout for messages in message bars,
and ensure that correct timeouts are used for all created messages
2020-11-22 04:58:42 +10:00
Alexander Bruy
b010d88694
Merge pull request #39695 from alexbruy/enum-as-string
[processing] add parameterAsEnumString() method to retrieve the string value of the enum
2020-11-21 11:13:54 +02:00
Julien Cabieces
87f8e1514e Display generated field as read-only is editors 2020-11-20 14:54:30 +01:00
Mathieu Pellerin
502f42006c
Merge pull request #40181 from nirvn/ortho_gift
[FEATURE][3d] Orthographic projection support for 3D scenes
2020-11-20 15:05:18 +07:00
Alessandro Pasotti
c7bdc47465
Merge pull request #40185 from elpaso/server-landingpage-project-from-cache
Server landing page: use cached projects
2020-11-19 19:26:06 +01:00
Alexander Bruy
cc98fe30d9 support static (non-translated) strings as enum values in Processing 2020-11-19 19:33:18 +02:00
Nyall Dawson
acbeebe32a [pointclouds] Expose option to set point size for 2d point cloud renders 2020-11-19 15:49:43 +01:00
Alessandro Pasotti
1cc55f99c4 Server landing page: use cached projects 2020-11-19 12:32:00 +01:00
nirvn
9dee613a2a [FEATURE][3d] Orthographic projection support for 3D scenes 2020-11-19 15:30:30 +07:00
Richard Duivenvoorde
6797118e2f
On timestep-size change, Set timeslider to best possible fit (instead of resetting to start)
Try to remember/set last timeframe (upon timestep- or timeframe-changes).

Setting the stepsize to a different size, did reset the slider to start
(aka timeframe 0).
Same when you changed the range (data time) extent.

This commit tries to set the slider to the same position as before the
step change, if possible). Else it will take the position of the timeframe
in which the start of the old timeframe fits.

fixes #39994
2020-11-19 11:20:42 +10:00
Nyall Dawson
bf8075ced6 [FEATURE] Allow symbol opacity to be data defined
While it was possible to set the opacity for individual symbol layer
colors via data defined expressions, it's so far been impossible to
set a data defined expression to control the overall symbol opacity.

This commit fixes that omission...
2020-11-18 17:45:45 +10:00
Nyall Dawson
af162a8c70
Merge pull request #40030 from NEDJIMAbelgacem/point-clouds-3d-gui
point-cloud 3D GUI
2020-11-18 16:53:46 +10:00
Nyall Dawson
8c45aad09e Mark method as const 2020-11-18 08:21:43 +10:00
NEDJIMAbelgacem
9655a1e8d0 sipify qgspointcloud3dsymbol 2020-11-17 17:22:44 +01:00
Nyall Dawson
7f9d90536a Ensure that all symbol layer types correctly respect the symbol's opacity
setting, even when the symbol layer has data defined colors set or involves
sub symbols (e.g. marker line symbols)

Fixes #18022
2020-11-17 19:00:31 +10:00
NEDJIMAbelgacem
43446920d2 Merge branch 'master' into point-clouds-3d-gui 2020-11-17 02:17:20 +01:00
NEDJIMAbelgacem
8faa5eee43 Address some of the reviews 2020-11-17 00:51:18 +01:00
Nyall Dawson
4e13ad5555 Spelling, dox 2020-11-16 19:38:07 +10:00
Nyall Dawson
0d3ccf7040 Move setting for maximum screen error to QgsPointCloudRenderer, expose in GUI 2020-11-16 19:38:07 +10:00
Nyall Dawson
28c2788989 Spelling 2020-11-16 19:38:07 +10:00
Nyall Dawson
1951489f25 Working gui for setting point cloud opacity and blend mode 2020-11-16 19:38:07 +10:00
Nyall Dawson
1758ca143f Add shell for 2d renderer config to layer styling dock 2020-11-16 19:38:07 +10:00
Nyall Dawson
055716064f More point cloud renderer widget framework 2020-11-16 19:38:07 +10:00
Nyall Dawson
090afdd636 Initial shell for QgsPointCloudRendererWidget 2020-11-16 19:38:07 +10:00
Nyall Dawson
bf8ccad89e Add contrast enhancement options for point cloud RGB renderer 2020-11-16 19:38:07 +10:00
Alessandro Pasotti
6cbbf5ebd1 DB manager: PG read enum value for sslmode
Fixes #38245
2020-11-16 13:13:21 +10:00
Even Rouault
a1c09b3eea qgsquerybuilder.h: add missing documentation on existing methods 2020-11-16 11:09:06 +10:00
Even Rouault
24eb319af2 [FEATURE] Add a subset string editor provider concept and registry
The aim of this work is to be able to provide custom subset string editor
GUI according to the layer. Typically, so that a WFS layer uses the same
editor than in its select source, or that a plugin can provide a custom
editor.

* Add QgsSubsetStringEditorInterface: abstract interface to define a dialog
  that can edit a subset string
* Make QgsQueryBuilder implement QgsSubsetStringEditorInterface
* Add QgsSubsetStringEditorProvider: interface for thos who want to provide
  a dialog to edit a subset string.
* Add QgsSubsetStringEditorProviderRegistry: keeps a list of subset string
  editor providers. Transposed from QgsDataItemGuiProviderRegistry
* Add QgsGui::subsetStringEditorProviderRegistry()
2020-11-16 11:09:06 +10:00
Even Rouault
e55107f85c QgsDataItem::createChildren(): fix SIP generated C++ method
The SIP_FACTORY annotation didn't do the job for a Python implementation
of createChildren(). We must write a custom VirtualCatcherCode to make
sure that if the returned QgsDataItem elements are Python objects they
aren't killed too early.

Fixes the new added test, which uses to crash before the fix,
and corresponds to the use case of a plugin defining its own data items.

Has been checked not to cause memory leaks.

The change of SIP_FACTORY to SIP_TRANSFERBACK is to avoid a memory
leak when Python calls a C++ createChildren() implementation. Was found
by making test_provider_ogr.py::testDataItems() loop on its call to
createChildren()
2020-11-16 08:57:42 +10:00
uclaros
72fea560ee Add edit-in-place algorithms to locator fuzzy search 2020-11-15 15:02:15 +10:00
vcloarec
7485141f84 fix lost of property definition 2020-11-15 14:59:50 +10:00
vcloarec
8e4d9ca905 fix datadefined ui 2020-11-15 14:59:50 +10:00
Even Rouault
b878ac9c85
QgsQueryBuilder: improvements for easier subclassing
- Make test() method virtual so it can be overriden in a derived class
- Make enabling/disabling of "use unfiltered layer" checkbox automatic
  when layer's subsetString is changed (for example by an overriden
  test() implementation)
- Add a codeEditorWidget() method that returns the sql editor widget,
  so that custom behavior can be added.
2020-11-14 13:22:36 +01:00
Nyall Dawson
278ccb8e85 Fix crash when trying to use meta enums on some platforms
Keeping references to static meta objects and meta enums around seems
to avoid the crash
2020-11-14 14:37:38 +10:00
Nyall Dawson
2dcbf95099 [3d] Add new material type "QgsNullMaterialSettings"
This is a "null" shading material which should be used when
rendering models or scenes with native textures and no material
should be explicitly set on the loaded entities.
2020-11-14 09:02:16 +10:00
Nyall Dawson
6224ea9b1c Add new 3d rendering technique enum value for TrianglesFromModel 2020-11-14 09:01:19 +10:00