34392 Commits

Author SHA1 Message Date
arnaud.morvan@camptocamp.com
c369710667 Calculate min coverage on execution 2016-09-04 17:58:17 +02:00
Matthias Kuhn
01da222b34 Merge pull request #3447 from epifanio/patch-1
fix typo
2016-09-02 17:11:12 +02:00
epifanio
4aac75ff9b fix typo
fix typo in python/plugins/processing/algs/qgis/Polygonize.py
2016-09-02 10:33:45 -04:00
Matthias Kuhn
31c3739460 Merge pull request #3420 from yjacolin/rewordWMSConnexion
Reword delete button in service connection dialog
2016-09-02 08:45:57 +02:00
volaya
7ddaf9039d Merge pull request #3430 from alexbruy/output-vector
[processing] support for explicit output vector types
2016-09-02 08:40:37 +02:00
Alexander Bruy
65db336eaf [processing] move some constants to the dataobjects module 2016-09-02 09:28:45 +03:00
Alexander Bruy
80653c7aff [processing] adopt native algs to use output geomerty 2016-09-02 09:28:32 +03:00
Alexander Bruy
13cd4c944f [processing] split some native algs to take advantage of explicit output types 2016-09-02 09:28:32 +03:00
Alexander Bruy
12d6e15fda [processing] support for output geometry types in scripts and modeler 2016-09-02 09:28:32 +03:00
Alexander Bruy
7e26124c2b [processing] support for output geometry types (work in progress) 2016-09-02 09:28:32 +03:00
volaya
6054bb9518 Merge pull request #3415 from arnaud-morvan/processing_reset_menus
[processing] Add a reset menus button
2016-09-02 08:27:51 +02:00
Even Rouault
8c3537bff2 [DBManager] Fix exception raised when adding a new Spatialite connection
This was accidentaly broken since 1f0fce7852e9f6a27af967d7ac7ee3989dce7b45

