7933 Commits

Author SHA1 Message Date
Nyall Dawson
c15c727189 Fix conditional style compression incorrect considers invalid
styles as valid objects

Results in invalid conditional style settings being returned
for a feature in some circumstances
2019-09-25 16:55:33 +10:00
Nyall Dawson
bc82cffd85 Use invalid colors, not transparent colors, to indict not set colors
in QgsConditionalStyle

Otherwise we can't differentiate a "not set" value from a "set but
transparent" value. And this use case is exactly why invalid QColor
states exist.
2019-09-25 16:55:33 +10:00
Nyall Dawson
b1ee295a95 Make QgsConditionalLayerStyles a QObject
and add a "changed" signal to it, so that we can tell when the
layer's conditional styles change
2019-09-25 16:55:33 +10:00
Nyall Dawson
d43834e999 Add equality operator for QgsConditionalStyle 2019-09-25 16:55:33 +10:00
Nyall Dawson
5fa81fb8f2 Add a __repr__ method for QgsConditionalStyle 2019-09-25 16:55:33 +10:00
Matthias Kuhn
96dd42b150
Merge pull request #30972 from qgis/3nids-patch-1
Fix virtual fields that use functions requiring all attributes
2019-09-25 08:25:01 +02:00
Nyall Dawson
b4550dc4c0 [layouts] Fix incorrect alignment of items when the align or distribute
tools are used with items with a non-top-left reference point

Fixes #31900
2019-09-25 04:31:36 +10:00
Nyall Dawson
6e2c7311bb Add Python __repr__ for QgsLayoutPoint, QgsLayoutSize, QgsLayoutMeasurement 2019-09-25 04:31:36 +10:00
Denis Rouzaud
f21e03c5ef
Merge pull request #31963 from 3nids/fix_bool_attrtable
fix false boolean not shown as so in attribute table
2019-09-24 14:31:45 +02:00
Denis Rouzaud
3ee9cd7186 fix test 2019-09-24 13:09:22 +02:00
Denis Rouzaud
44727291d4 display value rather than NULL 2019-09-24 09:13:21 +02:00
Nyall Dawson
b9e223d802 Add methods to QgsProcessingContext to return the preferred vector and raster formats
These methods return a file extension to use when creating vector/raster outputs (e.g. "tif"). Generally,
it is preferable to use the extension associated with a particular parameter, which can be retrieved through
QgsProcessingDestinationParameter::defaultFileExtension(). However, in some cases, a specific parameter
may not be available to call this method on (e.g. for an algorithm which has only an output folder parameter
and which creates multiple output layers in that folder). In this case, the format returned by this
function should be used when creating these outputs.

It is the algorithm's responsibility to check whether the returned format is acceptable for the algorithm,
and to provide an appropriate fallback when the returned format is not usable.
2019-09-24 16:50:22 +10:00
Nyall Dawson
cfcf580b61 [processing][needs-docs] Resurrect setting for default raster/vector
output format

This setting is still used and required in some circumstances, e.g.
it is used as the default selection in outputs file pickers when
the previously used format is not valid.
2019-09-24 16:50:22 +10:00
Nyall Dawson
d4ce50c2b1 [processing] Add API support for algorithm aliases
Allows us to freely move algorithms between providers without
breaking existing scripts
2019-09-24 16:48:39 +10:00
Denis Rouzaud
4c0c6c9d88 add test for QgsCheckBoxFieldFormatter 2019-09-24 08:22:27 +02:00
Nyall Dawson
a4da849e9d Fix inconsistent use of QgsLayoutAtlas::changed signal
Fixes GUI is not updated when layout atlas is set to use the
default filename expression

Fixes #20786
2019-09-24 10:49:42 +10:00
Nyall Dawson
d498eed0a5 [layouts] Fix out of sync layout bounds after page removal
Fixes #26665
2019-09-24 03:41:25 +10:00
Nyall Dawson
5154240fa9 [layouts] Fix interaction with group members in items panel
When an item belonging to a group is selected in the panel, we actually
need to set the selection as the top-most group containing that item.

Fixes #26674
2019-09-24 03:40:53 +10:00
Alessandro Pasotti
f568e6f06c Server OGC API OPENAPI validation
Fix some OPENAPI validation issues.

Swagger is happy now, except for the MAP=/...
in the query string: no query string parameters
are allowed in the endpoint, but we can
fix this in the web server configuration.
2019-09-21 15:43:12 +02:00
Alessandro Pasotti
9a13e9be89 Fix JSON utils QStringList to json conversion
unreported
2019-09-21 15:42:35 +02:00
Nyall Dawson
cc94aebc6f [layout] Fix invalid svg exports when including metadata
The generated svgs with cc:Work elements were failing xml validation,
causing illustrator to reject them. Add the required ns for cc:Work
and also adapt the svg metadata to be compatible both with the svg
spec AND the metadata format Inkscape uses.

