960 Commits

Author SHA1 Message Date
Larry Shaffer
c66de14055 [auth] Add PKCS8 to PKCS1 key conversion for macOS (deps on libtasn1)
See description of QgsAuthCertUtils::pkcs8PrivateKey.

This fix may be needed on other platforms (untested at this point),
because Qt5 QSslkey class *still* does not directly support creation
using non-PKCS1 PEM- or DER-encoded data, though QCA, whose qca-ossl
plugin is linked to OpenSSL, does support PKCS1 and PKCS8.
2017-10-18 16:07:04 -06:00
Alessandro Pasotti
a7765ca966 Merge pull request #5380 from boundlessgeo/bd_2272_pki_parsed_ca
[auth] Allow to optionally add CAs from PKI bundle to the trusted CAs for the configured connection
2017-10-18 11:47:30 +02:00
Alessandro Pasotti
b1c45d57a6 [auth] Use QGIS test certificates 2017-10-17 18:11:58 +02:00
Blottiere Paul
a3971ee0cd Update unit tests 2017-10-17 10:17:49 +01:00
Alessandro Pasotti
25cd27a513 [auth] Add tests for CA utility methods 2017-10-13 12:59:30 +02:00
rldhont
24a68547e2 [Server][WFS] Update GML GetFeature document 2017-10-12 13:50:03 +02:00
rldhont
0d350b8865 [Server][WFS][Feature] Support resultType=hits from GetFeature 1.1.0 2017-10-12 13:49:51 +02:00
rldhont
1e009b47e6 [Server][Tests] Update PyQgsServerWFS test for 1.1.0 2017-10-12 13:49:42 +02:00
rldhont
b8ebbc1455 [Server][Tests] Add PyQgsServerWFS test 2017-10-12 13:49:09 +02:00
Blottiere Paul
a9a2c200e3 Search schemaExtension.xsd in share directory 2017-10-10 08:02:33 +01:00
Matthias Kuhn
83f9e81e95 [travis] Less noise for DB initialisation 2017-10-07 14:21:13 +02:00
rldhont
3e45f997a6 Merge pull request #4912 from dmarteau/svg-marker-size
[FEATURE][needs-docs] Svg marker size: change aspect ratio
2017-10-04 12:02:32 +02:00
Matthias Kuhn
c764d9c177 Merge pull request #5256 from qgis/docker2
[travis] Use docker to run test
2017-10-04 11:11:52 +02:00
Matthias Kuhn
159486515b
Add sanitized landsat2.nc
@rouault
> [landsat2.nc.zip](https://github.com/qgis/QGIS/files/1352514/landsat2.nc.zip)
> "gdal_translate -of NETCDF landsat.tif landsat2.nc" will not work as expected
> since the driver doesn't support creating subdatasets. I have used ncdump +
> manual changing of _FillValue to 0 + ncgen to recreate it. Hopefully it
> should work (untested) Result attached
2017-10-03 17:36:40 +02:00
Blottiere Paul
8a09a197cc Merge pull request #5150 from pblottiere/server_bugfix_ogc_getfeatureinfo_invalid_format
[server][bugfix] Fix OGC test getfeatureinfo:invalid-info_format
2017-10-03 06:24:46 +01:00
Matthias Kuhn
d947c8d72a
Update control image mask 2017-09-29 17:40:27 +02:00
Blottiere Paul
203e81fa6b Add tests 2017-09-29 09:30:20 +01:00
Blottiere Paul
04cdf496b7 Add some tests 2017-09-29 09:26:25 +01:00
Matthias Kuhn
82e6192eff
More control images 2017-09-28 13:22:39 +02:00
Matthias Kuhn
58b2fe6933
More control image updates 2017-09-28 13:22:38 +02:00
Matthias Kuhn
2c0e61be1f
Fix some test masks 2017-09-28 13:22:38 +02:00
Matthias Kuhn
ae9f263e96
Create test postgres database with UTF-8 2017-09-28 13:22:37 +02:00
Denis Rouzaud
ce109eac98
Revert "use second Dockerfile to push 2nd image"
This reverts commit 050682a37364e110f350b9c3293f662b0011036d.
2017-09-28 13:22:30 +02:00
Denis Rouzaud
4600ce5891
some fixes 2017-09-28 13:18:27 +02:00
Denis Rouzaud
531dadf682
fix psql 2017-09-28 13:18:26 +02:00
rldhont
48514d2e84 Add tests for fixedAspectRatio in SVG marker 2017-09-28 12:25:21 +02:00
Nyall Dawson
57108f9b61 Boost test coverage for geometry collections 2017-09-25 17:20:36 +10:00
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