54497 Commits

Author SHA1 Message Date
Nyall Dawson
427ea515a5 Deprecate some more methods 2019-03-22 12:16:22 +10:00
Nyall Dawson
16a64ed84d Deprecate some methods, dox++ 2019-03-22 12:16:22 +10:00
Nyall Dawson
fa202795b0 Dox++ 2019-03-22 12:16:22 +10:00
Víctor Olaya
e0a990d997 [processing] Add 'call' statements to SAGA batch file 2019-03-22 12:15:50 +10:00
AlisterH
da6a3786e2 Add missing bracket to formula generated by data defined override
Refs #21617
2019-03-22 09:38:45 +10:00
Giovanni Manghi
10a542ebdf fixes GRASS r.mapcalc tool 2019-03-22 07:29:53 +10:00
vsklencar
8e7ff107d9 [QgsQuick] Added icon for 'Today' button of QgsQuickDateTime widget.
Removed extra emopty line.
2019-03-21 22:06:42 +01:00
vsklencar
48e28354a0 [QgsQuick] 'Today' icon button moved straight to date field.
Visible only in !readOnly mode.
2019-03-21 22:06:42 +01:00
vsklencar
24bd866496 [QgsQuick] 'Today' button for QgsQuickDateTime widget
To enable quickly set current date.
2019-03-21 22:06:42 +01:00
Juergen E. Fischer
21207b8a7a update INSTALL 2019-03-21 19:45:35 +01:00
rldhont
59e5a68df7
Merge pull request #9526 from rldhont/fix-server-getfeatureinfo-withfilter-withoutcrs
[Bugfix][Server] In WMS GetFeatureInfo CRS param not mandatory when FILTER param
2019-03-21 14:32:06 +01:00
Juergen E. Fischer
fcb572e64e fix warning 2019-03-21 10:07:38 +01:00
Blottiere Paul
226e3d420d
Merge pull request #9592 from rldhont/forwardport-9418-on-master
Forwardport #9418 on master
2019-03-21 09:46:15 +01:00
Blottiere Paul
e9067834eb
Merge pull request #9362 from pblottiere/legend_json
Add json format for legend
2019-03-21 09:17:42 +01:00
rldhont
4d70a4e28e [Server] Add unit test for WFS GetFeature with BBOX param without EPSG 2019-03-21 09:05:45 +01:00
Matthias Kuhn
efc7e87fb9
Merge pull request #9250 from uclaros/fix_reshape_bug
Quick fix for a bug in QgsGeos::reshapeLine that causes QGIS to crash…
2019-03-21 08:48:40 +01:00
Matthias Kuhn
0f20c131f2
Merge pull request #9576 from m-kuhn/geometry_validation_invalid_feature_master
Only change map extent when manually changing the active error
2019-03-21 08:13:50 +01:00
Peter Petrik
7cb1695630 fix mesh scalar rendering for value 0 2019-03-21 08:08:28 +01:00
Nyall Dawson
af06cf0cd2 [processing] Fix exception when creating unit tests 2019-03-21 16:08:42 +10:00
Nyall Dawson
c7ac86604f [FEATURE] New algorithm "Add X/Y fields to layer"
Adds X and Y (or latitude/longitude) fields to a point layer.
The X/Y fields can be calculated in a different CRS to the
layer (e.g. creating latitude/longitude fields for a layer in
a project CRS).

Sponsored by SMEC/SJ
2019-03-21 16:08:42 +10:00
Nyall Dawson
acdb368024 [processing] Allow QgsGeometry values for point parameter values
The centroid of the geometry is used for the point parameter value.
This makes it easier to write expressions for the value of point
parameters, since all the QGIS expression functions for working
with geometry types return QgsGeometry value themselves (e.g.
make_point, centroid, ...). In this case it's much nicer to
allow expression values like `make_point(3,4)` within a precalculated
expression based value in a Processing model.
2019-03-21 15:25:54 +10:00
Nyall Dawson
c66159bd2d [processing] Fix warning when loading algorithm dialog and no layers
are present

Fixes #21631
2019-03-21 15:10:30 +10:00
Nyall Dawson
db75122089 [layouts] Refresh layout automatically on page size/orientation change
Fixes #21624
2019-03-21 14:48:49 +10:00
Nyall Dawson
1dc447e1f2 Dox++ 2019-03-21 12:44:16 +10:00
Martin Dobias
6f92e7cf4b [mssql] More sensible srid when adding CRS to MS SQL database
The spatial_ref_sys table has srid column with ID of CRS entries.
I believe the IDs can be arbitrary, however it has been a good habit
to use EPSG number for srid (at least in GDAL - and the same thing
happens in PostGIS - srid values are the same as EPSG numbers).