Fixes #28130
2019-09-21 06:04:44 +10:00
Julien Cabieces
cb481d4cfd make the layer editable to the default value constraint could be updated 2019-09-20 09:49:12 +10:00
Julien Cabieces
a3caf512c1 Select feature to fix the multiedit mode test 2019-09-20 09:49:12 +10:00
Julien Cabieces
484ee53899 Add a utils method fieldIsEditable 2019-09-20 09:49:12 +10:00
Julien Cabieces
5848c27a7f Fix multi edit button not displayed for auxiliary storage attribute 2019-09-20 09:49:12 +10:00
Nyall Dawson
5db6165fb5 [layouts] Fix crash when opening layout with dynamic image in html label
Fixes #28996
2019-09-20 06:37:53 +10:00
Even Rouault
f43b9f73a3
Merge pull request #31765 from rouault/fix_31026
[WFS provider] Re-inject custom query parameters in DCP HTTP URLs (fixes #31026)
2019-09-19 13:35:11 +02:00
Denis Rouzaud
cc64787ee6
Merge pull request #31859 from 3nids/layer_tree_insertion_point_v2
[layer tree] dedicated method in QgisApp to determine insertion point
2019-09-19 11:17:58 +02:00
nirvn
015b7e91a1 Add test case covering drawing of effects in legend renderer 2019-09-19 14:26:15 +07:00
Nyall Dawson
2f220022b0 Update reference images 2019-09-19 16:56:50 +10:00
Alessandro Pasotti
f410ea9234
Merge pull request #31876 from elpaso/bugfix-gh30550-gpkg-project-removed-dirty
Set GPKG-stored project dirty when removed
2019-09-19 08:54:26 +02:00
Nyall Dawson
6b5d43ec26 More test mask updates 2019-09-19 14:38:42 +10:00
Nyall Dawson
6c4d0efa1f Fix test which relied on local layout default font setting 2019-09-19 14:38:42 +10:00
Nyall Dawson
c988bd8c23 More test mask updates 2019-09-19 14:38:42 +10:00
Nyall Dawson
570ce04b00 Add some test mask images 2019-09-19 14:38:42 +10:00
Even Rouault
1494246359
Merge pull request #31860 from rouault/fix_30518
[OGR provider] Invalid feature count on layer reload (fixes #30518)
2019-09-18 21:42:25 +02:00
Alessandro Pasotti
e4ea247c6a Set GPKG-stored project dirty when removed
if it's the current project

Fixes #30550
2019-09-18 21:12:00 +02:00
rldhont
7a77d90c52
Merge pull request #31351 from rldhont/server-wms-dimensions
Support WMS dimensions in QGIS Server
2019-09-18 18:26:31 +02:00
Alessandro Pasotti
6146456075
Merge pull request #31865 from elpaso/bugfix-gh31846-server-contextual-legend-no-width-no-height
Server fix getLegendGraphic default WIDTH/HEIGHT when BBOX
2019-09-18 12:09:11 +02:00
Alessandro Pasotti
10cf18a995 Add mask to getLegendGraphic test and check SRC(HEIGHT/WIDTH) 2019-09-18 11:32:05 +02:00
Alessandro Pasotti
3be3984e8e
Merge pull request #31841 from elpaso/bugfix-gh31799-tid-in-views
PG views: be tolerant for unsupported field type ...
2019-09-18 11:21:48 +02:00
Even Rouault
cd3940df7c
Merge pull request #31813 from rouault/fix_29844
[WFS provider] Fix recovery of GeoServer server error when lack of primary key (fixes #29844)
2019-09-18 11:00:58 +02:00
Nyall Dawson
2c69b24ffe Avoid use of deprecated method in test 2019-09-18 10:35:23 +10:00
Nyall Dawson
fcd21e4850 [reports] Fix predefined scale mode is incompatible with report outputs
Fixes #29196
2019-09-18 10:35:23 +10:00
Nyall Dawson
3de0593957 Ensure atlas expression evaluation has access to coverage layer scope
Fixes #31807
2019-09-18 07:55:46 +10:00
Even Rouault
2a2cb87f8e
[OGR provider] Invalid feature count on layer reload (fixes #30518) 2019-09-17 22:33:50 +02:00
Denis Rouzaud
838dbef3c0 [layer tree] dedicated method in QgisApp to determine insertion point
and create bindings to get the current insertion point in QgisInterface
2019-09-17 20:55:40 +02:00
Nyall Dawson
421e68cf5a [layouts] Resizing pages to content should not create empty page size
if no items are present

Fixes #29034
2019-09-18 04:29:35 +10:00
Nyall Dawson
f5afebe5dd [layouts] Fix map rotation does not immediately restore in reports
Fixes #31217
2019-09-18 04:29:14 +10:00
Nyall Dawson
979237515c [properties] Do not return nan values when an assistant is used
with min val == max val

Fixes #31242
2019-09-18 04:28:52 +10:00