41590 Commits

Author SHA1 Message Date
Nyall Dawson
5bb359db90 Boost test coverage of geometry classes 2017-09-19 17:22:33 +10:00
Nyall Dawson
1956a38199 When constructing a QgsPoint with explicit WKB type specified,
ignore any explicit z/m value if the WKB type does not have
that dimensionality

Brings consistent behavior to all QgsPoint constructors
2017-09-19 17:22:33 +10:00
Nyall Dawson
d861e6475a Set correct WKB type when clearing a QgsCircularString 2017-09-19 17:22:33 +10:00
Nyall Dawson
afcb82efe7 Fix potential crash when calling QgsCircularString::pointN with bad
index
2017-09-19 17:22:33 +10:00
Nyall Dawson
e937782757 Fix crash when calling equality operator on QgsCircularString 2017-09-19 17:22:32 +10:00
Nyall Dawson
3d0d7aabec Remove unused QgsGeometryFactory::fromRect method 2017-09-19 17:22:32 +10:00
Nyall Dawson
9b6e79cd18 Expand QgsTriangle test coverage 2017-09-19 17:22:32 +10:00
Nyall Dawson
a15340fc2c Extend geometry test coverage 2017-09-19 17:22:32 +10:00
Nyall Dawson
d3db082cd2 Extend unit tests for QgsPolygonV2, QgsPoint 2017-09-19 17:22:32 +10:00
Nyall Dawson
6b07b9bbfb Extend geometry unit test coverage 2017-09-19 17:22:32 +10:00
Nyall Dawson
f6d7120511 Remove default statements for better compiler warnings 2017-09-19 17:22:32 +10:00
Nyall Dawson
328fc9cb8d Consistently use unsigned int for QgsRegularPolygon 2017-09-19 17:22:32 +10:00
Nyall Dawson
92d739619d Fix memory leak in QgsEllipse 2017-09-19 17:22:32 +10: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