54510 Commits

Author SHA1 Message Date
Nyall Dawson
dc6869d28d Avoid more accidentally editable table cells 2019-03-22 15:38:11 +10:00
Nyall Dawson
d658c5138c Make preferred choices more visually dominant in transform selection dialog 2019-03-22 15:38:11 +10:00
Nyall Dawson
8b1d247fc1 FORCE users to make a choice in the transformation selection dialog
We don't want users to fallback to a "don't know what this means,
I'll click 'Cancel'" behaviour here. Doing so results in the
worst possible inaccurate transformations used. Literally, picking
ANYTHING in the dialog is a better selection then allowing
them to click cancel.

Sponsored by ICSM
2019-03-22 15:38:11 +10:00
Nyall Dawson
785c03358e Move datum transformation dialog prompting behaviour setting to a new
key to reset ALL users to a default value

And add to qgis_global_settings.ini

Sponsored by ICSM
2019-03-22 15:38:11 +10:00
Nyall Dawson
3505eb9ceb [needs-docs] Add a "Make Default" checkbox in the datum transform selection dialog
If checked, the selected transformation will be set as a default
for all newly created projects (this can later be changed
in the usual place in Options - CRS)

Sponsored by ICSM
2019-03-22 15:38:11 +10:00
Nyall Dawson
cd01a5bf87 Move ALL logic for prompting users for datum transform selection
AND updating the current project transform context accordingly
to a single method

Unifies this logic, but most importantly fixes a bug where
users are NEVER prompted for a transformation when only one
valid transformation exists AND this single transform
is not added to the project context (in other words, QGIS
could not handle transformations when only one possible
path existed).

Some logic here is temporary (QgsDatumTransformDialog::defaultDatumTransform())
and will be replaced with proj db logic when we update to
proj v6 API

Sponsored by ICSM
2019-03-22 15:38:11 +10:00
Nyall Dawson
2af0d0de93 Fix double update of dialog 2019-03-22 15:38:11 +10:00
Nyall Dawson
fe50e24ccf Fix loss of transform context changes when editing project CRS in project properties dialog 2019-03-22 15:38:11 +10:00
Nyall Dawson
0b6fdd9b09 Standardise API for deciding whether the datum transform dialog should be shown 2019-03-22 15:38:11 +10:00
Nyall Dawson
fc4d9b8f78 Remove dead code 2019-03-22 15:38:11 +10:00
Harrissou Sant-anna
f998ec9bb4 Remove duplicate word 2019-03-22 12:44:27 +10:00
Nyall Dawson
e7389db5c7 Fix marker line offset along line unit is ignored when in Interval mode 2019-03-22 12:16:22 +10:00
Nyall Dawson
6b470eebea Fix warning 2019-03-22 12:16:22 +10:00
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