In QGIS import if we add a new row to spatial_ref_sys table, the code
was using srsid() as ID which is internal ID in QGIS srs.db and it has
nothing to do with other IDs. Some pieces of code (probably incorrectly)
expect that srid is actually the EPSG number, so let's use those
so that we are consistent with GDAL and fix these minor issues
(for example, tooltip of MS SQL layers in browser show srid - which
in case of layers loaded with QGIS were meaningless)
2019-03-20 20:58:15 +01:00
Rashad Kanavath
46da10a1e8 Revert "fixes #21374: ignore optional output parameters"
This reverts commit af2421541c78742a233b3c5a00cbbd6c11ceaaab.
2019-03-21 04:44:59 +10:00
Rashad Kanavath
91d430a0cb fix travis code_layout test 2019-03-21 04:44:59 +10:00
Rashad Kanavath
e94d9a596a [TEST] add more test on otb segmentation apps
Even though not all errors are caught by these new tests, it could
expose if otb is broken or if processing api is changed to adopt
optional status of parameters at run-time.

`alg.processAlgorithm()` is running and failing correctly.
But `parameter.checkValueIsAcceptable()` and `alg.checkParameterValues()`
aren't working as expected.
2019-03-21 04:44:59 +10:00
Rashad Kanavath
0b86110ccd report warnings as non fatal errors through Feedback 2019-03-21 04:44:59 +10:00
Rashad Kanavath
c763b9229b fix #21373 #21374: handle update optional status based on user-input
Parameters are marked required in descriptor file for certian
applications but they are only required if a parent parameter has a
"certain" value. So initial idea was to make all of those parameters
optional from OTB part. So that qgis can work correctly and was a easy
fix. But.. we (me and Antonie) decided not to take that route and
found a better fix.

`OtbParameterChoice` and its wrapper will update optional status of
all sub-parameters depending on the value of a choice parameter.

A test has been added to check this issue and will be available in
next commit.
2019-03-21 04:44:59 +10:00
Rashad Kanavath
f6ad4745bd fixes #21374: ignore optional output parameters 2019-03-21 04:44:59 +10:00
Rashad Kanavath
f1cc8aa108 bug: check for empty string in parameter values 2019-03-21 04:44:59 +10:00
Rashad Kanavath
d3a1c65368 Remove OtbSettings class and put constants for key names in OtbUtils 2019-03-21 04:44:59 +10:00
Rashad Kanavath
07d17a0f17 This commits fixes encoding issue on windows.
getWindowsCodePage is taken from Grass7Utils.py

Instead of writing a cli_file at startup, provider now pass all
required env_variables directly to subprocess.popen. This has known to
cause issues when handling with windows path names. subprocess.Popen
handles it correctly depending on platform

Logging of output from otbalgorithm and updating progress bar is
slightly updated.
Algoirthm is now launched directly using otbApplicationLauncherCommandLine
`encoding` (on windows) and env arguments passed to subprocess is
logged in QgsMessageLog
2019-03-21 04:44:59 +10:00
Matthias Kuhn
4f2a78be85
Do not crash after fixing invalid geometries 2019-03-20 14:26:33 +01:00
Matthias Kuhn
e4d5af642c
Only change map extent when manually changing the active error 2019-03-20 14:25:42 +01:00
Martin Dobias
f85d494303
Merge pull request #9549 from wonder-sk/online-3d-terrain
[3d] Add option to use terrain data from online service
2019-03-20 13:48:27 +01:00
Matthias Kuhn
13a74ae962
Merge pull request #9320 from m-kuhn/geometry-validation-icons
Geometry validation icons
2019-03-20 11:58:28 +01:00
Martin Dobias
1010522877 Use user data in terrain combo boxes, fix max zoom level calc 2019-03-20 11:55:48 +01:00
Blottiere Paul
90b46f6a38 Add context in doc 2019-03-20 09:56:30 +00:00
rldhont
638650a5a2
Merge pull request #9525 from rldhont/fix-server-getprint-jpg
[Server] JPEG output for WMS GetPrint request has gone
2019-03-20 10:37:45 +01:00
Blottiere Paul
2aeac0d321 Update tests 2019-03-20 09:33:23 +00:00
Blottiere Paul
4efd410840 Update sip 2019-03-20 09:33:17 +00:00
Blottiere Paul
7819d19af3 More renaming and add a render context 2019-03-20 09:32:44 +00:00
Nyall Dawson
5653289085 Fix capitalization, clearer wording 2019-03-20 19:02:44 +10:00
Blottiere Paul
0cdd80d723 Update doc 2019-03-20 09:00:26 +00:00
Blottiere Paul
89a1b1a1ac Rename methods 2019-03-20 08:55:50 +00:00
Alessandro Pasotti
567da1bd79
Merge pull request #9563 from elpaso/bugfix-unreported-raster-crash-on-bad-layers
Fix crash when opening layer properties on a bad raster layer
2019-03-20 07:52:00 +01:00
Sandro Mani
ba416d2eef
Merge pull request #9527 from manisandro/master
Misc crash fixes
2019-03-20 00:05:53 +01:00
Juergen E. Fischer
ab340f2de4 fix windows build 2019-03-19 22:14:48 +01:00