4410 Commits

Author SHA1 Message Date
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
47683fca4f [needs-docs] Rename Outline and Border -> Stroke
This change is being driven by:

- need for consistent terminology in the api. Currently there's
a confusing mix of border/outline used
- need for consistent terminology in the gui - we have a mix
of "border"/"outline"/"pen"
- bringing QGIS into line with the standard terminology used
in other graphic editing programs
2017-02-22 19:22:45 +10: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
f66b0baf16 Merge pull request #4144 from alexbruy/processing-results-viewer
[processing] convert results viewer to dock
2017-02-17 09:10:55 +02:00
Alexander Bruy
441f6e6e6e Merge pull request #4120 from arnaud-morvan/processing_fix_boolean_wrapper
[processing] fix boolean widget wrapper in batch dialog
2017-02-16 14:45:25 +02: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
Alexander Bruy
e77ccba1ae remove old code 2017-02-16 13:16:20 +02:00
Alexander Bruy
3b7fdf4cbf move results viewer icon to QGIS icons directory 2017-02-16 13:16:12 +02:00
Alexander Bruy
5fa0713747 [processing] convert results viewer to dock 2017-02-16 13:16:12 +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
Matteo Ghetta
34b277a09b [processing] test poly_from_extent (#4149) 2017-02-15 13:29:14 +01: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
620ad41150 Merge pull request #4127 from arnaud-morvan/processing_fix_postgis_dberror
[processing] Fix infinite recursion in DbError.__str__
2017-02-14 16:40:18 +02: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
Nyall Dawson
3ecafb3472 [processing] Allow extent parameters to avoid matching layer CRS check 2017-02-14 05:49:23 +10:00
arnaud.morvan@camptocamp.com
5028cc76ac [processing] Fix infinite recursion in DbError.__str__ 2017-02-13 15:02:54 +01:00
Juergen E. Fischer
fe75e1f2a6 processing: fix warning 2017-02-11 21:44:32 +01: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
e8be083daa [processing] remove unused parameters from test (followup 5ade65aa16) 2017-02-10 18:02:52 +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
cc1adc528e [processing] handle case when default CRS is None and parameter is not optional 2017-02-10 17:39:45 +02: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
Alexander Bruy
16384cfe2c Merge pull request #4128 from arnaud-morvan/processing_geometrypredicate_wrapper
[processing] Remove obsolete GeometryPredicateWidgetWrapper
2017-02-10 16:41:35 +02:00
arnaud.morvan@camptocamp.com
f07154b613 [processing] Remove obsolete GeometryPredicateWidgetWrapper 2017-02-10 11:16:38 +01:00
arnaud.morvan@camptocamp.com
337d1889b8 [processing] Use ExpressionWidgetWrapperMixin in StringWidgetWrapper 2017-02-10 11:14:34 +01:00
arnaud.morvan@camptocamp.com
7bffef7044 [processing] Fix ModelerParametersDialog when len(widget) == 0 2017-02-10 11:01:41 +01: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