Fixes #15274
2016-09-01 20:51:26 +02:00
Larry Shaffer
194b5adb1e [auth] Fix return value for plugins that do not support an expansion
Bug not evident until there were providers with multiple credential
expansions (now supported in OWS providers). Lack of support for an
expansion should only trigger a debug message, not a failure.
2016-09-01 10:06:21 -06:00
Hugo Mercier
b496376419 Merge pull request #3445 from mhugo/fix_virtual
Fix virtual layer queries with accents in layer name
2016-09-01 16:31:23 +02:00
Hugo Mercier
af0d6b93a6 Fix virtual layer queries with accents in layer name 2016-09-01 14:39:31 +02:00
Matthias Kuhn
665df5fbd6 Merge pull request #3436 from aaime/scaledep
Export map level scale based dependencies in most vector symbology
2016-09-01 13:28:48 +02:00
Matthias Kuhn
4a52351127 Merge pull request #3443 from bstroebl/documentProcessing
[processing] Add help for Eliminate sliver polygons
2016-09-01 13:25:37 +02:00
Matthias Kuhn
ffe358179e Export main() when building for android 2016-09-01 13:14:10 +02:00
Nyall Dawson
88047cc984 Merge pull request #3441 from nyalldawson/simplify
Simplify features + fixes
2016-09-01 21:02:09 +10:00
Hugo Mercier
798817eee0 Merge pull request #3442 from mhugo/fix_dependencies
Cleanup layer dependency api
2016-09-01 10:59:44 +02:00
Bernhard Ströbl
7e92d09c5f [processing] Add help for Eliminate sliver polygons 2016-09-01 10:55:08 +02:00
Hugo Mercier
a86611b626 Cleanup layer dependency api 2016-09-01 09:58:37 +02:00
Andrea Aime
a25b0257a5 Export map level scale based dependencies in most vector symbology 2016-09-01 07:40:56 +02:00
Nyall Dawson
7a8ab40717 Merge pull request #3440 from nirvn/qt5_fix_freeze
Remove composer window visibiliy state restoration upon project load (fixes #15495)
2016-09-01 09:39:00 +10:00
Nyall Dawson
56b77db88c [FEATURE][processing] Add choice of simplification method to simplify
This change allows users to choose which method to use when running
the simplify geometries algorithm, with choices of the existing
distance based (Douglas Peucker) algorithm, area based (Visvalingam)
algorithm and snap-to-grid.

Visvaligam in particular usually results in more cartographically
pleasing simplification over the standard distance based methods.
2016-09-01 08:22:18 +10:00
Nyall Dawson
fbd6618d4a Add missing sip binding 2016-09-01 08:04:39 +10:00
Nyall Dawson
5d97d03ad5 [processing] Fix simplify alg handling of null goemetry, add tests 2016-09-01 07:50:02 +10:00
Nyall Dawson
f9e508c566 [processing] More efficient point count for simplify algorithm 2016-09-01 07:42:29 +10:00
Nyall Dawson
73d8544cec Bump max pixel distance for OTF simplification 2016-09-01 07:40:22 +10:00
Nyall Dawson
72d9e9ae35 Fix crash using Visvalingam simplification, add test 2016-09-01 07:35:30 +10:00
Matthias Kuhn
d5377dbc2e Support pre-CXX11 compilers
I'll update the toolchain one day, I promise!
2016-08-31 18:18:55 +02:00
Hugo Mercier
bd3cf76f5f Merge pull request #3320 from mhugo/fix_snapping2
Data dependency between layers + snapping fix
2016-08-31 15:46:18 +02:00
Hugo Mercier
0749ba43ba Rework layer dependencies
A new class QgsMapLayerDependency allows to represent different kinds
of dependencies between layers.
2016-08-31 14:40:13 +02:00
Matthias Kuhn
504badb41f Fix saving field configurations 2016-08-31 12:35:59 +02:00
Hugo Mercier
1a5a7c5905 [Feature] Data dependencies between layers
This allows to declare data dependencies between layers. A data
dependency occurs when a data modification in a layer, not by direct
user manipulation may modify data of other layers.
This is the case for instance when geometry of a layer is updated by a
database trigger after modification of another layer's geometry.
2016-08-31 09:22:09 +02:00
Juergen E. Fischer
a9464d7c94 db manager: don't consider added layer w/o a dataProvider
(cherry picked from commit 28aa9ebdb75eb099b83a3596b3f3c5c6e5c6f591)
2016-08-30 20:57:00 +02:00
Matthias Kuhn
46ea229049 Fix doxygen 2016-08-30 16:08:53 +02:00
Matthias Kuhn
d6a4ab1c0b Expose QgsCoordinateReferenceSystem to QML 2016-08-30 16:08:18 +02:00
Hugo Mercier
e6fd2e2503 Snapping: destroy index on dataChanged signal
Snapping caches on layers that have been changed by the provider or
by external sources are now invalidated.
2016-08-30 11:08:06 +02:00
nirvn
08f5ae67b1 Remove composer window visibiliy state restoration upon project load
(fixes #15495)
2016-08-30 13:45:37 +07:00
Nyall Dawson
15dd29564c Fix Capitalize First Letter fails with curved labels (fix #14875)
Instead of using QFont's inbuilt capitalization support, which
applies only on rendering and accordingly fails for curved
labels which are drawn one character at a time, we now manually
capitalize label text while registering features.

The capitalize first method from Qt was reimplemented in QgsStringUtils
(together with what I expect is better handling of unicode characters
over the Qt method).

This change also makes it possible to implement other capitalization
methods not directly supported by Qt
2016-08-30 15:34:05 +10:00
Nyall Dawson
0658640fa0 Merge pull request #3418 from nyalldawson/default_values2
[FEATURE] Client side default values
2016-08-30 13:25:37 +10:00
Nyall Dawson
97d7b7339e Move storage of field alias and default value to QgsField
This is a partial implementation - QMaps are still used internally
within QgsVectorLayer to track the alias/default values
between attribute edit operations.

Sponsored by DB Fahrwegdienste GmbH
2016-08-30 12:40:55 +10:00
Nyall Dawson
99405864ca Add a changed signal to QgsEditorConfigWidget
And update default value expression preview whenever editor
config changes

Sponsored by DB Fahrwegdienste GmbH
2016-08-30 12:40:52 +10:00
Nyall Dawson
e35c6b4640 Use widget representValue to preview default expression results
Sponsored by DB Fahrwegdienste GmbH
2016-08-30 12:40:47 +10:00
Nyall Dawson
6d28eb5f2a Optimise expression context creation
Sponsored by DB Fahrwegdienste GmbH
2016-08-30 12:40:42 +10:00
Nyall Dawson
8ae7e3f4ee Use client side default values when creating new features
Sponsored by DB Fahrwegdienste GmbH
2016-08-30 12:40:39 +10:00
Nyall Dawson
66cb422669 Add UI for setting default field value expressions in the
field property dialog

Sponsored by DB Fahrwegdienste GmbH
2016-08-30 12:39:55 +10:00
Nyall Dawson
4d5bae22b8 [FEATURE] Client side default field values
Allows an expression to be set for a vector layer field which
is used to evaluate a default value for this field.

A new method,
QgsVectorLayer::defaultValue( int index,
                              const QgsFeature& feature = QgsFeature(),
                              QgsExpressionContext* context = nullptr )
has been added which evaluates the default value for a given field
using the optionally passed feature and expression context. This
allows default values to utilise properties of the feature
which exist at the time of calling, such as digitized geometries.
The expression context parameter allows variables to be used
in default value expressions, making it easier to eg insert
a user's name, current datetime, project path, etc

Default values are set using QgsVectorLayer::setDefaultValueExpression()
and retrieved using defaultValueExpression()
2016-08-30 12:39:55 +10:00
Nyall Dawson
7dea9700a6 [FEATURE] Substitution list support for labeling
Adds the ability to specify a list of text substitutes to make
which apply to label text. Eg abbrevating street types.

Users can export and import lists of substitutes to make
reuse and sharing easier.
2016-08-30 12:39:54 +10:00