nirvn
2a25c1847d
[python console] Improve key up/down press for multiline command string
2020-06-03 14:15:09 +07:00
Nyall Dawson
d9dd2bf573
Avoid memory leak
2020-06-03 15:17:56 +10:00
Nyall Dawson
dbe2a9a455
Always use variant lists as aggregate group keys to avoid comparison
...
issues when a mix of non-list variants and list variants are present
in hash keys
2020-06-03 15:17:56 +10:00
Nyall Dawson
48c465e9b5
[processing] Port "Aggregate" algorithm to c++
...
No more silly breakages!
Refs #36843
2020-06-03 15:17:56 +10:00
Nyall Dawson
d5a340f886
[processing] Port aggregates widget wrapper to c++
...
And add a TON of tests
Fixes #36843
2020-06-03 15:17:56 +10:00
Nyall Dawson
4fdfa949cf
[processing] Start porting Aggregates parameters to C++
...
Port parameter type to c++
2020-06-03 15:17:56 +10:00
nirvn
2f36e18d11
[python console] Add help links to the PyQGIS API and Cookbook pages
2020-06-03 11:45:13 +07:00
nirvn
296fc6cf89
[python console] Move the >>> prompt into the margin to fix a gazillion issues
2020-06-03 11:45:13 +07:00
Nyall Dawson
d9c87b3773
[layouts] Fix svg parameters cannot be changed if a parameterised
...
svg is embedded instead of linked
2020-06-03 10:38:42 +10:00
José de Paula Rodrigues Neto Assis
95f9187dac
Fixed missing cast to string in debug message.
...
This slipped through on last commit.
2020-06-03 08:40:18 +10:00
José de Paula Rodrigues Neto Assis
0308d67005
Avoid spamming warnings on INSERT with generated fields.
...
Thanks to M. Kuhn for pointing out that the old code would drown the
console with warnings if one tries to load data into a table with
generated fields.
2020-06-03 08:40:18 +10:00
José de Paula Rodrigues Neto Assis
04b5f79fa7
Code review && QgsLogger::warning if user tries to insert/change generated field.
2020-06-03 08:40:18 +10:00
José de Paula Rodrigues Neto Assis
72d0150228
Make flake8 happy (formatting).
2020-06-03 08:40:18 +10:00
José de Paula Rodrigues Neto Assis
25122646e6
Added test cases for updating of tables with GENERATED fields.
2020-06-03 08:40:18 +10:00
José de Paula Rodrigues Neto Assis
fe3a8b1565
Don't assume pg_attribute.attgenerated will always have "s"
...
The value for pg_attribute.attgenerated will hold "s" for stored
generated fields, but this might change in future releases of
PostgreSQL. So, we just check for the presence of a value in that field.
2020-06-03 08:40:18 +10:00
José de Paula Rodrigues Neto Assis
5347759889
Code review.
2020-06-03 08:40:18 +10:00
José de Paula Rodrigues Neto Assis
e16ece7541
Changed insert/update of GENERATED fields
...
Changed the way GENERATED fields are inserted/updated. Previously we
used the DEFAULT keyword for INSERTing; now, we expose the generating
expression to the user, but ommit the field when inserting or updating a
feature.
2020-06-03 08:40:18 +10:00
José de Paula Rodrigues Neto Assis
a6208dac8f
Correct handling of generated values
2020-06-03 08:40:18 +10:00
José de Paula Rodrigues Neto Assis
6378644a7e
Tests for PostgreSQL 12+ GENERATED columns
...
These tests exercise the use of GENERATED columns, a feature which was
introduced by PostgreSQL 12+. They won't be run if the PostgreSQL server
against which we are testing is older than version 12.
2020-06-03 08:40:18 +10:00
José de Paula Rodrigues Neto Assis
d0af0f076e
Handling of GENERATED columns for all column types
...
This enables the use of GENERATED columns, a feature introduced by
PostgreSQL 12, with QGIS. This features replaces triggers for common
operations, such as calculating centroids and areas of polygons.
2020-06-03 08:40:18 +10:00
José de Paula Rodrigues Neto Assis
3e9da5d28d
Mechanism to test features on PostgreSQL 12+
2020-06-03 08:40:18 +10:00
José de Paula Rodrigues Neto Assis
fef79a0e59
Handling PostgreSQL <= 11.
2020-06-03 08:40:18 +10:00
José de Paula Rodrigues Neto Assis
80f1e3688c
Save features into tables with GENERATED columns.
...
Fixes #32898 . GENERATED columns is a feature introduced by PostgreSQL
12, which allows column values to be generated from other columns in the
same table; this replaces the creation of triggers to, for instance,
populate a column of centroids for the stored polygons.
2020-06-03 08:40:18 +10:00
vcloarec
7074f8e52d
avoid NaN value between two faces
2020-06-03 08:21:39 +10:00
Even Rouault
b4f5b48b35
Merge pull request #36873 from rouault/cppcheck_gh_action
...
Fix remaining cppcheck warnings, add scripts/cppcheck.sh and corresponding GH workflow jobs
2020-06-03 00:17:47 +02:00
Ismail Sunni
dd86a5a3d2
Add expected failures.
2020-06-03 08:07:17 +10:00
Ismail Sunni
bcf71e095c
Use assertRaises for cleaner code.
2020-06-03 08:07:17 +10:00
Ismail Sunni
fabdb64429
Add unit test for WFS GetFeature Within for EPSG 3857 and 'fake' EPSG 3857.
2020-06-03 08:07:17 +10:00
Ismail Sunni
d92564a5d0
Add unit test for WFS Post GetFeature Within for EPSG 4326.
2020-06-03 08:07:17 +10:00
vcloarec
1a2e30e913
assert on meshLayer
2020-06-03 08:06:18 +10:00
vcloarec
58d93ec945
remove unnecessary guards
2020-06-03 08:06:18 +10:00
vcloarec
3b86c51b25
avoid 3D crash if terrain layer is null
2020-06-03 08:06:18 +10:00
Usul
7b8bd80994
reduce size of png file in ./doc using optipng -o7 ( #36902 )
2020-06-03 08:03:32 +10:00
Nyall Dawson
635f79aba1
Disable azure 32 bit builds (hopefully temporarily!)
...
These are consistently failing for unknown reasons -- maybe a broken
dependancy in osgeo4w 32 bit?
2020-06-03 08:01:35 +10:00
Blottiere Paul
07eca3e670
Fix segfault when adding a layer
2020-06-03 06:15:08 +10:00
vcloarec
9fec5262b0
update SIP
2020-06-03 06:10:10 +10:00
vcloarec
82507315b9
add the possibility t use absolute value for varying line of 1D mesh
2020-06-03 06:10:10 +10:00
vcloarec
4ed5c829db
fix bad guard
2020-06-03 06:08:30 +10:00
vcloarec
9249dfe232
accord static dataset group
2020-06-03 06:08:30 +10:00
Matthias Kuhn
6c5ac93001
Add test for style synchronisation in offline editing
2020-06-02 15:39:44 +02:00
Matthias Kuhn
3cd9a3995e
Copy styles to offline project
2020-06-02 15:39:42 +02:00
nirvn
a7de7edcbe
Remove 'fake' tree view code from layer tree model symbol icon creation
2020-06-02 20:04:03 +07:00
Even Rouault
9df71ef19a
scripts/cppcheck.sh: error out on clarifyCalculation issues
2020-06-02 13:56:23 +02:00
Even Rouault
053fe62f7f
Fix various instances of cppcheck 'clarifyCalculation' warning about operator precedence
2020-06-02 13:56:23 +02:00
Even Rouault
41120d7459
code_layout.yml: add a cppcheck job
2020-06-02 13:56:22 +02:00
Even Rouault
a54ad8814d
Add scripts/cppcheck.sh
2020-06-02 13:56:22 +02:00
Even Rouault
729a2f1482
regenerate qgslayertreenode.sip.in
2020-06-02 13:56:22 +02:00
Even Rouault
238e12ba4e
QgsQuickMapCanvasMap::onWindowChanged(): silence cppcheck warning, but potential bug
2020-06-02 13:56:21 +02:00
Even Rouault
e1bb8e986f
qgsgrassmodule.h: rely on default copy constructor
2020-06-02 13:56:21 +02:00
Even Rouault
0a0b3721fe
QgsProcessingCrsWidgetWrapper::createWidget(): make it obvious we won't double allocate mProjectionSelectionWidget
2020-06-02 13:56:21 +02:00