7207 Commits

Author SHA1 Message Date
Luigi Pirelli
3a1f6d7774
Update tests/src/python/test_provider_postgres.py
Co-Authored-By: elpaso <elpaso@itopen.it>
2019-04-27 17:20:07 +02:00
Alessandro Pasotti
da49f79045 Suggestions from JEF 2019-04-26 12:32:42 +02:00
Alessandro Pasotti
a3368d416c Layout and SQL 2019-04-26 10:26:04 +02:00
Alessandro Pasotti
163082a061 More tests for checkPrimaryKeyUnicity 2019-04-26 09:19:51 +02:00
Alessandro Pasotti
38c91e4e97 [postgres] Fix checkPrimaryKeyUnicity option
This provider option was linked to the project level option
"Trust layer metadata..." which was implemented
to speed up loading of large dataset by trusting extent
read from metadata to avoid costly operations to determine
the layer extent.

Check PK unicity on the other hand has only effect on views
and query layers and it is useful as an independent
option to prevent loading of layers that have no PK (or the
wrong one).

But the operation of determine unicity of a values in a column
can also be costly, so better to get control back to the user.

Legacy default is preserved (the project-level "Trust..." option).

Fixes #21839

Funded by RAAB.nl
2019-04-24 17:14:42 +02:00
Alessandro Pasotti
c0c19f0cc9 Fix wrong cotrol image for ITEMFONTCOLOR test 2019-04-18 08:32:33 +02:00
Alex
21280c39c0 More verbose sip failure 2019-04-18 06:23:09 +10:00
Alessandro Pasotti
dca0fb9026
Merge pull request #9805 from elpaso/bugfix-21871-21870-LAYERFONTCOLOR-ITEMFONTCOLOR
[server] Implement LAYERFONTCOLOR and ITEMFONTCOLOR
2019-04-17 16:04:02 +02:00
Alessandro Pasotti
1f862cadc6 Waste my time with Travis 2019-04-17 14:12:30 +02:00
Alessandro Pasotti
5cf2596545 Layout 2019-04-17 13:44:43 +02:00
Alessandro Pasotti
7032db27fa [server] Implement LAYERFONTCOLOR and ITEMFONTCOLOR
Fixes #21871
Fixes #21870

Funded by: Gis3w
2019-04-17 12:01:06 +02:00
David Marteau
7ce5fb2d02 Set config path before calling plugin method 2019-04-17 11:41:27 +02:00
Blottiere Paul
3c6299a199
Merge pull request #9775 from signedav/default_symbol_scale
[server] Default scale/mupmm on GetLegendGraphics
2019-04-17 10:47:27 +02:00
Matthias Kuhn
8416e7588c
Merge pull request #9781 from m-kuhn/processing_parameter_as_boolean
Add QgsProcessingAlgorithm::parameterAsBoolean
2019-04-17 09:20:07 +02:00
Alessandro Pasotti
e5491ee610 Get transformContext from layer instead of provider 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
be374104ea Unit tests for transform context project<->layer sync 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
3d687e5558 Add transform context to raster file writer task 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
ac04339434 Pass transform context to raster calculator 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
23d6ef6246 Remove test case (API is not public anymore) 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
654a78d6ff Raster transform context 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
7b6f9c0dbc Restore default ctor for options and layer 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
0d7cceab0c Fix test build 2019-04-17 10:06:41 +10:00
Nyall Dawson
8ae914387a Some build fixes 2019-04-17 10:06:41 +10:00
Nyall Dawson
b6bc1ee2d4 Tweak QgsProcessingUtils::combineLayerExtents for future proofing, remove deprecated usage 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
e930bee9e2 Add mandatory options to QgsVectorLayer ctor
... and deprecate the rest.

In QGIS 4 we'll have to get rid of the deprecated default ctor and
create a new one which takes no arguments.
2019-04-17 10:06:41 +10:00
Alessandro Pasotti
5f3dc50ccc Remove deprecated QgsCoordinateTransform ctor ...
... and add a getter for coordinateTransform to QgsMapLayer

The reason is that I think we should reduce the dataProvider API
usage and rely on the higher level QgsMapLayer API whenever it
is possible, QgsMapLayer checks for data provider validity
and returns a default constructed QgsCoordinateTransform instead
of crashing.
2019-04-17 10:06:41 +10:00
Matthias Kuhn
a6e4faef1b
Add test 2019-04-15 08:12:09 +02:00
Nyall Dawson
e2f7b911ee Spelling 2019-04-15 13:59:24 +10:00
Nyall Dawson
75993afcee Another test 2019-04-15 13:59:24 +10:00
Nyall Dawson
b42b295669 Port CRS map unit handling to proj 6 2019-04-15 13:59:24 +10:00
Nyall Dawson
d831f4e15f Use proj6 api for geographicCrsAuthId(), add tests 2019-04-15 13:59:24 +10:00
rldhont
aa297b5185
Merge pull request #9763 from rldhont/sld-point-symbolizer-on-polygon-centroid-not-all-parts
Apply SLD PointSymbolizer on single centroid for polygon
2019-04-12 13:57:57 +02:00
rldhont
052b222196 Test apply SLD PointSymbolizer on single centroid for polygon 2019-04-12 12:32:56 +02:00
Alessandro Pasotti
6092d56991
Merge pull request #9776 from pblottiere/server_params
[server] Fallback to unmanaged parameters
2019-04-12 09:31:35 +02:00
David Signer
fab5254595 using correct pictures and additional comments 2019-04-11 19:12:26 +02:00
David Signer
fa8e5fa348 add test files and correct image 2019-04-11 17:01:23 +02:00
David Signer
8e62a89c98 add correct layer to testproject 2019-04-11 16:11:00 +02:00
David Signer
1d6a7dd53c replace image with the expected one from test 2019-04-11 14:51:01 +02:00
David Signer
755c8ff36d fix tests 2019-04-11 14:08:18 +02:00
Blottiere Paul
a8a729b24d Add test for an unkown parameter 2019-04-11 13:23:39 +02:00
Blottiere Paul
518e208088 Add unit test 2019-04-11 13:14:23 +02:00
David Signer
96f054e1c1 tests for default mapunits per mm on EPSG:4326 2019-04-11 12:36:35 +02:00
David Signer
679b100f0c tests for default scale on EPSG:2056 2019-04-11 11:42:45 +02:00
Blottiere Paul
1333be1e1c Update unit tests 2019-04-11 11:36:42 +02:00
Blottiere Paul
3ec23ca2ec Add unit tests 2019-04-11 09:25:00 +02:00
rldhont
09b8a57706
Merge pull request #9769 from dmarteau/Fix-OperationNotSupported-http-code
Return 501 on 'OperationNotSupported' error
2019-04-11 09:22:45 +02:00
David Marteau
69728d4c1d Return 501 on 'OperationNotSupported' error 2019-04-11 08:42:04 +02:00
Matthias Kuhn
1450985547
Merge pull request #9737 from jef-n/postgres-unittest-2826ba34f
unit test for 2826ba34f
2019-04-10 19:13:23 +02:00
nirvn
9ce1093bce [FEATURE][ogr] Add string list field type support 2019-04-10 08:06:12 +07:00
Blottiere Paul
ebccfb6438 Update exception messages 2019-04-09 15:43:11 +02:00