57745 Commits

Author SHA1 Message Date
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
nirvn
531e1b0715 [categorized][graduated] Handle categorized<->graduated renderer conversion
(fixes #31633)
2019-09-24 20:08:47 +07: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
Alexander Bruy
4df50691bc
Merge pull request #31901 from alexbruy/fix-29336
[processing] correctly handle case when layer source is not a plain path (fix #29336)
2019-09-24 15:03:43 +03:00
Denis Rouzaud
3ee9cd7186 fix test 2019-09-24 13:09:22 +02:00
Denis Rouzaud
f4a05fd578 add code description 2019-09-24 09:28:03 +02:00
Denis Rouzaud
44727291d4 display value rather than NULL 2019-09-24 09:13:21 +02:00
Alessandro Pasotti
49ef3fa921
Merge pull request #31959 from elpaso/bugfix-gh31927-crash-adding-wmts
Fix browser crash when adding (broken) WMTS
2019-09-24 09:02:08 +02:00
Nyall Dawson
90bac82f12 [needs-docs][processing] Respect user set default vector output format
in vector split algorithm

The created outputs will now be created using the format specified from
the Processing setting default vector format setting.
2019-09-24 16:50:22 +10: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
08c55780b3 Followup cbc86ffc1ac
Fix exceptions, breakage of raster output format handling
2019-09-24 16:49:57 +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
Alexander Bruy
78a289348a use html.escape to escape strings 2019-09-24 09:27:29 +03:00
Denis Rouzaud
4c0c6c9d88 add test for QgsCheckBoxFieldFormatter 2019-09-24 08:22:27 +02:00
Denis Rouzaud
0caa93c401 also consider non boolean fields 2019-09-24 07:53:11 +02:00
Harrissou Sant-anna
c09fd237f6 [needs-docs][ui] Reorganize decoration dialog (#31948) 2019-09-24 11:28:57 +07: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
Roland Siegbert
2782f6054c Fix linebreak in README.md 2019-09-24 08:20:39 +10:00
Alessandro Pasotti
ea7b27ef3e
Merge pull request #31950 from elpaso/bugfix-server-wfs3-API-template
Server fix openapi HTML template and improve styling
2019-09-23 20:32:57 +02:00
Alessandro Pasotti
f9ae5cb30d Fix browser crash when adding (broken) WMTS
The crash was caused by duplicated paths in data items.

While in theory identifiers should be unique, a broken
getCapabilities might serve duplicated (or empty)
identifiers.
2019-09-23 20:31:37 +02:00
Matthias Kuhn
20e274888a Fix warning in external resource widget 2019-09-24 03:44:30 +10:00
Nyall Dawson
869ee9bc66 Silence some recent gcc warnings which we can't fix
Since the fixes for these are either outside our control (residing
in Qt system headers), or break compatiblity with older compiler
versions which we still support.
2019-09-24 03:44:01 +10:00
Nyall Dawson
425afaa270 A little dox improvement to test sip prepare-commit changes 2019-09-24 03:43:42 +10:00
Nyall Dawson
799033ffcc Avoid touching unchanged sip files in prepare commit script
Since any modification to these files triggers a new cmake run and
rebuilding of the sip bindings (slow!), we want to avoid touching
the sip files in any way if there's no actual changes to push.

Speeds up rebuilding in some circumstances by avoiding needless
rebuilding of sip bindings.
2019-09-24 03:43:42 +10:00
Nyall Dawson
9bdc1882e6 Avoid using expensive geos polygon overlap calculation for two horizontal labels
We can dramatically speed up label overlap detection on this common case, since
it reduces to overlap of two axis-aligned rectangles.

Speeds up rendering of labels on complex maps
2019-09-24 03:43:19 +10:00
Nyall Dawson
d6b4181349 [reports] Remove useless extra set of export actions
Fixes #26384
2019-09-24 03:42:56 +10:00
Nyall Dawson
9dafc285bc Add Print Report action to Report menu
Previously it was only available via the report toolbar...
2019-09-24 03:42:56 +10:00
Nyall Dawson
c93fd0a435 [reports] Fix crash when print button clicked before a report section
is opened
2019-09-24 03:42:56 +10:00
Nyall Dawson
7c49084812 [reports] Reduce minimum width of report organiser dock
Fixes #25916
2019-09-24 03:42:35 +10:00
Nyall Dawson
2f22aeaf27 [layouts][needs-docs] Add a page number selection combo box at the top
of the guide manager dock

This allows users to easily select the page they want to manage guides
for

Fixes #25700
2019-09-24 03:42:14 +10:00
Nyall Dawson
b4982127d8 [needs-docs] Add "Manager Guides for Page" action to layout designer
right click page menu

Makes it easier for users to explicitly choose which page they
want to manage the guides for

Refs #25700
2019-09-24 03:42:14 +10:00
Nyall Dawson
39cfd0f935 [needs-docs] Show color button style "Pick color" and "Chooe Color" actions
in symbol button menu

Synchronizes the behavior of the color and symbol buttons

Fixes #25696
2019-09-24 03:41:51 +10:00
Nyall Dawson
2ff91d24a9 Move methods to sample screen pixels to QgsGui 2019-09-24 03:41:51 +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
37b5af54d9 [layouts] Fix odd selection behavior when keyboard modifiers are pressed
when rectangular selection ends
2019-09-24 03:40:53 +10:00
Nyall Dawson
bd5743d267 Fix group members themselves are sometimes incorrectly selected when clicking in layouts 2019-09-24 03:40:53 +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
Nyall Dawson
fae87f4cbb [layouts] Only draw item boundary rectangles for direct descendants
of item groups

Refs #26674
2019-09-24 03:40:53 +10:00
Alexander Bruy
17632960de
Merge pull request #31960 from alexbruy/fix-26054
replace old extension when changing output format (fix #26054)
2019-09-23 20:28:57 +03:00
Denis Rouzaud
be4bd42a2c fix spelling 2019-09-23 17:32:46 +02:00
Denis Rouzaud
e31e9a32b8 fix false boolean not shown as so in attribute table 2019-09-23 17:08:08 +02:00
Denis Rouzaud
0e994fda02 [ASTYLE] increase max-instatement-indent to get nicer alignments on multilines 2019-09-23 17:02:02 +02:00
Alexander Bruy
3095aeeede replace old extension when changing output format (fix #26054) 2019-09-23 16:34:12 +03:00
Alexander Bruy
20583a8004 use GDAL connection string to support not only file-based layer but also
database and WFS
2019-09-23 11:53:19 +03:00
Alexander Bruy
dceabb0e29 use another approach for test 2019-09-23 11:53:19 +03:00
Alexander Bruy
3c13fbfeb5 [processing] correctly handle case when layer source is not a plain path
in the virtual vector algorithm (fix #29336)
2019-09-23 11:53:19 +03:00
Alessandro Pasotti
30e2fbfe88 Server fix openapi HTML template and improve styling
Mostly cosmetic fixes plus re-add links to openapi
json in case content-type is NOT OPENAPI3, because
it would break validation in that cae.
2019-09-23 09:50:21 +02:00
Alexander Bruy
cebdc8dded [dbmanager] don't ignore field modifiers (e.g. length or geometry
definition) when updating it (fix #27613)
2019-09-23 06:01:56 +10:00