Nyall Dawson
24ffa15ecf
[FEATURE][processing] Extract by attribute can extract for null/notnull values
...
Adds support for filtering where an attribute value is null or not null
2016-11-17 13:09:23 +10:00
Nyall Dawson
fb8b931a8e
[processing] Fix error with field widget wrapper
2016-11-17 13:09:23 +10:00
Nyall Dawson
e624518e00
Merge pull request #3755 from nirvn/style_manager_upgrade
...
[FEATURE] Style management re-work and upgrade
2016-11-17 12:40:52 +10:00
Nyall Dawson
964ecfd743
Fix build
2016-11-17 09:04:19 +10:00
Nyall Dawson
089b663996
Show layer path tooltips in QgsMapLayerComboBox
...
Handy for differentiating between multiple layers with the
same name
2016-11-17 09:04:19 +10:00
Nyall Dawson
1da400a99d
Rename enum values for consistency
2016-11-17 09:04:19 +10:00
Nyall Dawson
fc65334a60
[processing] Add file picker to vector/raster/table parameters
...
in modeller
Makes it obvious that users can set an algorithm vector/raster/
table input to a fixed table
2016-11-17 09:04:19 +10:00
Nyall Dawson
f78f2a05c6
[processing] Use native QGIS map layer combobox
...
Switches the custom map layer combo box used in the run algorithm
dialog across to the standard QGIS map layer combo box
2016-11-17 09:04:19 +10:00
Nyall Dawson
5c3aea33b8
Allow filtering QgsMapLayerComboBox by data provider
2016-11-17 09:04:19 +10:00
Nyall Dawson
9ee7873572
Allow showing additional items in QgsMapLayerComboBox
...
These may represent additional layers such as layers which
are not included in the map layer registry, or paths to
layers which have not yet been loaded into QGIS.
2016-11-17 09:04:19 +10:00
Nyall Dawson
ec49341f85
Allow showing CRS in QgsMapLayerComboBox
2016-11-17 09:04:19 +10:00
Nyall Dawson
959f97f682
Allow not set choice in QgsMapLayerComboBox
2016-11-17 09:04:19 +10:00
Juergen E. Fischer
6638569074
oracle provider: allow switching workspaces through property
...
(cherry picked from commit 2dc448dfb8c568c20e69fc9e3955e5df63d9a880)
2016-11-16 23:53:21 +01:00
Matthias Kuhn
33ee514b5d
Disable failing PyQgsOfflineEditingWFS test
2016-11-16 15:05:37 +01:00
Nyall Dawson
af016cfb94
Don't use auto generated widgets for fields with provider default
...
value clause
Using auto widgets may cause the default value clause to be mangled,
eg by converting it to a number
2016-11-16 14:19:24 +01:00
Nyall Dawson
60bbd09339
Avoid double-evaluating postgres default values
2016-11-16 14:19:24 +01:00
Nyall Dawson
249c8dca20
Prioritise provider default literals over reused values when
...
creating a new feature
2016-11-16 14:19:24 +01:00
Nyall Dawson
631bd48aa0
Port remaining map tools, paste features, offline editing
...
to use new constraint/default clause handling methods
2016-11-16 14:19:24 +01:00
Nyall Dawson
091f488985
Make sure primary keys are always marked with a unique, not null
...
constraint for all providers
2016-11-16 14:19:24 +01:00
Nyall Dawson
b5864cd432
[FEATURE] Improve handling of defaults (inc provider default clauses,
...
literal defaults, and qgis expression defaults) and automatically
handle unique value constraints on layers
Add a new method QgsVectorLayerUtils::createFeature which returns
a new feature which includes all relevant defaults. Any fields
with unique value constraints will be guaranteed to have a value
which is unique for the field.
Currently only in use by the split feature tool.
Sponsored by Canton of Zug and the QGEP project
2016-11-16 14:19:24 +01:00
Nyall Dawson
95271c869b
Fix clearing constraints
2016-11-16 14:19:24 +01:00
Nyall Dawson
747097d43d
New method QgsVectorLayerUtils::createUniqueValue
...
Returns a new unique attribute value for a layer. For numeric
fields this is the max attribute value + 1, for strings we
attempt to create a unique value by append _1, _2, etc to either
a specified 'seed' value, or failing that to the end of the
value of that field from the first feature in the layer.
2016-11-16 14:19:24 +01:00
Nyall Dawson
4682eaf6eb
Add QgsVectorLayer::uniqueStringsMatching() to retrieve
...
a list of unique strings matching a substring for a field
2016-11-16 14:19:24 +01:00
Nyall Dawson
3242321aa9
[FEATURE] Add method to get list of unique strings matching
...
a substring from a vector data provider
Base implementation iterates through all features, but
providers can override with optimised versions. Native
implementations for postgres, spatialite and OGR included.
2016-11-16 14:19:24 +01:00
volaya
ff691a6bc4
Merge pull request #3747 from nyalldawson/num_input
...
[processing] Restore spin box widget for number inputs outside modeller
2016-11-16 13:59:25 +01:00
Juergen E. Fischer
582a56d85c
fix f2e3d53 indentation
2016-11-16 13:09:08 +01:00
Juergen E. Fischer
f2e3d5308d
oracle provider: fix retrieval of column comments for geometryless tables ( fixes #15853 )
...
(cherry picked from commit a62fdb085d741da898f2bbb048c33b58aee9d630)
2016-11-16 11:54:31 +01:00
nirvn
b32a719798
[symbology] draw effect(s) when rendering preview icon
2016-11-16 11:22:06 +01:00
Matthias Kuhn
f5f2850679
More api break documentation
2016-11-16 09:33:19 +01:00
Matthias Kuhn
f18d1c3083
Rename listActions to actions and fix test
2016-11-16 09:33:19 +01:00
Matthias Kuhn
a6eb7b6281
Convert action ids to uuid
2016-11-16 09:33:19 +01:00
Matthias Kuhn
08d350c0cb
Fix bindings and docs
2016-11-16 09:33:19 +01:00
Matthias Kuhn
e7d8b2cabf
Rename scopes to "Field", "Feature", "Layer"
2016-11-16 09:33:19 +01:00
Matthias Kuhn
5b4a88f8e0
[feature] Add layer scoped actions
...
Within the attribute table, there is a new button to trigger actions
which are not based on individual features but instead on the whole layer.
Normally they will perform actions based on all features or the selection.
In addition to this, a lot of cleanup has been done.
2016-11-16 09:33:19 +01:00
nirvn
5e487cfea4
[FEATURE] Style management re-work and upgrade
...
- A new favorite grouping system was added, which the symbols list
widget defaults to
- The selected tag / smartgroup in the symbols list widget now
persists when switching layers (and across sessions)
- The symbols list widget will update the tag / smartgroup combo
box when users add / rename / remove categories
- Users can now directly tag, as well as add to favorites, symbols
while saving those to the style database
- To streamline style management, groups have been removed and
fully replaced by tags
- Tags have been integrated into the import/export user interface
2016-11-16 14:12:19 +07:00
Nyall Dawson
6727ea78bd
Merge pull request #3764 from nyalldawson/cache_fix2
...
Cache fixes
2016-11-16 10:38:47 +10:00
Nyall Dawson
87d2ac3525
Add @map_extent variable containing geometry of current map extent
...
...Because I've seen a lot of ugly workarounds to recreate this
extent using wkt/buffers/etc
2016-11-16 10:21:29 +10:00
Werner Macho
1d538a6745
Add Translator
...
Add new italian translator
2016-11-15 20:33:47 +01:00
Juergen E. Fischer
e9c4090e43
fix build of qspatialite and ocispatial sql drivers
2016-11-15 18:00:17 +01:00
Alexander Bruy
6c4eeda29d
Merge pull request #3762 from nirvn/processing_fix_grass
...
[processing] fix grass/grass7 installation check
2016-11-15 14:50:09 +02:00
Alexander Bruy
adcb77266b
Merge pull request #3761 from nirvn/processing_parameterextent_fix
...
[processing] fix ExtentSelectionPanel's getValue()
2016-11-15 14:49:49 +02:00
aroche
6bfd0fd79e
fix exception when selecting string function
...
just a typo causing an exception when selecting a string function in query builder dialog
2016-11-15 12:13:31 +01:00
Denis Rouzaud
a373f95707
[FEATURE] add functionnality to copy/move feature to move feature map tool
2016-11-15 11:28:47 +01:00
Richard Duivenvoorde
9ddf78e39f
minimal textual fix
2016-11-15 10:15:21 +01:00
Nyall Dawson
8f8624a333
Improve test debugging
2016-11-15 14:03:49 +10:00
Nyall Dawson
b5c1d0f24e
QgsCacheIndexFeatureId can also handle non-FilterFid requests
...
in certain circumstances
On behalf of Faunalia, sponsored by ENEL
2016-11-15 14:03:49 +10:00
Nyall Dawson
53460232bb
Don't query list of visible features when showing selected features
...
On behalf of Faunalia, sponsored by ENEL
2016-11-15 14:03:49 +10:00
Nyall Dawson
b0801f34c9
Avoid warning noise during attribute table load
...
On behalf of Faunalia, sponsored by ENEL
2016-11-15 14:03:48 +10:00
Nyall Dawson
08eaeaab4a
Increase maximum number of cached features
...
On behalf of Faunalia, sponsored by ENEL
2016-11-15 14:03:48 +10:00
Nyall Dawson
5e3d8fe0b6
Use cached feature iterator if cache has all needed features
...
Previously a cached feature iterator would only be returned
if cache was either full or used a cache index
On behalf of Faunalia, sponsored by ENEL
2016-11-15 14:03:48 +10:00