7209 Commits

Author SHA1 Message Date
nirvn
756964620a [FEATURE][symbology] Add offset settings for point pattern fill symbol layer 2019-04-24 16:53:40 +07:00
nirvn
ca305bb5b0 Turn antialising render flag on when appropriate in QgsRenderContext::fromQPainter() 2019-04-24 10:06:33 +07:00
rldhont
8c21a9e848
Merge pull request #9827 from rldhont/fix-server-wmts-crs-hasaxisinverted
[Bugfix][Server] WMTS: CRS can have axis inverted
2019-04-19 08:15:45 +02:00
rldhont
012faa6af1 [Bugfix][Server] WMTS: CRS can have axis inverted
The top left element has to respect the axis, like in WMS 1.3.0.
2019-04-18 23:21:40 +02:00
Nyall Dawson
9da6a03b50 Add API for specifying fallback CRS and layer WKB type to use
for QgsVectorLayer, when constructing a layer with a URI which
may be invalid

These may be used for layers where the geometry type/CRS is
known in advance, and where the layer path may not be
initially resolvable. (E.g. layers with a URI pointing to a
non-existant file). It is only ever used if the layer cannot
be resolved, otherwise the actual layer geometry type will be
detected and used for the layer.
2019-04-19 06:07:13 +10:00
Nyall Dawson
0f1660990f Store vector layer wkb type in xml
We can use this when restoring the layer, if the uri turns out
to be invalid at that stage (e.g. a file has moved). By storing
and falling back to the last known wkb type, we avoid unnecessarily
discarding the existing layer renderer, and can still show the
expected layer type in the layer tree.
2019-04-18 18:41:09 +10:00
Nyall Dawson
786929b4ea Add unit test for f947ffb5b 2019-04-18 18:41:09 +10: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