56750 Commits

Author SHA1 Message Date
Matthias Kuhn
65e0836d39
Merge pull request #31055 from DelazJ/mapItemGuiCRS
Fix misalignment of CRS label in Map Item properties
2019-08-02 18:46:24 +02:00
Matthias Kuhn
2963ca7e90
Merge pull request #31054 from dimitrisal/patch-2
Fix r.grow.distance
2019-08-02 16:56:44 +02:00
Harrissou Sant-anna
a0c94dda54 Fix misalignment in Map Item properties 2019-08-02 16:19:22 +02:00
Dimitris Salmas
0a27b7b131
bug fix
Bug fix for ERROR: Output distance in meters for lat/lon is only possible with 'metric=geodesic'
2019-08-02 17:08:53 +03:00
sklencar
f5fe4cb010 [QgsQuick] Custom filepaths for external resource widget (#30929)
* Enabled using default path for external resources.
Value (filepath) can be relative to either project path or default root according field setup/config

* [QgsQuick] Added signal of event when a captured photo is confirmed. That enables custom handling of the action by externalResourceHandler.
Renamed Ok Button of PhotoPanel.

* [QgsQuick] Cleaning source of preview image after closing it
It was causing unpleasant effect when last taken photo has been shown for a short while before previewing another.

* [QgsQuick]
Evaluate and use defaultRootPath in a config of the external resource widget.
Added a function to evaluate expressions for QgsQuick

* [QgsQuick] Use Loader to load photo panel only when its going to be used.
Also prevents for asking camera permissions on form open, when photo panel was initialized as well.

* [QgsQuick] Better wrapping of a long filenames text in the external source widget if an image is not available.

* [QgsQuick] Use canonical path in function
Symlinks are used a lot on Android, therefore its better to use canonical paths.

* [QgsQuick] formatted code.

* [QgsQuick] External source widget - changes requested in review
Fixed test and added one test case for getting relative path.

* [QgsQuick] External widget update
Added function that returns absolute path of image according widget's config - takes into account relative/absolute setting for value and default path.
Added docs about how a path can be configured and used.

* [QgsQuick] External widget update
* removed lefover property
* corrected getAbsolutePath function

* [QgsQuick] Corrected function and fixed test
Do not use canonical path for non-existing file while getting relative path.
2019-08-02 13:30:11 +02:00
Matthias Kuhn
bd61fa55e7 Do not specify srid in dbmanager. It goes crazy
If srid is specified in an uri, it disables type detection.

Fix #30787
2019-08-02 13:12:18 +02:00
Matthias Kuhn
619562ec3d More dox 2019-08-02 13:12:18 +02:00
Matthias Kuhn
9be7784f1d Add a new qgis_desktop build target
this is meant for development, to quickly get a test build
including python bindings and the most important core providers
2019-08-02 12:57:56 +02:00
Matthias Kuhn
81f1001857 [postgres] Allow detecting mixed curved and straight geometries 2019-08-02 09:38:46 +02:00
Matthias Kuhn
60f4bc56e8 Add QgsWkbTypes::curveType method 2019-08-02 09:33:47 +02:00
Matthias Kuhn
770f7e8d44 Add planimetric measurement default to settings template 2019-08-02 09:17:14 +02:00
Matthias Kuhn
8996dc8c0c Move measurement/planimetric settings to QgsSettings::Core 2019-08-02 09:17:14 +02:00
Nyall Dawson
37b7b84d8b Fix data defined legend size when using seperated symbols
Fixes #26929
2019-08-02 10:13:10 +10:00
Alessandro Pasotti
e998757961
Merge pull request #31039 from elpaso/pg_raster_support
Expose PostGIS rasters to the browser and the source select dialog
2019-08-01 20:57:33 +02:00
Julien Cabieces
4f7975d2dc Fix WMS GetMap 8bit mode with transparency (#31014)
* Fix WMS GetMap 8bit mode with transparency

* Correct indentation

* Remove french text in qgs test project

* Correct render checker for 8bit image

* Remove empty line
2019-08-01 17:14:43 +02:00
Alessandro Pasotti
25da979f40 Expose PostGIS rasters to the browser and the source select dialog
PostGIS rasters are actually opened with GDAL
2019-08-01 15:13:10 +02:00
Nyall Dawson
2835ed6732 Fix potential crash in marker symbol layer
(the expression context scope wasn't being deleted in all return
paths, resulting in crashes when rendering was complete and
everything was being cleaned up)

And some other code safer against this same risk
2019-08-01 18:41:54 +10:00
Nyall Dawson
ba55fb3e0a Use real symbol buttons in categorized and graduated renderer widgets,
instead of fake ones

Gives these buttons the full power of the usual QgsSymbolButton,
including copy/paste symbols, color/opacity changes, etc. Plus,
some nice additional interface consistency!
2019-08-01 16:03:47 +10:00
Nyall Dawson
66ea97d4e2 Ensure project is dirtied when editing symbols/color via layer tree
Also ensure layer style dock is always in sync with changes made
via layer tree
2019-08-01 15:16:33 +10:00
Harrissou Sant-anna
292efc2bf8 Add minimal description to Processing algorithms
enabling the right-hand help panel
2019-08-01 09:19:08 +10:00
Alban Kraus
7084cb0499 PostgreSQL foreign tables: handle them like views (fixes #30990) [needs-docs]
PostgreSQL foreign tables are not explicitely supported by the PosgreSQL provider.
This commit removes the error message, and handle foreign tables like views.

A foreign table cannot (in PostgreSQL <10) state what column
is the primary key, so we let the user tell QGIS.
2019-08-01 09:05:53 +10:00
Nyall Dawson
06d24e100a Standardise wording and capitalization 2019-08-01 09:02:43 +10:00
Harrissou Sant-anna
ad011ac0a2
Apply suggestions from code review
Typo fix

Co-Authored-By: Nyall Dawson <nyall.dawson@gmail.com>
2019-08-01 00:58:18 +02:00
Harrissou Sant-anna
7cad1e3a0a
Revert bar plot removal 2019-07-31 20:54:12 +02:00
Nyall Dawson
193f520ad9 Deprecate existing QgsCustomDropHandler::handleMimeData method,
and add handleMimeDataV2 method which returns a bool

This allows custom drop handlers to indicate that they've fully
handled dropped mime data, and that no further processing should
be done on the mime data
2019-08-01 04:29:34 +10:00
Harrissou Sant-anna
bae77bf8c3 Add help panel to service area algorithms dialog
with information of travel cost units
2019-07-31 18:23:52 +02:00
Nyall Dawson
43addee52d Open color picker inline when selecting "change symbol color" from right click menu
in categorized, graduated or rule based renderer widgets
2019-07-31 20:50:28 +10:00
Nyall Dawson
55efeaeb2f [FEATURE] Add copy/paste symbol action to right click menu in categorized/graduated/rule based renderers
Allows symbols to be easily copied and pasted between these nodes
2019-07-31 20:49:43 +10:00
Nyall Dawson
47f83b582f [FEATURE] Add "copy symbol" and "paste symbol" actions to layer right click, style menu
Allows for individual symbols to be copied and pasted between layers or rule/categorized/graduated
nodes
2019-07-31 20:49:43 +10:00
Juergen E. Fischer
d40b387a9e translation string fixes 2019-07-31 10:20:56 +02:00
Nyall Dawson
a0f6ee7541 Sipify 2019-07-31 11:03:06 +10:00
Sandro Mani
c13ee77903 Add missing header to QGIS_CORE_HDRS 2019-07-31 11:03:06 +10:00
Sandro Mani
ed4f185284 Generally chop /bin for pkgDataDir on Windows 2019-07-31 11:03:06 +10:00
Sandro Mani
0a3ec2689a Fix case of dbghelp library 2019-07-31 11:03:06 +10:00
Sandro Mani
769afbb87a Allow specifying native crssync when cross compiling 2019-07-31 11:03:06 +10:00
Sandro Mani
1ed3c91409 Only use pyuic-wrapper.bat when compiling on windows hosts 2019-07-31 11:03:06 +10:00
Sandro Mani
dbb2aa2002 Fix invalid use of EXISTS used to check whether a variable is set 2019-07-31 11:03:06 +10:00
Sandro Mani
5c5237149c Pass NO_CMAKE_FIND_ROOT_PATH when invoking FIND_FILE to find local files
Otherwise, when cross-compiling, the prefix of the cross environment (i.e. /usr/x86_64-w64-mingw32/) is prepended to the path, leading to the files not being found
2019-07-31 11:03:06 +10:00
Harrissou Sant-anna
f051d0a1a7 Apply suggestions from code review
Co-Authored-By: Nyall Dawson <nyall.dawson@gmail.com>
2019-07-31 06:42:42 +10:00
Harrissou Sant-anna
9df1764ef6 [Feature] Enable widget filtering in Interface Customization dialog
Adds a search text box to allow filtering through the widgets when
customizing the interface
2019-07-31 06:42:42 +10:00
vsklencar
390f594498 [QgsQuick] Range widget update
Different background color when a widget is enabled/disabled
2019-07-30 22:29:22 +02:00
vsklencar
a9db87a9c4 [QgsQuick] Small visual fixes of a range widget 2019-07-30 22:29:22 +02:00
vsklencar
1a414ef16c [QgsQuick] Added SpinBox beside Slider for a range field.
Formatted
2019-07-30 22:29:22 +02:00
vsklencar
35c9ee3e66 [QgsQuick] Added SpinBox beside Slider for a range field. 2019-07-30 22:29:22 +02:00
vsklencar
e506bb18a0 [QgsQuick] Added Range widget
Suppose to be used in Feature form as a editor widget for a number field of type 'range'.
2019-07-30 22:29:22 +02:00
Nyall Dawson
6646a009d3 Swap a QDoubleSpinBox for QgsDoubleSpinBox 2019-07-31 05:09:27 +10:00
Nyall Dawson
6c06538812 Code style 2019-07-31 05:09:27 +10:00
Nyall Dawson
4e21ef5e58 Use a double spin box for Add Circle by 2 Tangents and Point tool
Otherwise non-integer radiuses cannot be used
2019-07-31 05:09:27 +10:00
Nyall Dawson
7377626996 Revise map tip cursor offset calculations to better handle hidpi screens
Fixes #28337
2019-07-31 05:09:03 +10:00
Alexandre Neto
6a1b57214d Better Support to hidpi 2019-07-31 05:09:03 +10:00