41588 Commits

Author SHA1 Message Date
rldhont
08cacd4a1e [Server] Enhance QgsConfigCache 2017-09-19 07:34:35 +02:00
rldhont
8774e69328 [Server] Refactoring, removing qgs*parser files 2017-09-19 07:34:34 +02:00
rldhont
d8cf02e083 [Server] Remove QgsProject::instance 2017-09-19 07:34:34 +02:00
rldhont
a35af0c101 [Server] Refactoring, removing config parser from WMS 2017-09-19 07:34:34 +02:00
rldhont
51f1b83699 [BUGFIX][Server] GetLegendGraphics: Clear root legend 2017-09-19 07:34:34 +02:00
rldhont
262e81dfca [Server] WMS GetPrint refactoring - Update parameters manager 2017-09-19 07:34:34 +02:00
rldhont
10fbfb3737 [Server] WMS GetPrint refactoring - Update tests 2017-09-19 07:34:33 +02:00
rldhont
0e1d535c78 [Server] WMS GetPrint refactoring - Add Highlight layers 2017-09-19 07:34:33 +02:00
rldhont
7c1d397288 [Server] WMS GetPrint refactoring 2017-09-19 07:34:33 +02:00
rldhont
bb61db2e8d [Server] test: add response content in message when it's not an image 2017-09-19 07:34:33 +02:00
rldhont
899e872330 Cancel QgsVectorLayerFeatureCounter on QGsVectorLayer destroy 2017-09-19 07:34:32 +02:00
Nyall Dawson
b53e986781 Merge pull request #5170 from nyalldawson/drop_spatial_query
Drop spatial query plugin
2017-09-19 06:49:20 +10:00
Nyall Dawson
281236f4a1 Merge pull request #5211 from mhugent/atlas_compress_tiff
Use LZW compression for tifs exported from atlas / composer
2017-09-19 06:33:47 +10:00
Matthias Kuhn
b9a700075b Merge pull request #5215 from m-kuhn/metaCode
Doxymentation and de-noising
2017-09-18 20:43:14 +02:00
Matthias Kuhn
d8de869780
Remove useless debug messages 2017-09-18 18:32:08 +02:00
Matthias Kuhn
63def3d870
Doxygen improvements 2017-09-18 18:32:06 +02:00
Juergen E. Fischer
15bc5ed0c3 dxf export: fix layer assignment (fixes #17126; followup 92091c536b) 2017-09-18 17:20:49 +02:00
Mathieu Pellerin
c19fb1ca0c [expression] fix caching for aggregate() and @parent exp. (fixes #15797) 2017-09-18 21:06:08 +07:00
Juergen E. Fischer
d2d9de8e8f debian packaging: drop mimelnk files for KDE3 2017-09-18 15:27:07 +02:00
Alessandro Pasotti
2cf2ad25b4 QgsSettings -> Settings in options dialog tab 2017-09-18 14:46:37 +02:00
Marco Hugentobler
90378b79a8 Use LZW compression for tifs exported from atlas / composer 2017-09-18 13:57:53 +02:00
Even Rouault
7de9999248 Merge pull request #5206 from rouault/ogrprovider_use_gdaldriver_and_gdaldataset_api
[OGR provider] USE GDAL driver and dataset API, and pass FORCE_SRS_DETECTION=YES for GML
2017-09-18 11:22:58 +02:00
nirvn
938f261596 [processing] fix map layer combo box layer reference 2017-09-18 13:37:49 +07:00
Mathieu Pellerin
09195fb567 [processing] implement source flag for feature based algorithms (#5208) 2017-09-18 13:33:20 +07:00
Nyall Dawson
ffbb24481b Fix memory leak 2017-09-18 12:17:41 +10:00
Nyall Dawson
31f6a893ca Fix coverity unchecked return value warning 2017-09-18 12:14:38 +10:00
Nyall Dawson
57beefd474 Fix coverity uninitialized members warnings 2017-09-18 12:13:02 +10:00
Nyall Dawson
b44cf5d10f Fix memory leak 2017-09-18 12:10:46 +10:00
Mathieu Pellerin
01468d0879 Merge pull request #5204 from nirvn/saveselected_native 2017-09-16 12:17:11 +07:00
Nyall Dawson
f9bc9259c0 Merge pull request #5171 from nyalldawson/processing_selectioncheckboxes
[processing] Add useCheckBoxes option to EnumWidgetWrapper
2017-09-16 12:39:07 +10:00
Nyall Dawson
085687d8f0 Also update other spatial join alg 2017-09-16 10:21:54 +10:00
Nyall Dawson
1983d8f522 Improve wording of spatial location alg parameters 2017-09-16 09:59:13 +10:00
Nyall Dawson
95ab2321e5 Add context menu with Select All/Clear Selection to checkboxes panel 2017-09-16 09:59:13 +10:00
Nyall Dawson
5ee32392f9 Use checkboxes for Extract/Select by Location algs 2017-09-16 09:59:13 +10:00
Nyall Dawson
dd441f6154 [processing] A non-optional multiple enum parameter must have at
least one choice selected to be valid
2017-09-16 09:59:13 +10:00
Nyall Dawson
4bae647ad9 Use smaller margins for checkboxes panel 2017-09-16 09:59:13 +10:00
Nyall Dawson
ecf7dd5e4f Update class name 2017-09-16 09:59:13 +10:00
arnaud.morvan@camptocamp.com
b08119bc96 [processing] Add ui option useCheckBoxes in ByLocation algorithms 2017-09-16 09:58:35 +10:00
arnaud.morvan@camptocamp.com
53df3699fd [processing] add ui option useCheckBoxes in CheckValidity 2017-09-16 09:57:13 +10:00
arnaud.morvan@camptocamp.com
534fe21f51 [processing] Add useCheckBoxes option to SelectionWidgetWrapper
This allow to show checkboxes or radioboxes intead of line edit with button.
This is configurable for each algorithm thought ParameterSelection metadata parameter.
It is also possible to choose the number of columns.
This is not applied in case of the BatchDialog.
2017-09-16 09:57:13 +10:00
Alessandro Pasotti
7a1b9f970b DBManager -> Browser synchronization
Reload/refresh the browser tree and source select connection
items when connections, tables etc. change in the DBManager

Note that this is uni-directional: changes in the browser tree
are not (yet) propagated to the DBManager
2017-09-15 17:08:11 +02:00
Even Rouault
0ee9d66511 [OGR provider] Workaround bug in OGR GML driver 2017-09-15 16:49:17 +02:00
Matthias Kuhn
fc561d0375
[travis] Traceback for python tests on timeout 2017-09-15 16:31:01 +02:00
Matthias Kuhn
c2162b0c27
Fix save/reload of N:M relations 2017-09-15 15:16:56 +02:00
Vincent Mora
f63c302420 [FEATURE] Add undo and redo on transaction groups (#4765)
* [FEATURE] adds undo/redo for transaction groups

[needs-docs] the undo/redo now works with transcation groups. Just check
that there is no restriction in the transaction groups doc concerning
undo.

related to #14799

The undo/redo is implemented using SAVEPOINT.

The QgsTransaction interface has been enlarged to allow savepoints
creation and management. The savepoint is destroyed on
rollbackToSavepoint to have the same behavior has the sql ROLLBACK TO
SAVEPPOINT.

To avoid the creation of a savepoint for each feature modified in bulk
editing (e.g. paste, field calculator) the logic is a bit complicated: the
savepoint is created on QgsVectorLayer::editCommandStarted and the first
actual undo command (QgsVectorLayerUndoPassthroughCommand) is
responsible for the re-creation of the savepoint in case of undo-redo.
Since the behavior must be different in case edition doesn't take place
inside an edit command, a member function has been added to
QgsVectorLayer to expose the mEditCommandActive state.

Another (commented) tricky bit is the modification of the database
structure on add/delete attributes. On undo, the attribute is removed
before the rollback to savepoint, i.e. there is a useless ALTER TABLE
issued to restore the structure just before restoring it with the
ROLLBACK TO SAVEPOINT. This is necessary to make the provider
aware of the change of structure. It could be nicer/cleaner to have a way
to reload providers metadata.

The editPaste function has also been modified to use addFeatures instead of
addFeature (plural/singular), this is at the expense of an additional "cpy"
of the clipboard in memory, but it should improve perf with postgis provider.

* fixup operator aliases
2017-09-15 14:55:43 +02:00
Even Rouault
c26584cc13 [OGR provider] Use FORCE_SRS_DETECTION=YES open option for GML datasets 2017-09-15 14:50:55 +02:00
Even Rouault
78591b77bd [OGR provider] Use GDAL driver and dataset API
This is a preparation work to be able to provide open options to vector
drivers, which require using the GDALOpenEx() API, and thus requires to
use GDALDatasetH instead of OGRDataSourceH, GDALDriverH instead of OGRDriverH,
GDALOpenEx() instead of OGROpen(), GDALClose() instead of OGR_DS_Destroy(),
GDALDatasetXXXX instead of OGR_DS_XXXX, etc...
2017-09-15 14:50:55 +02:00
Matthias Kuhn
a0819053fd
Fix N:M Relations
Fix #17143 (https://issues.qgis.org/issues/17143)
2017-09-15 12:03:14 +02:00
Nyall Dawson
5bd164b644 Merge pull request #5200 from nyalldawson/drop_handler
[FEATURE][processing] Allow dropping model files onto QGIS window to execute them
2017-09-15 19:42:46 +10:00
Nyall Dawson
f282a753c6 [processing] Fix incorrect filters in vector layer parameter selections 2017-09-15 19:41:19 +10:00