6556 Commits

Author SHA1 Message Date
Alvaro Huarte
7e1d142fef Add Visvalingam simplification algorithm 2016-05-25 22:53:01 +02:00
Alvaro Huarte
734b8b4c62 Add SimplifyAlgorithm enum for local simplification
It implements the SimplifyAlgorithm enum for local simplification of
geometries.
Also the SnapToGrid algorithm is added.
2016-05-25 22:53:01 +02:00
Alvaro Huarte
51f06edbf7 Allow override WkbPtr and define WkbSimplifierPtr class
This commit simplifies the geometry just before to paint it in the
current QPainter device.

This commit allows to override the '>>' operators of the QgsWkbPtr
class. Also, It defines a new QgsWkbSimplifierPtr class to automatically
simplify the input point stream.
2016-05-25 22:50:28 +02:00
Alvaro Huarte
c4d7981678 New members in QgsVectorSimplifyMethod for QPaint simplification 2016-05-25 22:50:28 +02:00
Alexander Bruy
322da8b2cf Merge pull request #3105 from volaya/processing_cleanup
[processing] cleanup and improvements
2016-05-25 20:42:17 +03:00
pcav
92604cf207 Merge branch 'master' of https://github.com/qgis/QGIS 2016-05-25 18:59:16 +02:00
volaya
997a3683a0 [processing] removed wrong import 2016-05-25 17:53:07 +02:00
volaya
f915cbe63e [processing] fixed modeler dialog 2016-05-25 14:59:08 +02:00
Nathan Woodrow
76a23e68e8 [python] Add bits() bindings for QgsRasterBlock 2016-05-25 21:10:07 +10:00
volaya
950a191813 [processing] remove square brackets from output names when no path and no extensions are provided 2016-05-25 10:43:22 +02:00
volaya
7f48ea4b8d [processing] only ask for msys folder in windows 2016-05-25 09:48:30 +02:00
Nyall Dawson
9f325df9c7 Search widget wrapper for relation reference widget 2016-05-25 15:41:04 +10:00
volaya
68379963d2 Merge pull request #3103 from rldhont/bugfix_processing_rscript_output_table
[BUGFIX][Processing][Rscript] Write output Table
2016-05-25 07:36:12 +02:00
volaya
1cddf8db00 Merge pull request #3102 from rldhont/bugfix_processing_rscript_crs
[BUGFIX][Processing][Rscript] Use CRS Parameter
2016-05-25 07:35:38 +02:00
rldhont
3b7c0fc04f [BUGFIX][Processing][Rscript] Write output Table
Add support forwriting  output table to Rscript command.
2016-05-24 21:52:02 +02:00
rldhont
f470c531d8 [BUGFIX][Processing][Rscript] Use CRS Parameter
Add support for CRS parameter to Rscript command.
2016-05-24 21:38:59 +02:00
Nyall Dawson
58e1c7fc43 Add a set to null ('clear') to color buttons 2016-05-25 03:23:06 +10:00
Alexander Bruy
dadc9d2057 fix typo 2016-05-24 19:59:07 +03:00
Alexander Bruy
c69665be92 [processing][gdaltools] reword merge option (fix #8519) 2016-05-24 19:47:48 +03:00
Alexander Bruy
8ad1e3c8bc [processing] add ability to choose encoding when importing into PostGIS (fix #14687) 2016-05-24 19:32:58 +03:00
rldhont
5d7e218b04 [BUGFIX][Processing][Rscript] Use Extent Parameter
Add support for extent parameter to Rscript command.
2016-05-24 16:01:30 +02:00
volaya
3607e269c6 [processing] improvements for new mechanism for adding algorithms
Correctly remove algorithms on plugin unload
2016-05-24 10:27:38 +02:00
Nyall Dawson
3e45369f77 Followup 71712a, add missing SIP bindings
Also change QPointF& -> QPointF (faster)
2016-05-24 05:26:46 +10:00
volaya
bc75862e53 [processing] fixed header 2016-05-23 19:36:16 +02:00
volaya
2eebe0d314 [processing] additional mechanism to add scripts from 3rd party plugin 2016-05-23 19:36:16 +02:00
volaya
33fc3be15f [processing] separated alglist to its own module 2016-05-23 19:36:16 +02:00
volaya
9a5c5835ef [processing] moved imports to initialize providers to a separate module 2016-05-23 19:34:25 +02:00
Alexander Bruy
7014c9baa0 [processing] fix tests 2016-05-23 19:34:25 +02:00
volaya
b90ec83c23 [processing] keep parameter in addProvider method for backwards compatibility 2016-05-23 19:34:25 +02:00
volaya
e6b76c4d7b [processing] cleaning and restructuring
This fixes some design errors (mainly the ModelerUtils class, which is not needed anymore to hold a copy of algs and providers in order to avoid circular dependencies) and removes unused code
2016-05-23 19:34:25 +02:00
volaya
b4b05bade7 [processing] save value of grass path when autoconfiguration is succesful 2016-05-23 19:34:24 +02:00
volaya
e925382292 [processing] fixed provider updates in toolbox 2016-05-23 19:34:24 +02:00
Alexander Bruy
d2b21891d4 [processing] correctly set default value in modeler algorithms (fix #12767) 2016-05-23 17:42:54 +03:00
Nyall Dawson
1c4811fa12 Add Is Not Null and Is Not Between type search/filters 2016-05-24 00:26:15 +10:00
Nyall Dawson
e00ea61be6 Add missing docs 2016-05-24 00:26:15 +10:00
Nyall Dawson
02c0174d41 Add a "Between" type search/filter in filter form mode
When Between searches are selected, two search widget wrappers
will be created to allow entry of the minimum/maximum allowed
values.
2016-05-24 00:26:15 +10:00
Nyall Dawson
026e352cd9 [FEATURE] Add a search widget wrapper for datetime widgets 2016-05-24 00:26:15 +10:00
Nyall Dawson
6d868598f5 Add an interderminant "empty" state for QgsDateTimeEdit 2016-05-24 00:26:14 +10:00
Nyall Dawson
195b4dee5a [FEATURE] Add search widget wrapper for check box widget 2016-05-24 00:26:14 +10:00
Nyall Dawson
ca5c7e2cd4 [FEATURE] Form based select/filter in attribute table
This commit adds a new mode to the attribute table dialog for searching
and filtering features. When activated (using a button on the toolbar
or by pressng CTRL+F), the dialog will switch to form view and all
widgets are replaced with their search widget wrapper variant.

Alongside each widget is a tool button with options for controlling
the search/filter behaviour for that field, eg "equal to", "not equal
to", "is null", "greater than", etc.., with the options presented
matching themselves to the corresponding field and widget type.

New buttons appear at the bottom of the form for either selecting
matching features (with options for add to selection/remove from
selection/select within current selection) or filtering features
in the table (with options for adding features to a current filter
or further restricting a current filter).

Sponsored by SIGE
2016-05-24 00:26:14 +10:00
Alexander Bruy
2f5c3a570a [processing] fix expressions handling in ParameterString (fix #14834)
Add initial set of tests for ParameterString
2016-05-23 14:28:10 +03:00
volaya
9074b14a74 [processing] fix to avoid interrupted system call exceptions in mac 2016-05-23 13:25:20 +02:00
Alexander Bruy
6207412bf7 [processing] restore CreateConstantRaster algorithm (fix #14860) 2016-05-23 12:41:45 +03:00
ninsbl
75c76f51f1 [processing] Don't round grass7 extent and resolution to integer
fix #14582
See: https://hub.qgis.org/issues/14582

The commit removes the a-flag when the grass region for raster analysis is set. The a-flag causes in some cases unwanted rounding of raster extend / resolution, and should not be set hardcoded in processing. It is usually used in combination with the "res" option.
For aligning the pixels of the GRASS region to a specific raster, the align option should be used (and not the a-flag). See: https://grass.osgeo.org/grass70/manuals/g.region.html
GRASS 6.4 algs do not use the a-flag either, which explains why this bug appears only for GRASS 7.
2016-05-23 08:49:29 +02:00
Nyall Dawson
726a013222 Flag old composer table classes as deprecated 2016-05-23 14:52:53 +10:00
Nyall Dawson
eb3a34cc92 Fix QgsComposerAttributeTableV2 setting displayed fields under qt5
Also don't run QgsComposerAttributeTable test when disable
deprecated flag is set.
2016-05-23 14:52:46 +10:00
Matthias Kuhn
dbb24e971e [processing tests] More tolerance in statistics test 2016-05-22 21:52:55 +02:00
Matthias Kuhn
ced7c27dcf [py3] Use __bool__ instead of __nonzero__ 2016-05-22 21:52:55 +02:00
Matthias Kuhn
7f3526be71 [processing tests] Cleanup layer registry before every new test 2016-05-22 21:52:55 +02:00
Nathan
3ace8e62fd [Style dock] Add support for raster layers 2016-05-22 20:45:24 +10:00