36145 Commits

Author SHA1 Message Date
Nyall Dawson
bc98a326c0 [FEATURE] Add QgsVectorDataProvider::truncate for clearing layers
Adds a new method to QgsVectorDataProvider to truncate the layer.
The base implementation requires DeleteFeatures capability and
is not optimised. Providers can return the FastTruncate capability
and override the base implementation with a provider specific
optimised version. This is done in this commit for the Postgres
and Spatialite providers.
2016-12-27 13:55:42 +10:00
Nyall Dawson
b256075e30 Add a base class implemention for QgsVectorDataProvider::changeFeatures
Previously this method would only succeed for providers which
explicitly implement it. Now, providers which do not implement
changeFeatures but do support both ChangeAttributeValues
and ChangeGeometries capabilities will use a non-optimised
version of changeFeatures which calls changeAttributeValues
and changeGeometries in turn.

This makes QgsVectorDataProvider::changeFeatures easier to use
in scripts - instead of writing manual fallbacks for providers
which do not implement it you can instead safely call this
method regardless of the provider and it will succeed wherever
both the attributes/geometries can be changed.

Also add a provider unit test covering this.
2016-12-27 13:55:42 +10:00
Mathieu Pellerin
901cd290b1 Merge pull request #3887 from nirvn/raster_pseudocolor_move 2016-12-27 10:54:17 +07:00
nirvn
239b342a3f [FEATURE] Raster stretch toolbar actions support for pseudocolor renderer 2016-12-27 10:16:51 +07:00
nirvn
5ece689033 [FEATURE] Implement raster pseudocolor updated extent auto classification 2016-12-27 10:16:51 +07:00
nirvn
181f84b86f [raster] move pseudocolor renderer classification out of gui into core 2016-12-27 10:16:51 +07:00
Nyall Dawson
9c6883711b Enable edit tests for Postgres provider 2016-12-27 13:06:07 +10:00
Harrissou Sant-anna
8ccc5116b6 Remove mActionDiagramProperties.svg icon (#3910) 2016-12-27 09:36:41 +07:00
Nyall Dawson
792fcb5f9e Rename Select by Expression to Select Features by Expression
to match naming of other Select By... tools
2016-12-27 10:24:40 +10:00
Nyall Dawson
14f18bd020 Make Select by Form default instead of By Expression
Since it's more user-friendly for beginners
2016-12-27 10:24:11 +10:00
Nyall Dawson
1f37238de2 Show NULL preview text in expression editor
Makes creating/debugging expressions easier for users
2016-12-27 09:55:17 +10:00
Nyall Dawson
64f8b4dbad Fix incorrect aggregate values returned for empty sets (fix #16008)
Now empty sets return NULL values for invalid statistics
2016-12-27 09:55:17 +10:00
Juergen E. Fischer
6cb5c60c2d fix numeric translation 2016-12-26 23:36:16 +01:00
Juergen E. Fischer
8fb37aa666 indentation fixes 2016-12-26 23:36:16 +01:00
Juergen E. Fischer
e5a4426dce more spelling fixes 2016-12-26 23:36:16 +01:00
Nyall Dawson
c87aad263f Merge pull request #3880 from nyalldawson/oracle_raster
Remove orphaned oracle raster plugin
2016-12-27 08:21:03 +10:00
Nyall Dawson
77ae8a23b6 [FEATURE] Remove orphaned oracle raster plugin
Marked as feature to flag for documentation and changelog
2016-12-27 08:06:06 +10:00
Juergen E. Fischer
a3faa92339 spelling fixes 2016-12-26 22:19:45 +01:00
Even Rouault
1605a833c0 Contrast enhancement in 'updated extent': fix taking into account OTF mode 2016-12-26 19:40:01 +01:00
Alexander Bruy
47e5a5fc19 [processing] include start point into service area convex hull 2016-12-26 16:39:58 +02:00
Juergen E. Fischer
567f9208d1 dxf import: fix text positions and orientation when importing DXF (fixes #16000) 2016-12-24 00:20:22 +01:00
Even Rouault
645f2c82ca Raster renderer GUI: fix switching between renderers, and potential infinite signal notifications.
Fixes https://github.com/qgis/QGIS/pull/3871#commitcomment-20280621, ie switching between
renderers in the raster layer properties dialog or in the style dock result in non optimal
parameters, so better switch to default parameters that would be the ones used when
adding a layer of the new renderer type to the canvas. This issue already existed in 2.18

Also fixes a potential infinite notification cycle when having both the style dock and
layer properties dialog opened, and applying changes in the layer properties dialog.
(related to https://github.com/qgis/QGIS/pull/3871).
2016-12-23 11:52:59 +01:00
Even Rouault
9124c7377b Merge pull request #3903 from webgeodatavore/fix-gdal-ogr-url
Update outdated URLs
2016-12-22 23:16:17 +01:00
Thomas Gratier
1a5671ecae Update unworking and outdated URLs
GDAL URLs and Spatialite links are outdated (404)
2016-12-22 23:11:58 +01:00
Nyall Dawson
80b757b6db [FEATURE] Add zoom to features shortcut in select by form dialog
Allows very quick navigation to features which match the criteria
in the form
2016-12-23 05:44:38 +10:00
Nyall Dawson
0bfc9bb6e3 [FEATURE] Show field values in autocompleter in form filter mode
This adds a new gui widget QgsFieldValuesLineEdit which includes
an autocompleter populated with current field values.

The autocompleter is nicely updated in the background so that
the gui remains nice and responsive, even if there's millions
of records in the associated table.

It's now used as a search widget for text fields, so can be seen
in the browser window if you set the filter to a text field, or
if you launch the form based select/filter by selecting a layer
and pressing F3.
2016-12-23 05:44:38 +10:00
Nyall Dawson
e27822bf39 Small cleanups to QgsFloatingWidget 2016-12-23 05:44:38 +10:00
Matthias Kuhn
b19278c79d [travis] Decrease maximum ccache size 2016-12-22 20:21:21 +01:00
Matthias Kuhn
33abb78ac5 Pass variable values as QVariant 2016-12-22 20:21:21 +01:00
Matthias Kuhn
79f32ab6b2 Rename QgsProject::variables to QgsProject::customVariables 2016-12-22 20:21:21 +01:00
Matthias Kuhn
b07ecfa106 Let QgsApplication manage global custom variables 2016-12-22 20:21:21 +01:00
Alexander Bruy
94cbc60010 Merge pull request #3900 from m-kuhn/scriptParams
[processing] Fix some script parameter export/import issues
2016-12-22 13:08:10 +02:00
Matthias Kuhn
3fba3ac775 [processing] Quote and escape script exported ParameterString 2016-12-22 11:26:28 +01:00
Matthias Kuhn
55e3ea033a [processing] Fix some script parameter export/import issues 2016-12-22 11:21:32 +01:00
Alexander Bruy
ffd67f119e Merge pull request #3891 from alexbruy/processing-interpolation
[processing] add remaining functionalify from the interpolation plugin
2016-12-22 10:18:02 +02:00
Chris Mayo
835abb97b6 Add missing dependencies in INSTALL Overview 2016-12-21 22:16:27 +01:00
Matthias Kuhn
c41c8924d1 Followup cbac49b6: fix docstring 2016-12-21 20:26:31 +01:00
Matthias Kuhn
cbac49b63b Add QgsProject::write( filename ) convenience function 2016-12-21 17:39:58 +01:00
Matthias Kuhn
4644af393a More build dependencies update 2016-12-21 17:19:57 +01:00
Matthias Kuhn
6c5ec70f87 Update build dependencies 2016-12-21 17:17:53 +01:00
Matthias Kuhn
0a686c4fca [processing] Make ParameterFixedTable scriptable 2016-12-21 14:21:36 +01:00
Matthias Kuhn
2af00beddc [processing] Don't hide errors when resolving script paramters 2016-12-21 13:17:31 +01:00
Alexandre Neto
932de2ab55 Replace PNGs by SVGs (#3896)
- removes no longer needed SVG compounds
- Improves cap and join style icons
2016-12-21 08:55:22 +07:00
Matthias Kuhn
7baeacbcac Followup 1a648229 2016-12-20 17:45:30 +01:00
Matthias Kuhn
1a648229e8 Improve some asserts for more meaningful output in case of error 2016-12-20 17:05:55 +01:00
Matthias Kuhn
2f0f6a98c6 Use assertIsInstance instead of assertTrue(isinstance()) 2016-12-20 16:32:50 +01:00
Alexander Bruy
0340320cd0 [processing] fix wrong ParameterSelection definition 2016-12-20 16:34:52 +02:00
Matthias Kuhn
d129f8a7ab Revert "[Processing] fix parameter to open the Retile algorithm"
This reverts commit 76b796b4916d4ee23dff1a50105cdf1a6635b388.
2016-12-20 13:44:30 +01:00
Alexander Bruy
97780b6be6 [processing] fix incorrect parameter construction 2016-12-20 14:41:58 +02:00
Alexander Bruy
ea4f05d931 [processing] add support for custom parameter used in interpolation algs
to the test suite
2016-12-20 14:29:51 +02:00