Martin Dobias
d716640403
Remove usage of legendInterface() from plugins (followup e5f62e49)
2016-11-22 12:23:37 +08:00
Nyall Dawson
86ab3022b5
Remove layer extent and statistic variables from processing contexts
...
These variables take a lot of time to calculate and cause lots of
lengthy hangs in processing. (Eg add some moderately large rasters
to a project, then try to run any processing algorithm and QGIS
will freeze).
The layer extent can already be used in expressions via the
layer_property function, which only evalutes the extent if required
and only for layers it is used for.
The band stats for raster layers should be moved to a
band_statistic function in core which behaves the same way.
2016-11-22 11:17:38 +10:00
Nyall Dawson
377cba0b74
[processing] Use real map settings scope instead of custom canvasextent variables
2016-11-22 11:17:38 +10:00
Nyall Dawson
271e67e37b
[processing] Fix import to postgis alg when table name not set ( fix #15869 , 15097)
2016-11-22 09:59:43 +10:00
Alexander Bruy
f70a3b9e1d
[processing] move custom parameter definition inside corresponding
...
algorithm
2016-11-18 10:22:26 +02:00
Nyall Dawson
5e1a69fc88
[FEATURE][processing] Create attribute index algorithm
...
Allows creation of an index on an attribute in a layer for faster
attribute based filtering
Support depends on the underlying data provider for the layer
2016-11-18 10:56:02 +10:00
Nyall Dawson
24ffa15ecf
[FEATURE][processing] Extract by attribute can extract for null/notnull values
...
Adds support for filtering where an attribute value is null or not null
2016-11-17 13:09:23 +10:00
Nyall Dawson
fb8b931a8e
[processing] Fix error with field widget wrapper
2016-11-17 13:09:23 +10:00
Nyall Dawson
964ecfd743
Fix build
2016-11-17 09:04:19 +10:00
Nyall Dawson
fc65334a60
[processing] Add file picker to vector/raster/table parameters
...
in modeller
Makes it obvious that users can set an algorithm vector/raster/
table input to a fixed table
2016-11-17 09:04:19 +10:00
Nyall Dawson
f78f2a05c6
[processing] Use native QGIS map layer combobox
...
Switches the custom map layer combo box used in the run algorithm
dialog across to the standard QGIS map layer combo box
2016-11-17 09:04:19 +10:00
volaya
ff691a6bc4
Merge pull request #3747 from nyalldawson/num_input
...
[processing] Restore spin box widget for number inputs outside modeller
2016-11-16 13:59:25 +01:00
Alexander Bruy
6c4eeda29d
Merge pull request #3762 from nirvn/processing_fix_grass
...
[processing] fix grass/grass7 installation check
2016-11-15 14:50:09 +02:00
Alexander Bruy
adcb77266b
Merge pull request #3761 from nirvn/processing_parameterextent_fix
...
[processing] fix ExtentSelectionPanel's getValue()
2016-11-15 14:49:49 +02:00
aroche
6bfd0fd79e
fix exception when selecting string function
...
just a typo causing an exception when selecting a string function in query builder dialog
2016-11-15 12:13:31 +01:00
nirvn
4a4ffa4c1b
[processing] fix grass/grass7 installation check
2016-11-15 09:27:22 +07:00
nirvn
c87839f054
[processing] fix ExtentSelectionPanel's getValue()
2016-11-15 09:07:58 +07:00
Nyall Dawson
d237e27d7e
Followup 29d33b4
2016-11-15 10:15:43 +10:00
Nyall Dawson
29d33b47fe
[processing] Polygons to line fixes
...
- Maintain Z/M values
- Handle curved geometries without segmentizing
- Retain null geometries
2016-11-15 09:43:45 +10:00
Nyall Dawson
d3f5314bf5
[processing] Use standard field combo box for field choices
2016-11-15 07:00:35 +10:00
Alexander Bruy
9afd6b0a2e
[processing] fix test
2016-11-14 15:40:23 +02:00
Alexander Bruy
6e9631ea87
Merge pull request #3701 from alexbruy/processing-ogr-tests
...
[processsing] tests for GDAL algorithms
2016-11-14 11:05:51 +02:00
Nyall Dawson
880647e50e
Add some tags to algorithm
2016-11-14 15:52:41 +10:00
Nyall Dawson
b44093914b
Fix test failure, report distance from pole
2016-11-14 15:52:41 +10:00
Nyall Dawson
d6f09c012e
[FEATURE] Add method to calculate pole of inaccessibility for polygons
...
Implements a method in QgsGeometry and a processing algorithm to
calculate the pole of inaccessibility for a surface, which is the
most distant internal point from the boundary of the surface. This function
uses the 'polylabel' algorithm (Vladimir Agafonkin, 2016), which is an iterative
approach guaranteed to find the true pole of inaccessibility within a specified
tolerance. More precise tolerances require more iterations and will take longer
to calculate.
2016-11-14 15:52:41 +10:00
Martin Dobias
d729951dcd
Remove caching of WKB from QgsGeometry (was kept just for compatibility)
...
Also improves the API to export/import WKB as QByteArray
2016-11-14 13:36:12 +08:00
Even Rouault
8b1adc5dcd
Merge pull request #3635 from arnaud-morvan/processing_postgis_connect
...
[processing][db_manager] Fix connection to postgis
2016-11-13 18:15:57 +01:00
Nyall Dawson
dbf6107b14
[processing] Add button for projection selection dialog to
...
Crs parameters in algorithm settings in modeler
This makes it easier to pick static CRSes for the parameter,
and also makes it obvious to users that they can use a fixed
CRS parameter in their model (as opposed to one taken from
a layer or input)
2016-11-13 20:34:35 +10:00
Nyall Dawson
f24cda4402
[processing] Add unit tests for retrieving param from script code
...
And fix number param retrieving from script code
2016-11-13 20:34:35 +10:00
Nyall Dawson
3ef7b3b7eb
[processing] Use standard QGIS projection selection widget for CRS params
2016-11-13 20:34:35 +10:00
Alexander Bruy
d81533e05a
fix failing test
2016-11-12 13:31:46 +02:00
Alexander Bruy
0589566e4b
[processing] mark buffer lines test as expected failure
...
This test failed as result and expected WKT geometries differ
only because of 0 vs. -0 in one coordinates pair
2016-11-12 13:31:45 +02:00
Alexander Bruy
af16bbf532
[processing] don't print Processing version
2016-11-12 13:31:45 +02:00
Alexander Bruy
fcc96de8a7
[processing] fix indentation
2016-11-12 13:31:45 +02:00
Alexander Bruy
75bd622ccc
[processing] restore and fix extraction of OGR layer names
2016-11-12 13:31:45 +02:00
Alexander Bruy
2287230f0f
[processing] fix parameter definition in offset curve algorithm
2016-11-12 13:31:45 +02:00
Alexander Bruy
426c5bef47
[processing] compare only geometry in tests
2016-11-12 13:31:45 +02:00
Alexander Bruy
dff239c241
[processing] improve temp file names generation
2016-11-12 13:31:44 +02:00
Alexander Bruy
b6d5f35be2
[processing] cleanup OGR dissolve algorithm code
...
Avoid double extensions when creating temp files
2016-11-12 13:31:44 +02:00
Alexander Bruy
85d1fd720b
[processing] cleanup test data
2016-11-12 13:31:44 +02:00
Alexander Bruy
652addb507
[processing] don't pass layer name when '-sql' parameter is used
2016-11-12 13:31:44 +02:00
Alexander Bruy
e1ee477c40
[processing] use numeric parameter for buffer distance
2016-11-12 13:31:44 +02:00
Alexander Bruy
256efcc034
[processing] remove unnecessary schemas from test data
2016-11-12 13:31:44 +02:00
Alexander Bruy
a8feec8d3c
[processing] friendly names for some QGIS tests
2016-11-12 13:31:43 +02:00
Alexander Bruy
d239a97c41
[processing] test for OGR one-side buffer
2016-11-12 13:31:43 +02:00
Alexander Bruy
32094e93d0
[processing] add test for OGR offset lines
2016-11-12 13:31:43 +02:00
Alexander Bruy
02ed0aa628
[processing] fix OGR offset curve and one-side buffer
2016-11-12 13:31:43 +02:00
Alexander Bruy
397df65908
[processing] add test for points along lines
2016-11-12 13:31:43 +02:00
Alexander Bruy
d08c02dbd0
[processing] disable polygonize test, as it is not stable
2016-11-12 13:31:43 +02:00
Alexander Bruy
52e29b93b8
[processing] fix deprecation warnings in GDAL test
2016-11-12 13:31:42 +02:00