5392 Commits

Author SHA1 Message Date
Blottiere Paul
5014d95d6e
Merge pull request #6450 from tudorbarascu/filter_test
add GetMap FILTER test with multiple filters
2018-04-06 11:07:17 +01:00
Nyall Dawson
222977f23b Add unit tests for loading projects with custom layer order
Refs #18620
2018-04-06 15:55:40 +10:00
Nyall Dawson
ebab649438 Fix some locator filters show results when no string is entered
and filter prefix is not used
2018-04-06 12:44:56 +10:00
Nyall Dawson
2e7455c180 Add some geometry utils for interpolating points on lines 2018-04-06 12:43:52 +10:00
MieWinstrup
7d65ee9fa4 Added tests for moving group to the top 2018-04-05 11:49:11 +10:00
MieWinstrup
44df14d941 Add test for move to top action 2018-04-05 11:49:11 +10:00
Nyall Dawson
f9783ea560 [FEATURE] Add flip_coordinates expression function
Returns a copy of the geometry with the x and y coordinates
swapped. Useful for repairing geometries which have had their
latitude and longitude values reversed.
2018-04-05 06:35:13 +10:00
Nyall Dawson
1ea20a4b35 Add method to swap x/y coordinates in geometries
This can be used to repair geometries which have
accidentally had their latitude and longitude coordinates
reversed.
2018-04-05 06:35:13 +10:00
Matthias Kuhn
7e6f423e42
Merge pull request #6403 from signedav/new_multiselect
Horizontal space at value relation widget at multiple selection
2018-04-04 08:12:09 +02:00
David
c8504cd446 move includes into cpp and insert forward declaration 2018-04-03 17:13:43 +02:00
Nyall Dawson
c2af8ca4bc Fix some clazy warnings in tests 2018-04-03 16:35:32 +10:00
Nyall Dawson
09241ea195 Fix coverity warnings in unit tests 2018-04-03 16:35:32 +10:00
Nyall Dawson
1bf1058210 Followup fcacb0d, fix doxygen tests
Also:
- move doxygen comments to header files so that they get included
in Python docstrings
- remove duplicate doxygen implemented in both header and footer
- remove some redundant doxygen for overridden methods
- add some missing docs
2018-04-03 09:49:00 +10:00
Juergen E. Fischer
fcacb0db7c doxygen fixes 2018-04-02 22:48:40 +02:00
Nyall Dawson
e51863487a Add beginning of unit tests for QgsLayerTreeView 2018-04-02 14:02:15 +10:00
Nyall Dawson
e2f09fa662 Add a QgsTask for fetching network content
Provides a simple method for fetching remote HTTP
content in a QgsTask. Utilises QgsNetworkContentFetcher so
Url redirects and progress reports are automatically handled.
2018-04-02 08:42:21 +10:00
Nyall Dawson
bcf57c3356 Add method for QgsNetworkContentFetcher to fetch using request instead of url 2018-04-02 08:42:21 +10:00
Tudor Bărăscu
499e395ab5 add mask image 2018-03-30 21:24:03 +03:00
Tudor Bărăscu
ef83d18c9b add GetMap FILTER test with multiple filters 2018-03-30 21:23:19 +03:00
Blottiere Paul
4be8baa683
Merge pull request #6679 from pblottiere/bugfix_will_render_feature
[bugfix] Fixes identify action on deactivated rules for QgsRuleBasedRenderer
2018-03-30 09:08:11 +01:00
Nyall Dawson
d9e9f2abac Fix tests 2018-03-30 09:01:21 +11:00
Nyall Dawson
f02602b9bb [needs-docs] geometry smooth algorithm now also retains and smooths z/m values
...instead of just discarding them

Applies to processing algorithm and expression function (and
QgsGeometry::smooth method)
2018-03-30 08:59:00 +11:00
Nyall Dawson
b805b60389 Test masks 2018-03-29 19:50:44 +11:00
Nyall Dawson
3f733e7061 Use a checkerboard background in svg cache tests 2018-03-29 19:50:44 +11:00
Nyall Dawson
c71347c327 Indentation 2018-03-29 19:50:44 +11:00
Nyall Dawson
77941442c7 When a remote SVG is requested but fails, use the missing SVG icon
as an indicator for users that something went wrong

This was previously only used for replies with incorrect mime
types or authentication errors, but it meant that an incorrect
SVG url would silently result in no symbols rendered.

