Peter Petrik
65182a2775
fix compilation of qgsquick plugin on win
2019-11-18 10:20:18 +01:00
Nyall Dawson
3b29dbafa6
Resolve cpu spikes when options dialog is shown
...
Disable auto-update of the advanced settings tree widget. This is causing
CPU spikes every 2 seconds while the dialog is open. It's useless for QGIS,
because this dialog is modal and blocking, and changes to settings aren't
saved until the dialog is dismissed. So basically nothing should be updating
these settings while the dialog is opened anyway...
Fixes #32892
2019-11-18 18:29:41 +10:00
nirvn
617955ac1e
[expression] Language support for format_date() and to_{date,datetime,time}()
...
By default, those expression use the application's locale. The addition of an optional
language parameter allows handling of dates that wouldn't match that default
locale (say for e.g. an English system running QGIS trying to transform a
French-formatted string into a date object).
2019-11-18 12:13:47 +07:00
Pete King
0e7edd5588
[feature] is_valid expression
...
Returns true if a geometry is considered valid according to the OGC validity rules
2019-11-18 02:31:48 +10:00
Nyall Dawson
3b8565115a
Also lazy load numpy
2019-11-17 17:08:12 +10:00
Nyall Dawson
2d83fb2e1d
Remove unused code
2019-11-17 17:08:12 +10:00
Nyall Dawson
a27db3533c
[processing] Only load plotly library on demand (i.e. at time of algorithm
...
execution)
Because:
1. It's nicer to show all algorithms on all installs, and give a descriptive
error message to users when they try to run algorithms which depend on Plotly
if the library is missing. Otherwise on some installs these algorithms are
just missing for no apparent reason.
2. The plotly library takes a long time to load on windows (3-4 seconds),
so by moving this load to an on-demand load at time of algorithm execution
we can shave a few seconds off the QGIS startup time for ALL users.
2019-11-17 17:08:12 +10:00
Felis Pimeja
d28da131c4
Fix alg description
...
PostGIS DB -> PostgreSQL DB
2019-11-17 11:55:35 +10:00
Felis Pimeja
60ed888277
Fix alg description
...
PostGIS DB - PostgreSQL DB
2019-11-17 11:55:35 +10:00
Nyall Dawson
2a5ee9b563
[processing] Warn when we know for certain that no spatial index
...
exists on a source used for the Join by Location algorithm
Advise users that performance will be severely degraded as a result.
2019-11-17 04:54:41 +10:00
Nyall Dawson
37044b0a26
If we know for certain a spatial index already exists on a vector layer,
...
adjust the "Create Spatial Index" button in the vector layer properties
dialog to reflect this.
2019-11-17 04:54:41 +10:00
Nyall Dawson
fe32fdfe40
Add API to QgsFeatureSource to determine whether a spatial index
...
exists on the source (or not, or unknown presence)
2019-11-17 04:54:41 +10:00
Alessandro Pasotti
29824c1765
Merge pull request #32890 from elpaso/processing-raster-calc-expression-check
...
[feature] Processing raster calc: add missing btns and validate
2019-11-16 08:19:27 +01:00
Juergen E. Fischer
81e645902f
travis: avoid pr_has_label.py error
2019-11-15 17:35:02 +01:00
Alessandro Pasotti
25edd83b0a
Processing raster calc: add missing btns and validate
...
Validate expression
2019-11-15 15:49:18 +01:00
Juergen E. Fischer
9b32c0be3b
database style manager: translatable & title case
2019-11-15 15:37:26 +01:00
Alessandro Pasotti
2eb410844f
Merge pull request #32694 from elpaso/server-wfs3-transaction-simple-2
...
[feature] Server OAPIF simple transactions
2019-11-15 14:21:03 +01:00
Sandro Santilli
ebc9888f40
mhkun style
2019-11-15 13:14:42 +01:00
Sandro Santilli
e6cc12fc1a
Make capabilities methods const, drop unused ones
...
Uses mutable members to retain the lazy capability queries
2019-11-15 13:14:42 +01:00
Sandro Santilli
2ba9d3c49f
Improve debug messages about geos/topology support
2019-11-15 13:14:42 +01:00
Sandro Santilli
f543a9abb7
Add test for TopoGeometry layers visibility with and w/out permissions
...
Adds a "qgis_test_user" database users with the db setup script,
using an hard-coded password for connection.
This was the simplest way to make things work because the alternative
of using 'options' member in the URI is not supported by QGIS
at the moment, see https://github.com/qgis/QGIS/issues/32832
2019-11-15 13:14:42 +01:00
Sandro Santilli
9c4f77f7c9
Topology is unavailable when user cannot read topology tables
...
Fixes determination of tables from metadata when user has no
privileges on topology. The bug was introduced by
commit bbdbca418c0eeb5a349fc257ad033adad7b4fc47
References #32002
Closes #32726
2019-11-15 13:14:42 +01:00
Sandro Santilli
6b6509fafc
Unify list of supported spatial types
2019-11-15 13:14:42 +01:00
Sandro Santilli
797a43e30e
Simplify calls to has_*_privilege to avoid name resolution
...
... when oid is already known...
2019-11-15 13:14:42 +01:00
Nyall Dawson
674ae6ff1e
Minor optimisation to QgsFields::allAttributesList()
2019-11-15 15:21:57 +10:00
nirvn
28572a8856
Fix crash when resetting a project-less snapping config
2019-11-15 13:50:22 +10:00
Nyall Dawson
874577f4b9
Also account for oversampling along tile edges
2019-11-15 13:48:38 +10:00
Nyall Dawson
41fa4b19fd
Fix rendering artifacts on the edges of resampled raster tiles
...
We now buffer the request for the input to a resample filter by
a variable number of pixels (depending on the resampling type)
in order to fetch the neighbouring pixels to the edges of individual
raster blocks. This allows the resampling to utilise these
neighbouring pixels when resampling the edges of tiles, avoiding
discrepancies and rendering artifacts over the borders of
raster tiles.
Fixes #30152
2019-11-15 13:48:38 +10:00
Juergen E. Fischer
7fdac2fc6b
custom widgets: fix designer crash ( fixes #32860 )
2019-11-15 00:39:16 +01:00
Juergen E. Fischer
0bf62ed688
show message before running crssync. so we know what failed, if it couldn't be executed
2019-11-15 00:35:53 +01:00
Juergen E. Fischer
044090da78
fix windows build
2019-11-15 00:35:53 +01:00
Even Rouault
aeeb11b00d
Merge pull request #31986 from roya0045/patch-6
...
[Bugfix] enabling spatialite gpkg amphibious mode
2019-11-14 19:23:27 +01:00
David Marteau
87e3516f2f
Fix default defaultValue in algfactory
...
According to doc: https://qgis.org/pyqgis/3.10/core/QgsProcessingParameterDefinition.html?highlight=qgsprocessingparameterdefinition#module-QgsProcessingParameterDefinition
2019-11-15 02:53:25 +10:00
Julien Cabieces
46525045d2
add back the point locator tests
2019-11-15 02:51:10 +10:00
Julien Cabieces
d3a7f08634
add test for waitforfinished before task is started
2019-11-15 02:51:10 +10:00
Julien Cabieces
9887827b05
fix waitforfinished when task is not started
2019-11-15 02:51:10 +10:00
Alex
eda36d4796
Allow using spatialite function on geopackge in dbmanager
...
Enables Spatialite's amphibious mode for Geopackages, allowing the use of geospatial functions on geopackages in the DB manager.
2019-11-14 10:41:36 -05:00
Alessandro Pasotti
001819045f
Merge pull request #32865 from elpaso/followup-32487
...
Fix wrong check validity when fixing broken deps
2019-11-14 16:01:54 +01:00
Alessandro Pasotti
61fdbf7429
Renamed API definition -> description
2019-11-14 15:05:14 +01:00
Alessandro Pasotti
ca74d47fb8
Fix wrong check validity when fixing broken deps
...
Just cleaning my own mess :)
2019-11-14 14:35:25 +01:00
Alessandro Pasotti
a059c367d9
Merge pull request #32854 from nirvn/loadstylefix
...
Followup 64949d : fix failure to load provider-provided style
2019-11-14 14:31:09 +01:00
Alessandro Pasotti
852d6cdc73
Merge pull request #32862 from elpaso/bugfix-gh32808-db-manager-pg-renametable
...
Fix DB manager PG rename table
2019-11-14 14:30:49 +01:00
Sandro Santilli
bd01f66f57
Merge pull request #32857 from strk/consistent-pg-test-connstring
...
Use service=qgis_test for referencing test database
2019-11-14 13:51:04 +01:00
Alessandro Pasotti
7f6b3cf877
Fix DB manager PG rename table
...
Fixes #32808
2019-11-14 13:42:36 +01:00
Sandro Santilli
20114fc958
Use service=qgis_test in test project files as well
2019-11-14 13:05:05 +01:00
Sandro Santilli
635f4c8646
Update comment about setting up test db
2019-11-14 13:05:05 +01:00
Sandro Santilli
c20ba1e5f3
Have db setup script check for pg_service.conf functionality
...
... and hint about how to set it up
2019-11-14 13:05:01 +01:00
Sandro Santilli
dea253b9e0
More consistent use of service file for test db connection
2019-11-14 11:37:03 +01:00
Sandro Santilli
46a05727e8
Use service=qgis_test for referencing test database
...
Makes PostgreSQL testing setup consistent.
Updates README accordingly
2019-11-14 11:30:21 +01:00
Matthias Kuhn
cbe6150348
Merge pull request #32770 from m-kuhn/dxf-symbol-fixes
...
Make the DXF renderer ready for background threading and fix symbology
2019-11-14 09:47:22 +01:00