54574 Commits

Author SHA1 Message Date
Alex
b03d61d5d6
base path handler 2019-03-20 20:01:50 -04: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
Nyall Dawson
8cff94190d [processing] Fix QgsProcessingProvider::isSupportedOutputValue handling
of optional output parameters

Refs #21374
2019-03-20 06:01:15 +10:00
Nyall Dawson
a963eaad54 Fix crash when grass provider is not available
Fixes #21604
2019-03-20 06:00:54 +10:00
Nyall Dawson
7fadfbf2de Remove another use of deprecated QgsCoordinateTransform constructor
Sponsored by ICSM
2019-03-20 06:00:27 +10:00
Nyall Dawson
9182ca3d3d Use correct project transform context in transform expression function
Sponsored by ICSM
2019-03-20 06:00:27 +10:00
Juergen E. Fischer
a7a851727c mdal: fix typo 2019-03-19 20:48:24 +01:00
Juergen E. Fischer
e868d07f58 debian packaging: move qgis.core.additions to python3-qgis-common 2019-03-19 20:48:24 +01:00
Sandro Mani
0360b45743 [Bugfix] Return false from QgsVectorLayer::setDataProvider if provider is not valid 2019-03-19 16:22:18 +01:00
Sandro Mani
0996c93d09 [Bugfix] Ensure order by attribute indices are valid 2019-03-19 16:22:18 +01:00
Alessandro Pasotti
aeba867832 Fix crash when opening layer propertie on a bad raster layer
unreported

... and hit apply after changing the renderer or the
transparency.
2019-03-19 16:05:40 +01:00
Alessandro Pasotti
61b2f91155
Merge pull request #9550 from elpaso/bugfix-21387-bad-layers-keep-group-and-status
Keep group and checked state when handling bad layers
2019-03-19 15:55:07 +01:00
Blottiere Paul
ba406e6d5b QCOMPARE with QString 2019-03-19 14:38:04 +00:00
Blottiere Paul
7adb1145c6 Update SIP binding 2019-03-19 14:38:04 +00:00
Blottiere Paul
94fb2e13fd Add doc 2019-03-19 14:38:04 +00:00
Blottiere Paul
c98a2ec29f Clean code 2019-03-19 14:38:04 +00:00
Blottiere Paul
2ccc3f158b Add test with big marker 2019-03-19 14:38:04 +00:00
Blottiere Paul
3f4999bd5f Add test for opacity 2019-03-19 14:38:04 +00:00
Blottiere Paul
8f76c23f1e Add unit tests 2019-03-19 14:38:04 +00:00
Blottiere Paul
4aa854042b Manage opacity for markers in vector layers 2019-03-19 14:38:04 +00:00
Blottiere Paul
2ed420e6cf Draw symbol for image and wms 2019-03-19 14:38:04 +00:00
Blottiere Paul
aeda7c2b03 Draw symbol for raster layers 2019-03-19 14:38:04 +00:00
Blottiere Paul
5410774ab1 Add icons in json for markers 2019-03-19 14:38:04 +00:00
Blottiere Paul
9651efa0f6 Add drawLegend method for json 2019-03-19 14:38:04 +00:00
Martin Dobias
3032a65317 Add tests, fix issues from review, customizable terrain downloader 2019-03-19 15:29:55 +01:00