53876 Commits

Author SHA1 Message Date
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
Martin Dobias
aec87a0a89 Fix issue with selection of vertices of locked feature (fixes #21283)
When user was coming with mouse to a vertex of the locked feature
from a different feature, it could happen that the vertex would not
get picked by vertex tool - this was because snapToEditableLayer()
keeps the last snap which would belong to a different feature, but
that feature was not allowed (blocking a new snap).

The fix makes sure that with a locked feature its matches always win.
2019-02-21 08:53:12 +01:00
Martin Dobias
7831f3ef23 Continue loop of locked features after mouse move
A small UX improvement: after right click in a location with feature A and B,
we would do a loop A - B - nothing - A - B - nothing ...
But if after first click to get A locked user would move the mouse a bit,
the loop would get broken and would end up with A - nothing - B - nothing - A - B - nothing
The fix is to identify where we are in the cycle and set the index correctly after mouse move.
2019-02-21 08:53:12 +01:00
Martin Dobias
6fd21c2f7c Do not keep highlight when locking/unlocking feature
It was a bit strange effect when locking feature... when moving mouse
over a feature it would have highlight, then on right click it would
also get vertex editor square markers in addition to the highlight, but
then immediately after mouse move the original highlight would be gone.
Now it's simplified so that feature highlight on right click gets removed.
2019-02-21 08:53:12 +01:00
Alessandro Pasotti
e42c6a3529
Merge pull request #9219 from elpaso/bugfix-21303-postgis-slow-table-open
Postgis: cache information about enum fields
2019-02-21 08:32:10 +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
Matthias Kuhn
4d5dad8172
Merge pull request #9223 from m-kuhn/geometry_validator_summary_cleanup
Geometry validator summary cleanup
2019-02-21 07:53:54 +01:00
nirvn
9280a0717f Remove expression's not-yet-prepared warning 2019-02-21 09:35:06 +07:00
Anita Graser
8768989480 Update README_FONTS 2019-02-21 08:25:31 +10:00
Anita Graser
bcbeda44a7 Update README_FONTS 2019-02-21 08:25:31 +10:00