5816 Commits

Author SHA1 Message Date
Blottiere Paul
d5ffc5a2d9
Merge pull request #6994 from pblottiere/server_candidates
[server] Labeling settings
2018-05-17 15:27:22 +01:00
Blottiere Paul
2246ad6803 Add note to describe unit test 2018-05-17 13:17:28 +01:00
Blottiere Paul
96a0b4777c Add unit test 2018-05-17 13:17:28 +01:00
Blottiere Paul
ecbd2079fd Add unit test 2018-05-17 13:17:28 +01:00
Blottiere Paul
7d6518f725 Update unit tests 2018-05-17 10:34:37 +01:00
Matthias Kuhn
ce403b14d1
Add tests for sorting feature list by display expression 2018-05-17 11:13:06 +02:00
Denis Rouzaud
87a60d437f
Merge pull request #6733 from 3nids/setenumvalue
Save enum values as string in settings
2018-05-16 17:54:40 -08:00
Martin Dobias
9a79fc78aa
Merge pull request #6983 from PeterPetrik/qgsquick_2_scalebar_messagelog
[feature] Add ScaleBar and MessageLog components to QgsQuick library.
2018-05-16 20:37:40 -04:00
Peter Petrik
3fc99c04c1 code cleanup 2018-05-16 17:02:35 +02:00
Peter Petrik
aea3dccea7 [FEATURE] Rendering of vector data on mesh layers
Rudimentary support of rendering of vector data (e.g. velocity) on mesh map layers.
Rendering can be adjusted by QgsMeshRenderer*Settings. Only in Python
API, no GUI widgets for styling present.
2018-05-16 12:56:35 +02:00
Peter Petrik
3154102aa6 [FEATURE] Scalar/vector data in mesh data providers
Reading and processing scalar (e.g. water depth) and vector (e.g.
velocity) data from mesh data providers (e.g. MDAL)
2018-05-16 12:47:28 +02:00
Alessandro Pasotti
a44eeae441
Merge pull request #6982 from elpaso/currentformfeature-expressions-4
[feature][need-docs] Current feature/current value form context expressions
2018-05-16 09:48:06 +02:00
Nyall Dawson
3949802d58 Improved title case conversion, add tests 2018-05-16 14:08:43 +10:00
Alessandro Pasotti
673fac0c88 Added methods to search expression nodes and drop RegExp
- nodes() return the list of all nodes
- findNodes<T> returns a list of the nodes matching the class

Also drops the regexp for finding form attrs in the value-relation
expressions.

Other minor fixes as suggested in the PR review.
2018-05-15 18:32:40 +02:00
Blottiere Paul
1956937793 Update getcapabilities document to fit 1.3.0 version 2018-05-15 09:07:22 +01:00
Blottiere Paul
6ea2cd63ba Add unit tests 2018-05-15 09:07:21 +01:00
Alessandro Pasotti
b4f86147c7 Add referencedFunctions() to expressions 2018-05-15 09:20:10 +02:00
Alessandro Pasotti
edb12b4dbe Removed attribution 2018-05-15 08:34:39 +02:00
Alessandro Pasotti
ba339f2f1c Some more test cases for value relation widget 2018-05-15 08:34:08 +02:00
Alessandro Pasotti
63d2086de4 Rename functions from get_current_form_field_value to current_value
and current_geometry
2018-05-15 08:34:08 +02:00
Alessandro Pasotti
83328ae596 [feature] Form context expressions in value relation widget
The value relation widget filter expression can now use two
new functions/variables that have access to the current
values and geometry of the form being edited.

This allows for dynamic filtering (drill-down) as explained
in the crowdfunding page:
https://north-road.com/drill-down-cascading-forms/

The new functions/variables are:

Function:
get_current_form_field_value( 'FIELD_NAME' )

