9572 Commits

Author SHA1 Message Date
Alessandro Pasotti
766e0b290e
Merge pull request #37520 from elpaso/sslmode-pg-conn
Fix unreported sslmode storage from connections API
2020-07-02 08:30:11 +02:00
root676
89807a6535 fix REFERENCE_LAYER parameter name 2020-07-02 15:03:51 +10:00
root676
922586d103 fix input parameter name 2020-07-02 15:03:51 +10:00
root676
f72c367d35 rerun style script 2020-07-02 15:03:51 +10:00
root676
084190bbd1 update test and testdata 2020-07-02 15:03:51 +10:00
root676
76690bf8ee add cellstatistics alg tests 2020-07-02 15:03:51 +10:00
Nyall Dawson
9efdcc0ab9 Fix broken test 2020-07-02 12:07:51 +10:00
Nyall Dawson
5b8af77578 Rename enum values for clarity 2020-07-02 12:07:51 +10:00
Nyall Dawson
992d5f3919 Try to fix test failure on Travis 2020-07-02 12:07:51 +10:00
Nyall Dawson
4e815b92d3 Respect clip region when rendering diagrams 2020-07-02 12:07:51 +10:00
Nyall Dawson
e028067926 Ensure map clip region is correctly handled during labeling
We don't want labels to be positioned using unclipped feature
geometries, rather we want them to be positioned nicely on the
visible portions of features
2020-07-02 12:07:51 +10:00
Nyall Dawson
5cbdc4c896 Ensure feature clipping occurs for render only, and doesn't affect
feature geometry when used in rule based renderers and other
geometry dependent rendering options
2020-07-02 12:07:51 +10:00
Nyall Dawson
9ec6c21355 Respect painter clipping regions during vector tile rendering 2020-07-02 12:07:51 +10:00
Nyall Dawson
3f7320d96a Respect painter clip region when rendering mesh layers 2020-07-02 12:07:51 +10:00
Nyall Dawson
bbd5d80e71 Add method to set a list of clipping regions for QgsMapSettings 2020-07-02 12:07:51 +10:00
Nyall Dawson
9a97892107 Respect map clipping regions during raster layer rendering 2020-07-02 12:07:51 +10:00
Nyall Dawson
0e67b65f8d Apply painter clip regions when rendering vector layers 2020-07-02 12:07:51 +10:00
Nyall Dawson
30a3582a61 More tests 2020-07-02 12:07:51 +10:00
Nyall Dawson
291dbe8cba Apply clipping regions with Intersect mode during vector layer rendering 2020-07-02 12:07:51 +10:00
Nyall Dawson
e4150b2354 Respect clipping intersects regions when rendering vector layers 2020-07-02 12:07:51 +10:00
Nyall Dawson
b10b16941b New class QgsMapClippingUtils with utility functions for helping
with map clipping
2020-07-02 12:07:51 +10:00
Nyall Dawson
b5ae07869e Add api to determine if a clip region applies to a particular layer 2020-07-02 12:07:51 +10:00
Nyall Dawson
e38bb541a6 Add clipping regions to QgsMapSettings/QgsRenderContext API 2020-07-02 12:07:51 +10:00
Nyall Dawson
04f51371fc Create new class QgsMapClippingRegion, for encapsulation of an area
and method to use to clip a map render
2020-07-02 12:07:51 +10:00
Alessandro Pasotti
a621d55e40 Fix unreported sslmode storage from connections API
Related to #37479
2020-07-01 15:45:11 +02:00
Vincent Cloarec
6be16a5bfe
Memory dataset group and possibility to persist it (#37389)
[FEATURE] Introduces memory dataset groups for mesh layer. These dataset groups are temporary and are not kept when the project is closed.

Memory dataset groups can be created from the mesh calculator with a new option.

Allows the possibility to remove or save these memory dataset groups to a file with specified driver.
2020-07-01 10:18:27 +02:00
Alexander Bruy
0214b4f01a move gamma correction code inside brightness/contrast filter 2020-06-30 15:42:33 +03:00
Alexander Bruy
cfa5c5bf83 fix tests 2020-06-30 15:42:33 +03:00
Alexander Bruy
e87aa998a7 fix some deprecation warnings in the QgsRasterLayer Python test 2020-06-30 15:41:57 +03:00
Alexander Bruy
ce3cc7c14a rendering test for raster brightness/contrast filter 2020-06-30 15:41:57 +03:00
Alexander Bruy
2f91b9782d fix comment 2020-06-30 15:41:57 +03:00
Alexander Bruy
af2870bb51 rendering test for gamma correction filter 2020-06-30 15:41:57 +03:00
Nyall Dawson
da8fa08af5 [feature][processing] Add modeler algorithm to create directories
This algorithm allows models to create new file directories. Useful for
models which have to output results to certain dynamically created paths
(e.g. a folder containing the current date)
2020-06-29 11:51:08 +10:00
Nyall Dawson
2204399f1c Add test 2020-06-29 11:50:34 +10:00
Nyall Dawson
c92354640c [processing] Use an editable combobox with current project layout names
when editing a model which uses the print layout parameter type

Instead of a plain text edit with no hints as to the current project's layouts
2020-06-29 11:50:34 +10:00
Nyall Dawson
7b2dc6e561 Add threading test 2020-06-28 15:50:10 +10:00
Nyall Dawson
11f89daa10 Unit tests 2020-06-28 15:50:10 +10:00
Nyall Dawson
3815438013 Add test 2020-06-28 13:30:17 +10:00
Nyall Dawson
639bbee926 [afs] Read field aliases from layer definition 2020-06-28 12:08:46 +10:00
Alessandro Pasotti
e712a33516
Merge pull request #37429 from elpaso/server-api-sorting
[feature] Server WFS3 api sorting
2020-06-26 15:50:38 +02:00
Alessandro Pasotti
a4b8f72da2 Server WFS3 API: implement sorting
Also revert 2e57d114257ecbc09d44abeee5f7460c20b7b785
because it broke landing page HTML link to OPENAPI
overriding content negotiation.
2020-06-26 11:57:28 +02:00
rldhont
028f87f483
Merge pull request #37403 from rldhont/tests-reactivate-server-wms-getprint
Reactivate WMS GetPrint unit tests
2020-06-26 08:18:27 +02:00
nirvn
ef47305acc [vector layer] Fix feature request order by not working against non-provider fields 2020-06-26 07:02:00 +07:00
rldhont
b7f620f8be Isolate other test_wms_getprint functions 2020-06-25 18:46:14 +02:00
Denis Rouzaud
0ead32b571
remove pointcloud installation in postgis Docker image (#37293)
* remove pointcloud installation in postgis Docker image

since it has been integrated upstream
https://github.com/kartoza/docker-postgis/pull/163/

* use new image with point cloud installed
2020-06-25 14:34:24 +02:00
rldhont
c2231300a0 Isolate test_wms_getprint_atlas 2020-06-25 09:53:19 +02:00
rldhont
89ccc7742f Isolate WMS GetPrint Outputs tests 2020-06-25 09:51:49 +02:00
rldhont
ad59c46627 Fix PyQgsServerWMSGetPrint test 2020-06-25 09:50:49 +02:00
Matthias Kuhn
28e50c12db
Merge pull request #37164 from suricactus/virt_csv
FIX virtual layers with CSV layers opened with "delimitedtext" provider
2020-06-22 17:55:46 +02:00
Alessandro Pasotti
7fa6f38689 Memory provider: roll back on errors
Long story short: calling provider's addFeatures
is implemented for some providers in a way that
will roll back all changes on errors, leaving
the backend storage unchanged.

Adding a QgsFeatureSink flag to control this
behavior allows certain providers to support
partial feature addition.

The issue comes from QgsVectorDataProvider::commitChanges
that is documented to leave the provider unchanged (roll
back) on any error, giving the client code the possibility
to fix errors (in the editing buffer) and re-commit.

Without a full rollback implementation in the memory
provider and after the type check introduction in this
PR we ended up with situations like this:

vl = ... an empty memory layer
self.assertTrue(vl.addFeatures([valid, invalid]))
self.assertFalse(vl.commitChanges())
self.assertEqual(vl.featureCount(), 1)  <--- fails!
We actually had 3 features from vl.getFeatures():
[valid, invalid, valid] (the first from the provider
the second and third from the editing buffer).

On the other hand, QgsFeatureSink would probably assume
that addFeatures will allow partial additions.

BTW: This is for sure the longest commit message I've ever
     written.
2020-06-20 04:30:18 +10:00