Matthias Kuhn
2a973fc0b6
Allow using gpkg in processing tests
2018-10-31 10:27:54 +01:00
Nyall Dawson
f3e9aaf79a
Fix some inefficient python dictionary iteration
2018-10-31 08:42:51 +10:00
Nyall Dawson
85efc77bb4
Fix inefficient calls to QgsFeature.attributes()[idx]
...
Replace with just f[idx]. Calling QgsFeature.attributes()
allocates a list of all attributes, which is inefficient
when only a single attribute value is needed.
2018-10-31 08:42:51 +10:00
fuzzysolutions
6c99cbc1ba
Minor changes to speed up PointstoPaths algorithm
...
# 1: Replaced time-consuming call on all attributes by a more specific request - responsible for about 90% of running time in my tests.
# 2: Minor speedup by calling items() before the for loop (1s in a large layer).
2018-10-31 08:42:51 +10:00
havatv
79731715ed
Update GDAL extractprojection.py to QGIS 3
2018-10-30 17:19:15 +01:00
Håvard Tveite
296df2e00c
Reintroduce GDAL extract projection
...
Fixes #20263 (when some other files are also fixed)
2018-10-30 17:01:06 +01:00
Nyall Dawson
0d5a8ddd8e
[processing] Fix exceptions due to closed algorithm dialogs when
...
opened from toolbox and closed before task completes
2018-10-29 10:49:46 +10:00
Juergen E. Fischer
9ad01cf9ba
replace three dots with ellipsises in translation strings
2018-10-27 19:06:37 +02:00
Denis Rouzaud
d34fe6b109
fix gdal_contour in test ( #8351 )
...
now gdal_contour does not create 3D by default
see upstream issue https://github.com/OSGeo/gdal/issues/336
and fix abae82ccf4
2018-10-26 13:50:49 -08:00
Nyall Dawson
1a2d0cc54f
[processing][SAGA] Fix multilevel b spline description files
...
Resync with SAGA parameters
2018-10-26 13:15:43 +10:00
rldhont
3ff5c8299d
Merge pull request #8319 from rldhont/fix-dbmanager-sql-layer-set-unique-combo-3
...
[BUGFIX][DbManager] SQL Layer: fix unique combo setting in QGIS 3
2018-10-25 11:31:27 +02:00
rldhont
236edd2723
Merge pull request #8318 from rldhont/processing-convertformat-geopackage
...
[Processing] Add GeoPackage support in alg qgis:convertformat (forward)
2018-10-25 10:19:03 +02:00
Borys Jurgiel
d0813a8822
Introduce QgsGui::HigFlags and don't capitalize menu entries and dialog titles in languages other than English. Fixes #19724
2018-10-25 18:11:36 +10:00
rldhont
2eb22d93ff
[BUGFIX][DbManager] SQL Layer: fix unique combo setting in QGIS 3
...
When opening Update SQL layer, the unique combobox is not well set specifically with oracle.
It's a forward porting of #7872
Funded by Ifremer
2018-10-25 09:30:59 +02:00
rldhont
1d246de545
[Processing] Add GeoPackage support in alg qgis:convertformat (forward)
...
This is the forward porting of #8143
2018-10-25 09:20:29 +02:00
Alessandro Pasotti
d76ae43fd1
Merge pull request #8284 from elpaso/bugfix-20099-locator-inplace
...
[in-place] Fix locator filter for in-place when active layer changes
2018-10-24 08:17:11 +02:00
Nyall Dawson
0fad3e5731
Fix build with newer sip versions
...
Fixes #19476
2018-10-24 08:10:50 +10:00
Alessandro Pasotti
7ecd303acc
[in-place] Fix locator filter for in-place when active layer changes
...
Invalidate the locator results when active layer changes
Fix #20099 - Locator bar does not update the filter of algorithms according to active layer when using "ef"
2018-10-23 16:12:49 +02:00
Alessandro Pasotti
15f4138a47
[db-manager] Store exception text in the task and pass it over to the caller
...
Fix #2019 - DBManager fails to display error messages with virtual layers
2018-10-23 14:59:10 +02:00
Mathieu Pellerin
f32fe8b210
[dbmanager] add string description to query task for better notification ( #8259 )
2018-10-23 13:34:03 +07:00
Nyall Dawson
b2a2a2603c
Add fallback to parameter's name to be safe
2018-10-23 12:42:08 +10:00
Nyall Dawson
e5f52f98c2
[processing] Use outputi database layer name instead of file name when
...
'use filename as layer name' is checked
Avoids raw uri layer names for database type destinations
2018-10-23 12:42:08 +10:00
lbartoletti
74f7cb5414
Add a button to save the query as an external sql file
2018-10-22 12:26:14 +02:00
Alessandro Pasotti
dcd33186bb
[in-place] Fix alg runner when context is none
2018-10-20 10:05:48 +02:00
Alessandro Pasotti
71e85cc0b8
Merge pull request #8231 from elpaso/bugfix-20147-in-place-difference
...
[in-place][needs-docs] add buffer for polygons and fix #20147 in place difference
2018-10-19 22:40:57 +02:00
Alessandro Pasotti
adb930b204
Speed up getFeatures query by using a proper QgsFeatureRequest
2018-10-19 16:27:18 +02:00
Giovanni Manghi
90b57ab814
fix GRASS7 r_stats_quantile
2018-10-19 12:46:37 +01:00
Giovanni Manghi
a151debcc1
fix GRASS7 v_cluster tool
2018-10-19 08:34:42 +10:00
Alessandro Pasotti
71e2a6be7e
In-place passthrough for invalid geometries if processing option is to skip invalid
...
Fixes #20147 - difference deletes invalid geometries
2018-10-18 17:43:00 +02:00
Nyall Dawson
ee8e1ce9bc
[processing][gdal] More unit tests
2018-10-16 16:52:00 +10:00
Nyall Dawson
bef8d6e072
Update expected test results
2018-10-16 16:52:00 +10:00
Giovanni Manghi
fbb916d908
fixes the ogr2ogr based geoprocessing tools
2018-10-16 16:52:00 +10:00
Nyall Dawson
87e0f6961a
[processing][gdal][needs-docs] Rename crop to cutline option for clarity
...
The previous name is unclear, as the option can expand as well
as crop the raster extent. We also don't refer anywhere else in this
dialog to the cutline, so that has no meaning to users
2018-10-15 18:29:28 +10:00
Alessandro Pasotti
cdf5bb630f
Fix test
2018-10-05 11:03:49 +02:00
Alessandro Pasotti
29c4970f8a
[processing] In-place add layer name to dlg title and store active layer
2018-10-05 10:10:20 +02:00
Alessandro Pasotti
0782b9d869
Dynamically change button text for in-place editing
...
The button title changes if there are selected features
2018-10-05 09:21:28 +02:00
Alessandro Pasotti
ca1c65d07a
[processing] In place editing triggers editing and select all
...
If the active layer is not editable, the executor will
try to switch editing on.
If there are no selected features, the executor will
select all features before running.
2018-10-05 08:53:30 +02:00
Nyall Dawson
8cad2a6e16
[processing] Fix random selection count parameter
...
Remove a bunch of manual "max" values for numeric parameters
where the maximum just represents a 'large number' and not a real
constraint, and let the default parameter max value handling kick in instead.
In the case of random selection the max value exceeded the possible
range for integers in spin boxes and broke the widget.
Fixes #20015
2018-10-05 10:48:17 +10:00
Nyall Dawson
706b13a47b
[processing] Make 'canvas extent' its own menu item in the extent
...
selection parameter button, instead of requiring opening the
'select layer/canvas extent' and choosing 'canvas extent'
It's only one extra click, but I don't think there's any reason
against saving this click!
2018-10-05 05:17:19 +10:00
Alessandro Pasotti
bfe2413019
Merge pull request #8101 from elpaso/bugfix-various-dbmanager-query-time-rows
...
[db-manager] Fix some unreported issues in the SQL dialog
2018-10-04 08:26:52 +02:00
Giovanni Manghi
e5e1b9a416
fix the GRASS7 r_contour tool removing the mandatory flag of one of the parameters
2018-10-04 05:52:13 +10:00
Alessandro Pasotti
947a199960
[db-manager] Fix max recursion limit in rollback
2018-10-03 15:17:52 +02:00
Alessandro Pasotti
c90da0e46a
[db-manager] Fix affected rows -1
...
Number of affected rows was always reported ad -1
no matter what was in the SQL
2018-10-03 15:11:08 +02:00
Alessandro Pasotti
96b903e1f3
[db-manager] Increase precision when reporting query time
...
For consistency with the SQL dialog that used 3 decimal places
2018-10-03 14:48:04 +02:00
Alessandro Pasotti
b8c21b0387
[db-manager] Query elapsed time include fetch time
...
The values reported were always lower than
the actual time for query and fetch.
I guess that those values are useful when you
are testing queries and fine-tuning them,
so the actual value should include fetching
time.
2018-10-03 14:45:01 +02:00
Nyall Dawson
57f77d01cb
[processing] Fix in-place mode results in unknown distance units
...
We need to still create the parameter wrappers when in in-place mode
for the input/output parameters, as some other wrappers may rely
on these for various interactions (e.g. getting the crs/fields
from the input layer)
Fixes #19990
2018-10-02 19:51:02 +10:00
Nyall Dawson
68dee5b17f
[processing] Remove hack
2018-10-02 16:46:16 +10:00
Nyall Dawson
c8bf6db363
[processing] Give progress reports/allow cancelation in in-place mode
2018-10-02 16:46:16 +10:00
Nyall Dawson
5508ea036e
Use a custom folder icon instead of O/S folder icon
...
...because using O/S folder icon can causes crashes.
Fixes #18260
2018-10-01 16:19:56 +10:00
Nyall Dawson
08cece22b0
[processing] Fix some exceptions when running in iterate mode
2018-10-01 16:13:38 +10:00