1603 Commits

Author SHA1 Message Date
Matteo Ghetta
3bcf287a7e Processing tests (#4259)
* [processing] qgis regular points test

* [processing] qgis shape buffer variable tests

* [processing] qgis create grid lines test

* [processing] qgis convert geometry test

* [processing] qgis extract by location test

* [processing] qgis add field test

* [processing] trying to fix travis failing

* [processing] trying to fix travis failing/2

* trying to fix travis failing/3

* [processing] Add new default option "ProjectCrs" to ParameterCrs

* [processing] RegularPoints tests shouldn't rely on iface

* [processing] Fix regular points test

* [processing] RandmPointsExtent new CRS parameter

* [processing] qgis random point in extent test

* [processing] qgis random point in extent test/2

* [processing] remove qgis random point in extent test

* no output random points in extent test

* remove useless output
2017-03-16 16:42:53 +01:00
Nyall Dawson
1e5f64919d Fix some use of direct project key read when getter should be used 2017-03-14 19:14:56 +10:00
Juergen E. Fischer
8bea742216 fix flake8 warnings 2017-03-13 20:13:51 +01:00
Juergen E. Fischer
c77172ed3d fix more flake8 warnings 2017-03-05 10:21:24 +01:00
Juergen E. Fischer
f00a87cb8a update translation strings 2017-03-05 10:21:24 +01:00
Juergen E. Fischer
ecc5bb508e pep8/pyflakes3 cleanups 2017-03-04 02:38:15 +01:00
Juergen E. Fischer
a10c890383 More QgsSettings updates:
* revives WMS
* QgsSettings::clear() added
* section added to QgsSettings::contains()
* type parameter added to sip binding of QgsSettings.value()
* TODO: customization & evis
2017-03-04 02:37:59 +01:00
volaya
b500ab5065 [processing] fixed reading script description for R algorithms
fixes #16227
2017-03-02 13:43:09 +01:00
Alexander Bruy
e84829e016 Merge pull request #4088 from volaya/grass_tempfile_fix
[processing] fixed grass tempfiles
2017-03-02 10:26:23 +02:00
Nyall Dawson
1f7635ace7 Merge pull request #4198 from nyalldawson/canvas_api
Remove support for disabling OTF reprojection
2017-03-01 17:53:34 +10:00
Nyall Dawson
20c07a58e6 Remove support for disabling OTF reprojection
Because
- OTF reprojection is mature and stable
- Should be no cost when not required - transforms are shortcut
when not required
- Reduces code complexity
- Canvas OTF support was being incorrectly used as a flag for
whether measurements should be made in ellipsoidal mode. Instead
the project's ellipsoid setting should be checked for this.
- Should simplify behavior for new users
2017-03-01 07:29:35 +10:00
Alexander Bruy
dbca0304d9 [processing] rename algorithm groups in GDAL provider 2017-02-28 12:37:48 +02:00
Matthias Kuhn
c0a8ee51e1 Do not re-lookup already present CRSes 2017-02-24 09:15:22 +01:00
Bernhard Ströbl
115ede60ce [processing] replace alg Eliminate with new alg EliminateSelection
* [processing] replace alg Eliminate with new alg EliminateSelection

* Deprecate Eliminate algorithm

* Expose new EliminateSelection algorithm in GUI

* Rename ouput layer

* Reflect algorithm changes in help

* Remove superfluous init method

* Simplify code, thanks Nyall

* Improve transfer of selection to processLayer

* Remove deprecated Eliminate algorithm

* Remove test for Eliminate

* Fix indentation
2017-02-23 09:33:28 +01:00
Nyall Dawson
74abd5bbf6 [FEATURE][processing] Topological coloring can have a minimum
distance between features assigned the same color set
2017-02-22 12:54:34 +10:00
Nyall Dawson
5c43e0b22b Add method to assign colors in order to maximize the distance between
features assigned to same color

This is the most cartographically pleasing color arrangement in my
opinion as it creates a nicely distributed set of colors.
2017-02-22 12:37:12 +10:00
Nyall Dawson
2fd78b85bd Make algorithm recursive
When a new color is required, repeat the color assignment process.
This is the fastest part of the algorithm, so there's no noticable
speed drop. Repeating the whole coloring ensures that newly added
colors are properly balanced with respect to other colors, and avoids
the situation where one of the last features to be colored requires
a whole new class to be created, which will only have a few possible
members.

Overall this results in more balanced color assignment.
2017-02-22 12:10:13 +10:00
Nyall Dawson
ff10cf48f4 Add balance by area mode
This mode attempts to assign colors in such a way that the total
area of features assigned to each color class is balanced. It helps
avoid larger features causing a single color class to appear more
dominant on a colored map.
2017-02-22 12:10:13 +10:00
Nyall Dawson
ac5e292243 Allow specifying minimum number of colors for coloring map 2017-02-22 12:10:13 +10:00
Nyall Dawson
1cf0a20267 [FEATURE][processing] New algorithm for topological coloring of polygons
This ports to old (pre 2.0!!) topocolor plugin to processing. It's based
off my beta 2.x fork (never publicly released) which implemented
a bunch of improvements to the algorithm allowing for minimal number
of required colors and also balanced counts of features assigned
each individual color.

** Pretty sure this plugin was highlighted in Victor's presentation
about plugins-which-shouldn't-be-plugins-and-should-be-processing-algs
instead. It's a prime example of a plugin where the amount of code
required for gui+setup exceeded the actual "guts" of the plugin by
a huge factor, and which is much more useful when it can be
integrated into a larger processing model.
2017-02-22 12:10:13 +10:00
Juergen E. Fischer
0d1ab702fc processing: improve saga detection on windows 2017-02-19 22:24:25 +01:00
Alexander Bruy
aa862810e3 Merge pull request #4146 from jdugge/master
[processing] gdal translate fixes
2017-02-16 14:44:36 +02:00
Alexander Bruy
f587ae5f30 Merge pull request #4150 from alexbruy/processing-graphs
[processing] improve graphs
2017-02-16 14:42:08 +02:00
volaya
7f1ff08ebb Merge pull request #4116 from ghtmtt/r_prov
[processing] small fix for R provider
2017-02-16 11:13:16 +01:00
volaya
cdb35d6288 Merge pull request #4119 from arnaud-morvan/processing_postgis_wrappers
[processing] Add PostGIS widget wrappers
2017-02-16 11:12:30 +01:00
Alexander Bruy
1d68c164e2 don't open output file automatically 2017-02-15 20:07:24 +02:00
Alexander Bruy
58b9c82e20 remove old imports 2017-02-15 20:07:24 +02:00
Alexander Bruy
b3ab5543dd [processing] update polar plot 2017-02-15 20:07:24 +02:00
Alexander Bruy
19289ccc4e [processing] update mean and std.dev plot 2017-02-15 20:07:24 +02:00
Alexander Bruy
2abc3f7233 [processing] update raster layer histogram 2017-02-15 20:07:24 +02:00
Alexander Bruy
e0131a7526 [processing] update vector layer histogram 2017-02-15 20:07:24 +02:00
Alexander Bruy
a352773887 [processing] update vector layer scatterplot 2017-02-15 20:07:23 +02:00
Alexander Bruy
46a9891e5c [processing] update bar plot 2017-02-15 20:07:07 +02:00
jdugge
f2ac88ba25 Update translate.py 2017-02-14 22:43:13 +01:00
Juernjakob Dugge
063c80ee1d GDAL translate algorithm: Default value for EXPAND, make PROJWIN optional 2017-02-14 21:56:55 +01:00
Alexander Bruy
1430e93340 [processing] improve SAGA version check. Fix getCopy() method 2017-02-14 12:55:33 +02:00
Nyall Dawson
91eea30e7d [FEATURE][processing] Algorithm to find an unknown layer's projection
If you have a layer with an unknown CRS, this algorithm gives a list
of possible candidate CRSes which the layer could be in.

It allows users to set the area (and corresponding CRS) which they know
the layer should be located near. The algorithm then tests every CRS
in the database to see what candidate CRSes would cause the layer
to be located at that preset area.

It's much faster than it sounds!! (just a couple of seconds)

Sponsored by SMEC/Surbana Jurong
2017-02-14 05:49:23 +10:00
Alexander Bruy
f7380c1b6f Merge pull request #4132 from NaturalGIS/fix_ogr_postgis_mandatory_params
[processing] make ogr postgis parameters mandatory where needed
2017-02-10 18:04:12 +02:00
Alexander Bruy
5c8c53c397 [processing] more fixes to GdalAlgorithm dialog (followup 47d46bb8c3) 2017-02-10 17:59:53 +02:00
Alexander Bruy
40dfdd7960 Merge pull request #4131 from NaturalGIS/fix_ogr_offset_lines
[processing] remove useless options form ogr offset line tool
2017-02-10 17:43:54 +02:00
Giovanni Manghi
26448364b4 make ogr postgis parameters mandatory where needed 2017-02-10 15:41:39 +00:00
Alexander Bruy
47d46bb8c3 [processing] fix initialization of GdalAlgorithmDialog 2017-02-10 17:38:24 +02:00
Giovanni Manghi
5ade65aa16 remove usless options form ogr offset line tool 2017-02-10 15:01:25 +00:00
arnaud.morvan@camptocamp.com
c768edf9d1 [processing] Add postgis widget wrappers 2017-02-10 11:01:41 +01:00
Alexander Bruy
501a5f9268 [processing] always load ExecuteSQL algorithm 2017-02-10 11:18:05 +02:00
Alexander Bruy
c0eb9975f8 Merge pull request #4118 from alexbruy/processing-saga-ltr
[processing] support only SAGA LTR
2017-02-10 10:31:23 +02:00
Alexander Bruy
2ea3ac4611 Merge pull request #4122 from alexbruy/processing-gdal2
[processing] remove code with  GDAL 1.x API calls
2017-02-09 20:48:43 +02:00
Alexander Bruy
2c188b2b0f [processing] fix helper function from system module (fix #16128) 2017-02-09 14:25:53 +02:00
Alexander Bruy
f66646c483 [processing] remove code with GDAL 1.x API as QGIS 3 will require GDAL 2.x 2017-02-09 14:15:31 +02:00
Alexander Bruy
732b501db1 [processing] support only SAGA LTR 2017-02-09 11:49:22 +02:00