7344 Commits

Author SHA1 Message Date
Juergen E. Fischer
9b672073fe fix windows build 2019-03-03 22:22:20 +01:00
Matthias Kuhn
c71a04070f
Fix warning 2019-03-02 23:00:02 +01:00
Nyall Dawson
558d5365b5 Add new plugin metadata string to indicate whether a plugin
implements Processing providers

Plugins which implement providers should include the

    hasProcessingProvider=yes

line within their metadata.txt file. This allows for rapid
identification of all plugins which implement Processing
functionality.
2019-03-02 12:06:59 +10:00
Nyall Dawson
2f82bab1d9 Add Python utils method to start a Processing specific plugin
This command adds a plugin to active plugins and calls initProcessing(),
initializing only Processing related components of that plugin.

The new initProcessing() hook should be implemented by plugins
which provide Processing providers or algorithm, and should only
implement code which is required to load the provider and algorithms.
Strictly no GUI related code should be used here, that MUST
be moved out of initializers and deferred to the plugin's
initGui implementation.
2019-03-02 12:06:59 +10:00
Alessandro Pasotti
83f286a9e5
Merge pull request #9305 from elpaso/bugfix-21405-raster-calc-wrong-results
[opencl] Fix raster calculator operator precedence
2019-03-01 14:30:28 +01:00
Nyall Dawson
75697d77ed Cache validity check results
For non-point geometry subclasses (points are always valid!) we
now cache the results of a geometry validity check. Subsequent
checks utilise the cached result wherever possible.

Because QgsGeometry/QgsFeature objects are implicitly shared, this
means that we avoid a *lot* of duplicate validity checks as
features and geometries are thrown around during processing model
execution.
2019-03-01 08:06:31 +10:00
Alessandro Pasotti
cd5fedfd56 Do not store default values in user's QgsSettings
The new behavior is to store a value in user's QSettings
(that overrides the global settings) only if the the value
has changed from the default reported by QgsSettings.

If a value was changed and it is changed back to the default
the override must be removed from the user settings.

The rationale is that global settings should be the ultimate
source of default values, unless the user override the
default with a different value.

Fixes #21049
2019-02-28 09:36:00 +01:00
Alessandro Pasotti
88a96122b8 [opencl] Fix raster calculator operator precedence
With test