Variable:
@current_form_geometry
2018-05-15 08:34:08 +02:00
Nyall Dawson
26174ea9ad Copy cached min/max value to provider test suite 2018-05-15 09:23:48 +10:00
Denis Rouzaud
90bbe69aad
fix QVariant / QString compare 2018-05-14 14:08:57 -04:00
Denis Rouzaud
a66836225f add assert on metaEnum and convert existing settings to strings 2018-05-14 11:49:29 -04:00
Denis Rouzaud
847f0e1829 adapt sipify scripts and test to place auto generated sip files in dedicated folder 2018-05-14 10:44:11 -04:00
Denis Rouzaud
dce235d62e create dedicated function for flags
there is a small redundancy in code, but it makes it much nicer to read the calls:
flagValue( key, default) instead of enumValue( key, default, NoSection, false )
2018-05-14 08:47:27 -04:00
Denis Rouzaud
d156e1fb76 save enum settings as string for a better inspection 2018-05-14 08:47:27 -04:00
arnaud.morvan@camptocamp.com
81dabd185c [processing] Finish default values in model for destination parameters 2018-05-14 22:12:32 +10:00
Peter Petrik
0cd9e19abc [Feature] Add ScaleBar and MessageLog components to QgsQuick library. 2018-05-14 11:39:17 +02:00
Nyall Dawson
6b742687ab [memory] Fix memory provider does not return correct min/max
values after adding or editing features

The cache was not cleared correctly in this case

Fix sponsored by LINZ
2018-05-14 15:43:22 +10:00
Denis Rouzaud
272f9ef874
Merge pull request #6951 from 3nids/locator_prefix
allow customizing prefix of locator filters
2018-05-13 17:56:22 -08:00
Guilhem
42bedc4f72 Update qgsrasterfilewriter.cpp
Bad geo-referencing bug fix

Using VRT with large coordinate system (like RGF93/CCxx) and high
resolution raster, highest resolution tiles were shifted regardingi
original raster.
It seemed that when creating the VRT file, georeferencing is
truncated while converted to text, leading to loss of precision.
2018-05-12 06:20:29 +10:00
Denis Rouzaud
d36d4f8c65
fix warning for release build (#6976) 2018-05-11 07:41:10 -08:00
Denis Rouzaud
2bb6149e6c add test for (active) prefixes and fix bad prefix for plugins 2018-05-11 10:17:27 -04:00
Nyall Dawson
3d03cfba8c Update test masks 2018-05-11 17:48:45 +10:00
Nyall Dawson
06d7725cca Fix api break, unit test 2018-05-11 17:48:45 +10:00
Nyall Dawson
9ce19af552 Fix failing test 2018-05-11 17:48:45 +10:00
Nyall Dawson
9d2c4fca19 [FEATURE][layouts] Use text renderer for drawing scalebar text
Allows the full range of formatting options exposed through
text renderer - e.g. scalebar text with buffers, shadows,
background shapes, letter spacing, etc.

Say goodbye to unreadable scale bar text!
2018-05-11 17:48:45 +10:00
Nyall Dawson
a06000e0e7 Add method to QgsTextRenderer to retreive scaled QFontMetricsF
from a text format in a specified render context
2018-05-11 17:48:45 +10:00
Nyall Dawson
e53adc154b Add methods to convert QgsTextFormat to and from QFonts 2018-05-11 17:48:45 +10:00
Nyall Dawson
c738bcf7af [processing] Don't skip null parameter values when converting
parameters to pythong strings

We need to include these, in order to differentiate unspecified
parameters from parameters set to null values
2018-05-10 15:48:20 +10:00
Nyall Dawson
d05f95f7d5 [processing] Ensure unset parameters are translated to Python
None values when representing parameters as pythong strings
2018-05-10 15:48:20 +10:00
Denis Rouzaud
16497ee42c fix edit form test with local HTTP server 2018-05-09 11:04:29 -04:00
Denis Rouzaud
8e20996ddc simplify netwotk content fetcher registry
kudos @wonder-sk
2018-05-09 11:04:29 -04:00
Denis Rouzaud
d413c8829a add UI form for testing 2018-05-09 11:01:59 -04:00
Matthias Kuhn
29489e1056
Merge pull request #6865 from PeterPetrik/qgsquick_1_canvas_merge
[FEATURE] Introduction of QGIS Quick library
2018-05-09 07:40:01 +02:00
Martin Dobias
819ae6f31a Fix test that checked an exception from QgsSpatialIndex constructor 2018-05-08 20:28:27 -04:00
Martin Dobias
914cefff95 Fix crash when creating spatial index from empty layer
libspatialindex library throws an exception when trying to bulk load spatial index
and it is given an empty input data stream
2018-05-08 20:28:27 -04:00
Alessandro Pasotti
f2304c1b15
Merge pull request #6764 from tudorbarascu/featureinfo_values
server tests for GetFeatureinfo different widget values
2018-05-08 15:24:40 +02:00
Tudor Bărăscu
90355f0e2d address comments and add @unittest.expectedFailure to test 2018-05-08 13:44:16 +03:00