Nyall Dawson
9a2ca1cebd
Merge pull request #3673 from nyalldawson/constraints
...
[FEATURE] Improved constraint handling, pt 1
2016-11-04 10:34:15 +10:00
Nyall Dawson
100667ace0
Fix dialogs which violate HIG (use of : at end of label)
2016-11-04 10:02:46 +10:00
Alexander Bruy
8b3c39a220
[processing] add missed description files for OTB 5.4.0
2016-11-03 16:58:18 +02:00
Alexander Bruy
373e591a80
drop old user startup script in favour of the new system
...
User script should be placed into $HOME/.local/share/QGIS.
Additionally global scripts from /usr/local/share and
/usr/share will be loaded if present
2016-11-03 12:11:57 +02:00
Nyall Dawson
9cd29f39d8
[processing] Fix batch panel under Qt5
2016-11-03 16:33:09 +10:00
nirvn
03e29d4f01
[processing] optimise singlepart to multipart algorithm
...
- keep z/m/curved geometries intact
- rewrite loop to avoid the cost of nb. feature x unique values
2016-11-03 09:05:31 +07:00
Nyall Dawson
a44ea22880
Small refinement to multipart to singlepart alg
2016-11-03 05:40:11 +10:00
Alexander Bruy
dac03d5ce8
use default QString() constructor instead of ""
...
improve doxygen docs
2016-11-02 14:44:20 +02:00
Alexander Bruy
75b23cb55c
update Python bindings
2016-11-02 14:44:20 +02:00
Alexander Bruy
1c44d7471f
Merge pull request #3695 from nirvn/processing_modeler_dblclick
...
[processing] resurrect editing of modeler item on double-click
2016-11-02 14:16:27 +02:00
Denis Rouzaud
dbd7de3940
Merge pull request #3689 from rduivenvoorde/getPlugins3
...
Temporarily hardcode plugins version in url ?qgis=3.0
2016-11-02 11:47:04 +01:00
Alexander Bruy
5d877fd888
Merge pull request #3707 from nyalldawson/multipart_to_single
...
[processing] optimise multipart to singlepart algorithm
2016-11-02 10:06:25 +02:00
Nyall Dawson
18fc0c6fad
[processing] optimise multipart to singlepart algorithm
...
- simplify code
- keep z/m/curved geometries intact
- might be a bit faster
2016-11-02 16:06:00 +10:00
Nyall Dawson
f65e770242
[FEATURE[processing] New algorithm to compute geometry by expression
...
This algorithm updates existing geometries (or creates new
geometries) for input features by use of a QGIS expression. This
allows complex geometry modifications which can utilise all the
flexibility of the QGIS expression engine to manipulate and create
geometries for output features.
2016-11-02 16:05:46 +10:00
Nyall Dawson
3f2a7810cf
Respect non-enforced constraints when editing/adding features
...
Warnings are shown, but features can be committed. Fields which
fail an unenforced constraint are now shaded in yellow to differentiate
from the red failure for enforced constraints.
2016-11-02 13:42:22 +10:00
Nyall Dawson
fac5bc0691
[FEATURE] Field constraints can be enforced or not
...
Non-enforced constraints just show a warning to the user, but
do not prevent committing the feature. Enforced constraints
block users from comitting non compliant features.
Any constraints detected by the provider are always
enforced.
2016-11-02 13:42:22 +10:00
Nyall Dawson
cb94b68d88
Move constraint handling to QgsFieldConstraints
...
Avoids cluttering QgsField API
2016-11-02 11:07:07 +10:00
Nyall Dawson
a6319a47d7
If the layer is NOT being edited then only check layer based constraints
...
and not any constraints enforced by the provider
Because:
1. we want to keep browsing features nice and responsive. It's nice to give
feedback as to whether the value checks out, but not if it's too slow to
do so. Some constraints (eg unique) can be expensive to test. A user can
freely remove a layer-based constraint if it proves to be too slow to
test, but they are unlikely to have any control over provider-side
constraints
2. the provider has already accepted the value, so presumably it doesn't
violate the constraint and there's no point rechecking!
2016-11-02 11:07:07 +10:00
Nyall Dawson
c98d380dc1
Move responsibility for testing for attribute against constraints
...
to QgsVectorLayerUtils::validateAttribute()
Also clean up some strings shown to the user when a constraint
check fails
2016-11-02 11:07:07 +10:00
Nyall Dawson
2500d75f5e
Move responsibility for storage of constraint expressions to QgsVectorLayer
2016-11-02 11:07:07 +10:00
Nyall Dawson
f99ea26bdf
Refactor constraint handling
...
- store constraint origin in QgsField
- move handling of constraint expressions to QgsField
2016-11-02 11:07:07 +10:00
Nyall Dawson
1cecf37b40
Enforce unique constraints in attribute form
2016-11-02 11:07:07 +10:00
Nyall Dawson
b7d0fd6f90
New class QgsVectorLayerUtils
...
Contains static helper methods for working with vector layers.
Initially only contains a method to test whether a value
exists within a layer's attributes.
2016-11-02 11:07:07 +10:00
Nyall Dawson
6bbd0061f3
Move handling of not null constraint from edit form to layer
2016-11-02 11:07:07 +10:00
Nyall Dawson
bd9f672aa7
Allow constraints to be added at a QgsVectorLayer level
2016-11-02 11:07:07 +10:00
Nyall Dawson
4efad04bd8
Move constraints to QgsField
2016-11-02 11:07:07 +10:00
Nyall Dawson
d1fd588499
Add method to fetch constraints from a vector data provider
...
Implemented for unique and not null constraints for postgres
provider
2016-11-02 11:07:07 +10:00
Juergen E. Fischer
d3c7a04193
fix typo
...
(cherry picked from commit 658cfe68c91ec24f04f8ebda307fbec7d55a412f)
2016-11-01 13:51:49 +01:00
Juergen E. Fischer
7a326b1b8d
fix typos
2016-11-01 13:46:29 +01:00
Martin Dobias
6b120a8600
Fix display of diagram legend entries ( fixes #15448 )
...
To make the implementation saner, the legend node that may be embedded within parent
layer node is kept separately from activeNodes.
(cherry picked from commit b385ebd9ba9272516eed61e5825a603fcee969e9)
2016-11-01 11:41:23 +08:00
Nyall Dawson
47109d13b7
Flip some connects to new style
2016-11-01 11:10:40 +10:00
Nyall Dawson
88871c2320
Merge pull request #3696 from nirvn/processing_otb_silent
...
[processing] remove console error message when optional otb provider not installed
2016-10-31 16:24:44 +10:00
nirvn
8e663309c0
[processing] remove console error message when optional otb provider not installed
2016-10-31 12:53:42 +07:00
Martin Dobias
a3186f80bc
Fix layer tree expanded state when used expand/collapse all ( fixes #15691 )
...
(cherry picked from commit de85fdd6e8fa3d4f38196376aabccce317cbf341)
2016-10-31 12:53:30 +08:00
Martin Dobias
24fbe1a080
Fix crash in node tool after deleting the whole geometry ( fixes #15659 )
...
Made sure that both closestVertex() and closestSegment() return negative
distance on error (e.g. with null or emtpy geometry).
Also fixes snapping when dealing with layers with null/invalid geometries
(cherry picked from commit c093d5188fad685c4a596ff23c27aad7d151dac2)
2016-10-31 12:51:21 +08:00
Nyall Dawson
dd4b34ed16
[processing] Modeller should not be modal
2016-10-31 14:37:45 +10:00
nirvn
b48d20220e
[processing] resurrect editing of modeler item on double-click
2016-10-31 11:18:22 +07:00
nirvn
bec379249e
[processing] sort model input parameters to avoid random ordering
2016-10-31 10:53:13 +07:00
Nyall Dawson
3caccd531d
[processing] Fix handling of multiple field input in modeller
2016-10-31 11:41:40 +10:00
Nyall Dawson
a117df2205
Merge pull request #3656 from nirvn/processing_import_to_spatialite
...
[processing] add "Import into Spatialite" algorithm
2016-10-31 09:14:19 +10:00
Nyall Dawson
29ce141dc4
Merge pull request #3657 from nirvn/processing_modeler_mandatory
...
[processing] fix modeler parameter mandatory checkbox logic
2016-10-31 09:13:37 +10:00
Nyall Dawson
d5698be69f
Fix some processing breakage
2016-10-31 09:12:39 +10:00
Nyall Dawson
bd950616ac
Rename visible "favourite" strings to "favorite", change API to
...
use "favorite"
2016-10-31 08:00:19 +10:00
Nyall Dawson
82312e10e4
[FEATURE][processing] New algorithm to extract specific nodes
...
This algorithm allows you to extract specific nodes from geometries.
Eg you can extract the first or last node in the geometry.
The algorithm accepts a comma separated list of node indices to
extract, eg 0 = first node, 1 = second node, etc. Negative indices
can be used to extract nodes from the end of the geometry. Eg
-1 = last node, -2 = second last node.
2016-10-31 07:56:24 +10:00
Nyall Dawson
8dab2cd4d7
[FEATURE][processing] New algorithm to extend lines
...
Allows extending linestrings by a set distance at the start
and end of the line
2016-10-31 07:56:24 +10:00
Nyall Dawson
ef34e393dc
Add method to QgsGeometry to extend the start/end of a linestring
2016-10-31 07:56:24 +10:00
Nyall Dawson
c494c472ac
Merge pull request #3690 from nyalldawson/extract_by_exp
...
[FEATURE][processing] New extract by expression algorithm
2016-10-30 08:23:40 +10:00
nirvn
121f48d654
[processing] add import into spatialite algorithm
2016-10-29 09:33:47 +07:00
Nyall Dawson
74e64645e4
[FEATURE][processing] New extract by expression algorithm
...
Filters an input layer by expression
2016-10-29 08:05:26 +10:00
Richard Duivenvoorde
54f312fa7f
Temporarily hardcode plugins version in url ?qgis=3.0
...
If QGIS 3.0 is actually released this line should be removed.
2016-10-28 16:57:42 +02:00