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
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
Nyall Dawson
afd5d1e934
Recognise that a cache can be filled using a FilterNone request
...
On behalf of Faunalia, sponsored by ENEL
2016-11-15 14:00:13 +10:00
Nyall Dawson
38a4aac971
Fix test for request size vs cache size
...
On behalf of Faunalia, sponsored by ENEL
2016-11-15 13:41:43 +10:00
nirvn
4a4ffa4c1b
[processing] fix grass/grass7 installation check
2016-11-15 09:27:22 +07:00
nirvn
c87839f054
[processing] fix ExtentSelectionPanel's getValue()
2016-11-15 09:07:58 +07:00
Martin Dobias
8908eea43b
Fix rubber band in node tool not getting updated correctly
2016-11-15 09:51:58 +08:00
Nyall Dawson
d237e27d7e
Followup 29d33b4
2016-11-15 10:15:43 +10:00
Nyall Dawson
29d33b47fe
[processing] Polygons to line fixes
...
- Maintain Z/M values
- Handle curved geometries without segmentizing
- Retain null geometries
2016-11-15 09:43:45 +10:00
Nyall Dawson
5d78d60bf3
Remove duplicate QgsDataProvider::dataChanged( int ) signal
...
Was not needed and not emitted anywhere
2016-11-15 07:00:49 +10:00
Nyall Dawson
4a5faa083f
Remove duplicate selectionChanged signal from QgsVectorLayer
...
If you don't want the extra info, just don't capture it...
2016-11-15 07:00:49 +10:00