53885 Commits

Author SHA1 Message Date
Alessandro Pasotti
6bdabcfe88 Doc for the new backgroundColor argument 2019-02-24 13:29:25 +01:00
Alessandro Pasotti
8d3f73a62a [feature][needs-docs] Add bg color option to form containers
Because gray is boring.
2019-02-24 13:18:29 +01:00
Alessandro Pasotti
c672893e9c Typo 2019-02-24 13:14:32 +01:00
Alessandro Pasotti
a9652316af Tiny cosmetic fix: error by 1 on iteration counter text 2019-02-23 15:30:57 +01:00
Juergen E. Fischer
ddb589a3c8 fix ui warnings 2019-02-22 23:50:56 +01:00
Juergen E. Fischer
6bf2d9d450 dwg import: implement suggestion from #21330 2019-02-22 23:50:56 +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
cdc622ef4c Freackin Amurican sppelling 2019-02-23 05:23:23 +10:00
Nyall Dawson
c1aac3228c [FEATURE][processing] Allow expression variables to be set for a model
This adds a new "Model Variables" dock panel to the model editor, allowing
users to create and set custom expression variables for use in the model.
These variables are available anywhere expressions are (correctly) evaluated
within the model, so can be used as input parameter values for child
algorithms, within data-defined dynamic parameters, etc.

The use case here is for models which use a constant value throughout
multiple steps within the model (e.g. @target_resolution: a target
raster resolution, @max_simplification: a simplification value for
input features coming from different sources, etc), allowing users
one single place to define and edit these constant values (instead
of hunting down and setting them in multiple places throughout the model).

These variables are stored within the model itself, and are not exposed
outside of the model designer dialog.
2019-02-23 05:23:23 +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
Rashad Kanavath
9983961ee3 update Otb Algorithm test to use Map Layer instance 2019-02-23 05:20:17 +10:00
Rashad Kanavath
08b4c1ae9c check for layer providers and authid
OTB only supports gdal and ogr providers for now. Maybe memory
provider can be easily supported using some conversion on the fly.
For the moment, we can go with this method. IO Formats in OTB not
using GDAL/OGR (LUM, ONERA) are not supported by QGis. Those can be
treated as simple files.

nyalldawson,  pointed that AUTHORITY id can have types not starting
with 'EPSG:'. Current otb takes just EPSG number and run with it. The
algorithm doesn't know what to with a number which is not EPSG because
it uses Gdal's 'ImportFromEpsg' method AFAIR.

QgsProecessing Exception is raised in both the above invalid cases.
2019-02-23 05:20:17 +10:00
Rashad Kanavath
70be3aae9c add unit-test for passing values other than type str 2019-02-23 05:20:17 +10:00
Rashad Kanavath
9a6a70a0c0 Reset outputpixeltype parameter options 2019-02-23 05:20:17 +10:00
Rashad Kanavath
8afb80e164 [test] new test for OtbChoiceWidget
This can easily go into GuiTests.py but we tend to keep it out due to
usage of create_from_metadata(). All widget in GuiTests uses
create_from_class() which will not work for this special widget
2019-02-23 05:20:17 +10:00
Rashad Kanavath
e26e0981d3 [test] a new test for otb algorithm that used crs 2019-02-23 05:20:17 +10:00
Rashad Kanavath
e7ce84cb22 Use parameterAs methods in OtbAlgorithm
This will accept stuff other than string type if needed by a user.
2019-02-23 05:20:17 +10:00
Rashad Kanavath
5666db2871 pass file names with quotes to otb 2019-02-23 05:20:17 +10:00
Rashad Kanavath
be52385ef2 using parameterAs from qgis api 2019-02-23 05:20:17 +10:00
Rashad Kanavath
0c1de0407a [review] fix issues from code review 2019-02-23 05:20:17 +10:00
Rashad Kanavath
8e78d2015d [test] Avoid "NOTFOUND" in LD_LIBRARY_PATH environment variable 2019-02-23 05:20:17 +10:00
Rashad Kanavath
471865afd1 [CI] fix travis test for OtbAlgorithms 2019-02-23 05:20:17 +10:00
Rashad Kanavath
e286d5b99c [CI] install OTB package for OtbAlgorithmsTest
Package will be taken from official OTB repository and will be
maintained by OTB team.
2019-02-23 05:20:17 +10:00
Rashad Kanavath
30bcfebb47 [TEST] add test for OTB processing provider
This includes yaml test like SAGA, GRASS and also test for loading
OTB Algorithms
2019-02-23 05:20:17 +10:00
Rashad Kanavath
3b87f7b17f [FEATURE] [needs-docs] integrate OTB provider to processing plugin 2019-02-23 05:20:17 +10:00
Juergen E. Fischer
1a8cbd1906 Bump version to 3.7 2019-02-22 13:48:26 +01:00
Juergen E. Fischer
aee8ed40b9 changelog and news update for 3.6 2019-02-22 13:47:20 +01:00
Juergen E. Fischer
b4fed682b3 translation update for 3.6 from transifex 2019-02-22 13:47:13 +01:00
Martin Dobias
057b225dae [quick] do not refresh map on click
Whenever user would click on the map (e.g. to identify a feature),
the freeze and subsequent unfreeze would force map refresh even though
it is not needed. A new internal flag is introduced to avoid
the unnecessary map refresh in cases when map has not been moved nor zoomed.
2019-02-22 11:28:39 +01:00
Martin Dobias
0a0d2e995f [quick] do not start moving canvas if the drag distance is too small
Often when users want to click (tap) the map, they still move the cursor
position a bit. This would trigger unwanted map pan and map refresh afterwards.
A configurable minimum drag distance is introduced in order to prevent that.
2019-02-22 11:28:39 +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
Denis Rouzaud
fcdb4c025c
[vertex tool] small code cleanup (#9237)
* [vertex tool] rename mSelectedFeature to mLockedFeature

* also rename file and class

* remove uselesss method, move code to constructor

and initialize in header

* followup rename
2019-02-21 23:23:40 -05:00
Juergen E. Fischer
c389fad1ad dxf export: don't label invisible features (fixes #19604) 2019-02-22 01:05:04 +01:00
Juergen E. Fischer
56ec47328b dxf export: fix output of closed 3d polylines (fixes #20242) 2019-02-22 00:52:36 +01:00
Juergen E. Fischer
4b55dbef0b dxf export: fix svg scaling 2019-02-22 00:35:01 +01:00
Nyall Dawson
e9c7c86aba Fix misleading template 2019-02-22 06:55:35 +10: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
Matthias Kuhn
3c2d44bd6c
Merge pull request #9233 from Alexis-B/typo
Typo
2019-02-21 17:25:16 +01:00
Matthias Kuhn
5b230ab820
Fix sip file too 2019-02-21 16:00:03 +01:00
oslandia
4a284b4986 Fixing typo 2019-02-21 14:55:11 +01:00
Luigi Pirelli
5a96fab775
Merge pull request #8968 from volaya/fix_saga_non_ascii
fixed handling of input filenames with non-ascii characters [processing]
2019-02-21 12:35:49 +01:00
volaya
52546db839 [processing] fixed saga test 2019-02-21 10:11:57 +01:00
volaya
40134d6473 [processing] fixed SAGA command writing and test 2019-02-21 10:05:46 +01:00
Matthias Kuhn
5292efd082
Merge pull request #9221 from m-kuhn/relation-reference-field-formatter-cache
Add cache for relation reference field formatter
2019-02-21 09:52:54 +01:00
Martin Dobias
3d99fd5a04 Make sure not to crash if there are no alternatives for right click 2019-02-21 08:53:12 +01:00