4674 Commits

Author SHA1 Message Date
Martin Dobias
9296528822 [FEATURE] Rendering of scalar data on mesh layers
Rudimentary support for rendering of scalar data (e.g. water depth)
on mesh map layers.
2018-05-16 12:47:57 +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
6c02d0534a Super-basic title-case conversion method
No grammatical parsing, so only useful for very simple cases
2018-05-16 14:08:43 +10:00
Nyall Dawson
c9e5a36558 [processing] Avoid generic exceptions
Makes the full Python exception available when running algorithm,
which provides much more useful error messages
2018-05-16 04:35:17 +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
Alessandro Pasotti
b4f86147c7 Add referencedFunctions() to expressions 2018-05-15 09:20:10 +02:00
Alessandro Pasotti
541737681b Moved form feature to private and added setters/getters
plus other minor style changes as suggested by m-kuhn
in his PR review
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
Denis Rouzaud
261e5f74ec bring back PyQt.QtCore.NULL in qgis.core 2018-05-14 19:53:02 -04:00
Denis Rouzaud
6e33bdcdc4 [pyqgis] move qgis.core tricks to their own python file in additions folder
this makes the code much easier to read
2018-05-14 18:00:39 -04:00
Denis Rouzaud
fca72fa7d1 put back module sip files 2018-05-14 11:02:28 -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
7df2593caf move auto generated sip file in dedicated folder 2018-05-14 10:23:37 -04:00
Denis Rouzaud
45e5b3fb79 [pyqgis] comment some core additions 2018-05-14 10:21:07 -04:00
arnaud.morvan@camptocamp.com
81dabd185c [processing] Finish default values in model for destination parameters 2018-05-14 22:12:32 +10:00
Nyall Dawson
1a45a79719 [processing][model] Fix handling of mandatory checkbox in output definitions 2018-05-14 22:12:32 +10:00
arnaud.morvan@camptocamp.com
4ccd4446fe [processing] Add default values in model for destination parameters 2018-05-14 22:12:32 +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
Denis Rouzaud
395c13f1f1 fix typo 2018-05-11 10:55:34 -04:00
Denis Rouzaud
2bb6149e6c add test for (active) prefixes and fix bad prefix for plugins 2018-05-11 10:17:27 -04:00
Denis Rouzaud
0a6f88a4e5 remove map from QgsLocator and rename custom to active prefix
the active/custom prefix info is now accessible only from QgsLocatorFilter
2018-05-11 07:52:41 -04: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
Denis Rouzaud
6459d24e5a allow to reset prefixes in settings 2018-05-10 16:11:27 -04:00
Denis Rouzaud
0a0de2ec9f use multimap to allow using the same prefix for several filters 2018-05-10 15:51:07 -04:00
Denis Rouzaud
37e9f3abca allow customizing prefix of locator filters 2018-05-09 14:59:58 -04:00
Denis Rouzaud
5d7a6c18ec remove useless API break 2018-05-09 14:02:51 -04:00
Denis Rouzaud
8e20996ddc simplify netwotk content fetcher registry
kudos @wonder-sk
2018-05-09 11:04:29 -04:00
Denis Rouzaud
30b7fd183c use QgsNetworkContentFetcherRegistry 2018-05-09 11:01:59 -04:00
Denis Rouzaud
18699299ab [FEATURE ] allow to use URLs for attribute forms 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
Nyall Dawson
10475a6adf Really accept strings for arrow data defined properties 2018-05-08 20:38:08 +10:00
Nyall Dawson
99d0b3c337 More spell checks 2018-05-08 09:33:07 +10:00
Denis Rouzaud
b4d00d95a1 delete contents in destructor and add missing mutexes 2018-05-07 10:15:06 -04:00
Denis Rouzaud
5610ebe9a2 fix crash when redownloading or canceling 2018-05-07 08:21:00 -04:00
Denis Rouzaud
9d45077456 also add localFile returning a QFile 2018-05-07 08:20:59 -04:00
Denis Rouzaud
8308ce1207 avoid race condition 2018-05-07 08:20:59 -04:00
Denis Rouzaud
0d6dcb231e do not return a const file and add localFile helper 2018-05-07 08:20:59 -04:00
Denis Rouzaud
648562d2b7 do not expose task and make it thread safe 2018-05-07 08:20:59 -04:00
Denis Rouzaud
25108e5f5d QgsNetworkContentFetcherRegistry: a registry for temporary downloaded files 2018-05-07 08:20:59 -04:00
Nyall Dawson
787dd3413e [processing] More helpful errors when raster inputs are not valid 2018-05-06 19:19:45 +10:00
Peter Petrik
12183e98db Fix reading/writing of mesh layer to a qgis project (fixes #18801) (PR #6869)
* fix guard header

* [bugfix] Fix reading/writing of mesh layer to a qgis project #18801

* fix copy-paste error

* fix copy-paste error

* extract decode source to derived classes

* remove raster providers from vector decode source

* reset testdata to master
2018-05-03 12:10:54 +02:00
Nyall Dawson
1e7d479321 Fix outdated example code, convert to python
(because c++ devs are l33t and don't need examples...)
2018-05-03 16:33:26 +10:00
Nyall Dawson
8f9a378d76 Seriously, I thought I told ya ta shuddup already, right? 2018-05-02 08:47:16 +10:00
Martin Dobias
3b36cdd170
Merge pull request #6750 from lbartoletti/visibleSnapPerf
[BUGFIX][FEATURE][NEEDS-DOCS] Disable snapping on invisible features. Second version
2018-05-01 09:46:59 +02:00
Nyall Dawson
9ffae600f4 [FEATURE] Variable width buffers
Adds geometry methods to create variable width buffers, including
tapered buffers (with a specified start and end diameter) and
variable width buffers from line string m values.

Also adds processing algorithms which expose these methods
to processing.
2018-05-01 06:16:01 +10:00
Nyall Dawson
c1552e728a [processing] Add createByDefault argument to destination parameter
constructors

Allows this setting to be set for parameters created from
description text files
2018-04-28 05:51:07 +10:00