Also add unit tests for fetching remote svg images
2018-03-29 19:50:44 +11:00
Nyall Dawson
5d4e1bb31f Add intersection/tangent methods to QgsCircle 2018-03-29 17:40:40 +11:00
Nyall Dawson
44143c1bf9 Restore a disabled test for Qt5 which works OK now 2018-03-29 13:26:51 +11:00
Nyall Dawson
8b59bdcc94 [layouts] Fix missing layer scope for atlas enabled items
Fixes #18525
2018-03-29 07:21:03 +11:00
Nyall Dawson
054470f032 Never show int/long attributes in scientific notation
Fixes #18508, #18302
2018-03-29 07:20:31 +11:00
Blottiere Paul
624e446b67 Add unit test 2018-03-27 14:11:15 +01:00
Blottiere Paul
0b5c2aeecc Recursive fix 2018-03-27 11:00:20 +01:00
Blottiere Paul
dd6f98fe24 Add unit tests 2018-03-27 09:14:18 +01:00
Nyall Dawson
4bfc808ee6 Add some circle intersection and tangent utilities to QgsGeometryUtils 2018-03-27 17:44:25 +11:00
Nyall Dawson
4f16e01e97 Fix value map field formatter doesn't work
The configuration format was changed without updating the unit
tests to flag this failure.
2018-03-26 11:02:07 +11:00
Alessandro Pasotti
5eb9ab4813
Merge pull request #6644 from elpaso/gml-inverted-axis
Add axisOrder to QgsAbstractGeometry GML generators
2018-03-24 12:50:13 +01:00
Nyall Dawson
2eacc4c4b4 [FEATURE][layouts] Export project metadata in PDF/image exports
Includes project metadata in PDF exports, and supported image
based formats.

Image based metadata support depends on the format and the
Qt library's handling of each particular format (e.g. PNG
outputs are well supported).

Developed for Arpa Piemonte (Dipartimento Tematico Geologia e Dissesto)
within ERIKUS project
2018-03-22 16:13:30 +11:00
Nyall Dawson
1d4ff69553 Fix unit test 2018-03-22 16:13:30 +11:00
Nyall Dawson
a600b51bad [FEATURE][layouts] Export project metadata as SVG RDF metadata
Adds an option to include project metadata into SVG exports
generated from layouts, using the SVG RDF standard.

Developed for Arpa Piemonte (Dipartimento Tematico Geologia e Dissesto)
within ERIKUS project
2018-03-22 16:13:30 +11:00
Nyall Dawson
18408fa2c1 [FEATURE] Add expression context variables for project metadata
- @project_author
- @project_abstract
- @project_creation_date
- @project_identifier
- @project_keywords

Allows retrieval of project metadata through QGIS expressions

Developed for Arpa Piemonte (Dipartimento Tematico Geologia e Dissesto)
within ERIKUS project
2018-03-22 16:13:30 +11:00
Nyall Dawson
6ce184de79 Add tests for QgsMetadataWidget 2018-03-22 16:13:30 +11:00
Nyall Dawson
d293c5d0a0 Code shuffle to avoid duplicate code 2018-03-22 16:13:30 +11:00
Nyall Dawson
99faf06f60 Make project title getters/setters a shortcut to metadata title field
And silently upgrade old project titles to metadata titles
2018-03-22 16:13:30 +11:00
Nyall Dawson
bba3f6c6fe Add QgsProjectMetadata member to QgsProject 2018-03-22 16:13:30 +11:00
Nyall Dawson
09aca080ec Add new QgsProjectMetadata metadata class
For storing QgsProject metadata. Contains all metadata items
from QgsMetadataBase, plus adds author and creation datetime
metadata items.
2018-03-22 16:13:30 +11:00
Nyall Dawson
1e05de049a Update metadata validator for base class split 2018-03-22 16:13:30 +11:00
Nyall Dawson
a96d59a1a6 Create unit test for QgsMetadataBase 2018-03-22 16:13:30 +11:00
Nyall Dawson
a2ba566e2b Fix generation of world file when exporting canvas
Fixes #18491
2018-03-22 11:18:26 +11:00
Nyall Dawson
66c8a85b88 Fix incorrect display of coordinates in status bar 2018-03-21 22:20:43 +11:00
Nyall Dawson
9ab4d96362 [processing] Don't try to load algorithms for disabled providers
Fixes #18488
2018-03-21 08:45:38 +11:00