Possibly fixes #21405 (not yet sure if the user was using OpenCL)
2019-02-27 22:21:06 +01:00
Peter Petrik
209e9144f8
[3d] export all frames from QGIS 3d animations as images (#9244)
[feature] [3d] export all frames from QGIS 3d animations as images #21300
2019-02-27 08:58:58 +01:00
Nyall Dawson
182e6cf97b Update sipify expected results 2019-02-27 09:41:11 +10:00
Nyall Dawson
107b48a430 Add NULLPTR macro for use in doxygen comments
For the c++ api dox this expands to "\c nullptr" (the
\c directive indicates a code literal value), and for sipify/Python
it expands to ``None`` (`` is sphinx annotation for literal values)

Makes for nicer dox for both c++ and Python!
2019-02-27 09:41:11 +10:00
Nyall Dawson
4e04d02293 By default, validity check should treat ring self intersections as invalid
We use the OGC definition of validity to ensure consistent results
with PostGIS, GDAL, etc

Fixes #16418, fixes #21336
2019-02-27 06:05:26 +10:00
Nyall Dawson
35f613d45e Avoid firing up a thread for blocking GEOS based validity checks
It's an unnecessary expense. Also fix duplicate code.
2019-02-27 06:05:26 +10:00
Nyall Dawson
6dbe4ee5fb Add QgsGeometry::isGeosValid option to ignore self-touching rings 2019-02-27 06:05:26 +10:00
Blottiere Paul
6e39543983
Merge pull request #9242 from pblottiere/getprint_svg
Some cleaning [server]
2019-02-26 10:55:40 +01:00
Blottiere Paul
0e8757b408
Merge pull request #9236 from signedav/scale_getlegendgraphic
On GetLegendGraphics take the scale context from map parameters
2019-02-26 10:19:56 +01:00
Blottiere Paul
14f201caff Add unit test 2019-02-26 08:24:37 +00:00
Blottiere Paul
0f3b365438 Update test for not mandatory format parameter 2019-02-26 08:24:37 +00:00
Alessandro Pasotti
a3e37420c8
Merge pull request #9273 from elpaso/bugfix-fix-path-resolver-urls
fix path resolver urls
2019-02-25 22:03:10 +01:00
Víctor Olaya
29b952d90c [processing] consider destination params as outputs when defining scripts 2019-02-26 06:56:28 +10:00
Nyall Dawson
cab2dcf62c Fix regex used to replace [% %] expressions in text
Was incorrectly truncating at first ']' character

Fixes #21366
2019-02-26 03:24:09 +10:00
David Signer
61ceeb7968 expected images from travis 2019-02-25 17:07:44 +01:00
Alessandro Pasotti
98bd6d651b Fix path resolver with extra URL-like stuff
Like for CSVs: see #21150
2019-02-25 15:23:18 +01:00
Alessandro Pasotti
a615a3b3f5
Merge pull request #9260 from elpaso/form-background-color
Add bg color option to form containers
2019-02-25 15:13:36 +01:00
David Signer
8d1ceda878 correct images from qgis travis build 2019-02-25 15:10:14 +01:00
sklencar
77f500b12e [QgsQuick] - externalResource widget handler (#9232)
* [QgsQuick] - extended externalResource widget

Added removeFile function and modified fileName function - former has been missing and photoPanel is using it. The latter needed modification due to a new option to choose image from a gallery.
Added externalResource handler for externalResource widget which enables following features:
* option to choose an image from a gallery - selected image is copied to projects folder, if it doesnt exists there. Added "ic_gallery" icon.
* ability to remove value for externalResource field. Optionally removes referenced image as well ("Ok" option in dialog)
* ability to interact with image preview onClick - the main idea is to have ability to enlarge preview image. Currently its possible only in edit state of the form since the whole field is disabled otherwise.

Fixed resizing of icon/previewImage and component itself as well.

* [QgsQuick] - extended externalResource widget
Commit contains following fixes/changes/additions after review:
* Added QgsQuickUtils::getRelativePath which replaced QgsQuickUtils::getFileName + related changes in photoPanel
* Added test for new QgsQuickUtils functionality
* fixed weird or redundant size definitions in externalResource widget
* Some changes in docs.

* [QgsQuick] Changed "default" case result for QgsQuickUtils::getRelativePath

* [QgsQuick] Fixed test after changed functionality in QgsQuickUtils
2019-02-25 14:49:00 +01:00
David Signer
de96fc75fa tests for scaled symbol sizes 2019-02-25 09:48:52 +01:00
Blottiere Paul
9f576b678e
Merge pull request #9204 from troopa81/wms_filters
Add possbility to define one filter for several layers
2019-02-25 09:05:08 +01:00
Alessandro Pasotti
94b5fed57a Add test case for backgroundColor serialization 2019-02-25 09:03:33 +01:00
uclaros
03db73d9f1 Quick fix for a bug in QgsGeos::reshapeLine that causes QGIS to crash because of an unhandled geos exception. 2019-02-23 20:50:52 +02:00
Víctor Olaya
13bff9620c [processing] do not allow using unsupported file formats
Show warning message if user selects incompatible output file format

fixes #21089
2019-02-23 05:24:56 +10:00
Nyall Dawson
e31fb920e7 [processing] Add API to allow custom expression variables to be set
for a model
2019-02-23 05:23:23 +10:00
lbartoletti
fbc22e2005 [feature] Add an option to cartesian measurement
Adds an option force Cartesian measurements to the measure distance/area dialogue

Fixes #19902
2019-02-23 05:22:54 +10:00
Nyall Dawson
db1a1929a4 [FEATURE][expressions] Simplified variant of "attribute" function
This adds a second variant for the existing "attribute" function.
The current function requires both a target feature and attribute
name to be specified, while the NEW variant just uses the current
feature.

E.g.

NEW:

attribute( 'name' ) -> returns the value stored in 'name' attribute
for the current feature

EXISTING:

attribute( @atlas_feature, 'name' ) -> returns value stored in 'name'
attribute for the current atlas feature

It's just a faster shorthand version!
2019-02-23 05:20:52 +10:00
Mathieu Pellerin
3433c9cc88 [FEATURE][3d] Add camera lens field of view settings 2019-02-23 05:20:38 +10:00
Julien Cabieces
9aa00230a7 Correct code formatting 2019-02-22 11:02:03 +01:00
Julien Cabieces
b01239449f Update mask 2019-02-22 10:53:23 +01:00
Juergen E. Fischer
130f3edde9 fix build warning with msvc 2019-02-22 10:13:11 +01:00
Mathieu Pellerin
78e8c34200
[legend] Fix alignment and chopped off text of collapsed data-defined size legend symbol (#9228) 2019-02-22 15:18:06 +07:00
Julien Cabieces
0753b144b9 fixes #20872 : Manage postgres multidimensionnal array 2019-02-22 09:12:08 +01:00
Even Rouault
df295a801a
Merge pull request #9234 from rouault/fix_21335
QgsGmlStreamingParser: fix parsing of GML geometries with srsDimension='3' set on posList element (fixes #21335)
2019-02-21 19:15:03 +01:00
Even Rouault
466dc359d7
QgsGmlStreamingParser: fix parsing of GML geometries with srsDimension='3' set on posList element (fixes #21335) 2019-02-21 17:39:27 +01:00
Julien Cabieces
a2bc1fff7d Add getmap with error on filter 2019-02-21 16:44:36 +01:00
Alessandro Pasotti
17280c3e4d
Merge pull request #9203 from elpaso/bugfix-21305-paste-slow-no-provider
Cache unique values when creating features
2019-02-21 08:31:41 +01:00
Julien Cabieces
1c34329234 Allow expression widget to be empty so expression could be removed (#9032)
* fixes #20516 : Allow Constraint widget in attribute type form to be empty so expression could be removed

per widget modification

* correct tests

* Add the clear button on field expression widget when widget is allowed to be empty

* Change API since version to 3.6
2019-02-20 14:41:38 -05:00
Nyall Dawson
2609d9f057 Update test 2019-02-21 02:49:49 +10:00
Nyall Dawson
33aa63b855 Fix feature request containing a filter expression which needs
both geometry and the magic all attributes flag
2019-02-21 02:49:49 +10:00
Alessandro Pasotti
2604fc70c5 Test for regression #21304 "default value" is not applied when pasting features 2019-02-20 10:17:09 +01:00
Nyall Dawson
f3cb3488ec Fix loss of precision when converting fields to uri in memory provider
Fixes #21316
2019-02-20 17:42:07 +10:00
Alessandro Pasotti
ff9a65c1b4
Merge pull request #9193 from elpaso/bugfix-21270-processing-algrunner-crash
Processing: fix crash in alg runner task with bad scripts
2019-02-20 07:43:50 +01:00