933 Commits

Author SHA1 Message Date
Nyall Dawson
cbca7c97bc Boost test coverage of geometry classes 2017-09-22 15:41:41 +10:00
Sandro Mani
4ce2cf1744 [OGR] Add workaround for OGRSQL not recognizing the column name returned by OGR_L_GetFIDColumn 2017-09-21 10:50:39 +02:00
Nyall Dawson
20e1d72007 Merge pull request #5209 from nyalldawson/geometry_coverage
[WIP] Extend geometry classes unit test coverage
2017-09-19 22:15:14 +10:00
Nyall Dawson
5bb359db90 Boost test coverage of geometry classes 2017-09-19 17:22:33 +10:00
Nyall Dawson
a15340fc2c Extend geometry test coverage 2017-09-19 17:22:32 +10:00
rldhont
10fbfb3737 [Server] WMS GetPrint refactoring - Update tests 2017-09-19 07:34:33 +02:00
rldhont
7c1d397288 [Server] WMS GetPrint refactoring 2017-09-19 07:34:33 +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
Blottiere Paul
4a084bf961 Add tests 2017-09-06 14:46:37 +01:00
Blottiere Paul
eb9e2ace75 Add some tests 2017-09-06 07:28:39 +01:00
Nyall Dawson
184899ec30 Port remaining plotly based algs to new API 2017-08-30 07:28:25 +10:00
Sandro Santilli
5186c385c4 Expect centroid obtained by not forcing inclusion of control point 2017-08-25 23:06:52 +02:00
Sandro Santilli
8363d2f3d0 Update expected centroid, interpolated angle and located point for reference curves
These values change because they are computed on the *linearization*
of those curves, and refactoring linearization codes results in
slighly different values.

NOTE: adding or not adding the control point would also affect these
results
2017-08-25 23:06:52 +02:00
Matthias Kuhn
b8d2a17476 Port symbols test from ebf20a5 2017-08-21 23:27:34 +02:00
Nyall Dawson
7946908224 Merge pull request #4424 from nyalldawson/osx_tests
Add some mask images, adjust test results for OSX
2017-08-07 07:39:42 +10:00
Nyall Dawson
ecafb494a8 Add some mask images, adjust test results for OSX 2017-08-07 07:38:19 +10:00
Nyall Dawson
b808c5647a When upgrading 2.x projects to 3.0, default to enabling a valid
project projection instead of defaulting to no CRS

Fixes #16965
2017-08-07 05:41:58 +10:00
Andrea Aime
5cfed129b5 Ading all other labelling options supported by SLD. fixes #8925 2017-07-26 11:38:29 +02:00
Andrea Aime
59d8b18ed8 Porting Raymond Nijssen FOSS4G 2016 labeling work onto latest version of master, with basic support for testing. fixes #8925 2017-07-25 17:05:47 +02:00
Nyall Dawson
faa4a09ed0 Merge pull request #4877 from nyalldawson/layout_next
Layouts, chapter II
2017-07-24 08:42:51 +10:00
Nyall Dawson
54bf013004 Update tests 2017-07-18 13:42:04 +10:00
Nyall Dawson
00405fd6b5 Start porting item rotation 2017-07-18 12:42:06 +10:00
Nyall Dawson
498c4cda16 Add some rendering checks for layout items 2017-07-18 12:42:06 +10:00
rldhont
f926033699 [Server] WMS GetFeatureInfo refactoring 2017-07-17 12:39:34 +02:00
rldhont
7cbf9df21a [Server] Tests update mask image 2017-07-12 16:01:55 +02:00
rldhont
6b6a52be49 Merge pull request #4823 from rldhont/fix-qgis3-asgml2
Fix GML2 after GML3 improvements
2017-07-07 15:32:33 +02:00
Blottiere Paul
e6de737fad Add unit tests 2017-07-07 14:35:08 +02:00
rldhont
aa24896ce1 Fix GML2 after GML3 improvements 2017-07-07 13:01:31 +02:00
rldhont
59d1f6d1b2 [Server] Tests update mask image 2017-07-07 13:00:11 +02:00
Nyall Dawson
18b2b5240b Add some base classes for layouts 2017-06-30 17:01:52 +10:00
Hugo Mercier
f59d6d7962 Merge pull request #4776 from pblottiere/bugfix_attributetable
[bugfix] attribute table
2017-06-28 08:20:00 +02:00
Nyall Dawson
65a5669b25 Merge pull request #4727 from aaime/stroke_hairline
Fixes 16707, export of hairline results in a different visual thickness
2017-06-27 06:12:12 +10:00
Nyall Dawson
6006359710 Merge pull request #4733 from aaime/categorized_function_conflict
Fixes 16712, SLD export of categorized style fails if attribute name conflicts with a built-in function name
2017-06-26 23:20:13 +10:00
Blottiere Paul
b354986209 Add unit test 2017-06-25 14:39:54 +01:00
Marco Hugentobler
ef8e58bcc2 Unit test for feature info geometry filter 2017-06-24 12:30:04 +02:00
Martin Dobias
7cd517c6ba [FEATURE] Legend for markers with data-defined size
(Merge pull request #4752 from wonder-sk/legend-data-defined-size)
2017-06-22 15:29:10 +02:00
Martin Dobias
863b7d2b29 Fix the last test image 2017-06-22 14:38:41 +02:00
Martin Dobias
4976d59fc5 Fix few bugs + fix test images + allow data-defined size without transformer 2017-06-22 13:50:19 +02:00
Martin Dobias
78a990b5b6 Fixing tests 2017-06-22 10:06:02 +02:00
Martin Dobias
c9c42169ce Added unit tests 2017-06-19 16:37:00 +02:00
Andrea Aime
f22ee6bee5 Fixes 16712, SLD export of categorized style fails if attribute name conflicts with a built-in function name 2017-06-15 10:09:49 +02:00
Andrea Aime
b64f256e84 Fixes 16707, export of hairline results in a different visual thickness 2017-06-15 10:04:58 +02:00
Matthias Kuhn
37a306e3f2 Fix tests 2017-06-14 07:37:31 +02:00
rldhont
faa7c750bc Merge pull request #4699 from pblottiere/getlegendgraphic
[Server] WMS GetLegendGraphics refactoring
2017-06-12 09:40:57 +02:00
Blottiere Paul
7b844837bb [Server] Fonts used in GetLegendGraphics tests are bolded and increased 2017-06-09 12:55:27 +01:00
Blottiere Paul
c1657ac853 [Server] Add/update tests 2017-06-09 12:55:27 +01:00
Stéphane Brunner
9d9e94e6b9 Fix the mandatory OnlineResource 2017-06-09 13:32:47 +02:00
Nyall Dawson
5f1a78ddab Update inverted polygon test mask 2017-06-07 05:46:56 +10:00
rldhont
dbedd7e190 Merge pull request #4683 from rldhont/server-string-list-exceptions
[Server] bulk enhancements: string, list and exceptions
2017-06-06 10:09:52 +02:00
Sandro Santilli
7af47c2afa Add a raster table to the test postgis setup, use it from dbmanager test 2017-06-06 09:51:30 +02:00