7002 Commits

Author SHA1 Message Date
Alessandro Pasotti
6ddf78c15e Fix tests 2019-03-07 17:34:07 +01:00
Alessandro Pasotti
0325a37ff9 Fix makeFeatureCompatible wrong field count
Fixes #21497 - Copying features from source layer to target layer - field values are not copied
2019-03-07 14:45:04 +01:00
Nyall Dawson
12ba41750f Fix paletted raster renderer does not respect correct band when rendering
Fixes #21505
2019-03-07 18:50:06 +10:00
Nyall Dawson
63d648738d [processing][needs-docs] By default, hide algorithms with known issues from toolbox
And add a Processing setting to allow these to be shown. When shown, they
are highlighted in red with a tooltip explaining that the algorithm
has known issues
2019-03-06 06:33:06 +10:00
Matthias Kuhn
a33bf306f5
Merge pull request #9048 from troopa81/fix_20872_postgres_multidim_arrays
Manage postgres multidimensionnal array
2019-03-05 09:36:34 +01:00
Matthias Kuhn
2046450548
Merge pull request #9371 from m-kuhn/preserve-layer-visibility-in-offline-editing
[offline editing] Preserve layer visibility in offline editing
2019-03-05 09:35:00 +01:00
Mathieu Pellerin
33af405f78
[asf] Fix parsing of polygons 2019-03-05 11:53:47 +07:00
Matthias Kuhn
62dc9452a9
Add test for preserving layer visibility on offline editing 2019-03-04 23:38:17 +01:00
Nyall Dawson
daeb3d84f7 Fix newline characters break embedded expressions
Fixes #21471
2019-03-05 08:33:10 +10:00
Mathieu Pellerin
853d648ec0
[asf] Use a bulletproof where clause to retrieve object IDs 2019-03-04 07:48:55 +07:00
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
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
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