55152 Commits

Author SHA1 Message Date
vsklencar
a337758035 [QgsQuick] Updated external resource widget
It has been enlarged, button changed
Added a new component qgsquickicontextitem
2019-04-24 20:11:52 +02:00
Alessandro Pasotti
38c91e4e97 [postgres] Fix checkPrimaryKeyUnicity option
This provider option was linked to the project level option
"Trust layer metadata..." which was implemented
to speed up loading of large dataset by trusting extent
read from metadata to avoid costly operations to determine
the layer extent.

Check PK unicity on the other hand has only effect on views
and query layers and it is useful as an independent
option to prevent loading of layers that have no PK (or the
wrong one).

But the operation of determine unicity of a values in a column
can also be costly, so better to get control back to the user.

Legacy default is preserved (the project-level "Trust..." option).

Fixes #21839

Funded by RAAB.nl
2019-04-24 17:14:42 +02:00
David Marteau
6af744da82 Remove plugin module path when unloading
Unloading plugin must remove added module path
    in order to prevent wrong package import when reloading
2019-04-24 16:09:09 +02:00
Marcel Dancak
efdd52cb2f Commented out code for debugging (saving of metatiles), fixed python formatting 2019-04-24 15:23:56 +02:00
Blottiere Paul
dc0877c1b4
Merge pull request #9858 from signedav/default_symbol_scale
Fix "\since" comment because of backporting
2019-04-24 15:10:43 +02:00
David Signer
450e193c85 fix comment since 3.4 2019-04-24 14:22:39 +02:00
Marcel Dancak
4ab9bb6175 Registration of TilesXYZ algorithm 2019-04-24 13:11:36 +02:00
Marcel Dancak
73a5a6adc1 Initial version of xyz tiles export (processing tool) 2019-04-24 12:25:58 +02:00
nirvn
756964620a [FEATURE][symbology] Add offset settings for point pattern fill symbol layer 2019-04-24 16:53:40 +07:00
rldhont
f8880c6e9c [Tests][Server] WMTS - use resolution for bbox calculation 2019-04-24 10:46:21 +02:00
rldhont
ccd92b8a1a [Bugfix][Server] WMTS - use resolution for bbox calculation
Because of the limit of double size in C++, it's bettre to use the resolution instead of the scale denominator for calculating tiles extent.
2019-04-24 09:21:04 +02:00
nirvn
e0a73d307b Turn antialiasing flag on when rendering legend symbol preview 2019-04-24 10:06:33 +07:00
nirvn
ca305bb5b0 Turn antialising render flag on when appropriate in QgsRenderContext::fromQPainter() 2019-04-24 10:06:33 +07:00
nirvn
6395dad8d0 [processing] Log features that could not be divided in tessellate alg. 2019-04-24 09:53:00 +07:00
Martin Dobias
736327634e [3d] Fix edge drawing when multiple renderer rules have edges enabled
When using rule-based 3D rendering, if multiple rules were enabled with edge rendering,
only the first rule was getting correctly set up line width for line material.
(the rest were getting some very thick line width and making the 3D view unusable)
2019-04-23 17:54:00 +02:00
Juergen E. Fischer
9421d602fa debian packaging: include python3-lxml 2019-04-23 17:44:48 +02:00
Martin Dobias
ab46258c61 [3d] fix shading of 3D point symbols
The vertex shader was incorrectly transforming world position and normal
vectors for phong shading. This was causing wrong appearance that was noticeable
when moving/rotating camera (e.g. specular reflection was always in the same place).
This was caused by involving view matrix (i.e. camera position and orientation)
to the vectors, but the world position and normal should be independent from camera.
2019-04-23 16:28:10 +02:00
Martin Dobias
1106f6ab23
Merge pull request #9839 from wonder-sk/fix-3d-extra-terrain-updates
[3d] Fix unnecessary terrain map updates when changing 3D renderer
2019-04-23 16:27:19 +02:00
Matthias Kuhn
74d30b95b9
Merge pull request #9809 from m-kuhn/snapping_results_for_points
Add @snapping_results variable for points
2019-04-23 15:03:15 +02:00
Martin Dobias
60572ac4d4 [3d] Fix unnecessary terrain map updates when changing 3D renderer
When using layer styling dock, every change in 3D rendering configuration
was also triggering update of 2D map which also forces update of all
terrain tile textures with a new 2D map which wasn't really needed.
The fix makes the triggerRefresh() call on layer optional - each layer
styling dock config widget can tell whether its updates require 2D map
refresh (true by default).
2019-04-21 21:01:01 +02:00
Alexander Bruy
a744ddb615
Merge pull request #9836 from alexbruy/fix-hypsometry
[processing] ensure that output temporary directory exists (fix #21701)
2019-04-21 10:39:23 +03:00
Alexander Bruy
c706cdeb06 [processing] ensure that output temporary directory exists (fix #21701) 2019-04-20 11:53:47 +03:00
rldhont
8c21a9e848
Merge pull request #9827 from rldhont/fix-server-wmts-crs-hasaxisinverted
[Bugfix][Server] WMTS: CRS can have axis inverted
2019-04-19 08:15:45 +02:00
rldhont
012faa6af1 [Bugfix][Server] WMTS: CRS can have axis inverted
The top left element has to respect the axis, like in WMS 1.3.0.
2019-04-18 23:21:40 +02:00
Nyall Dawson
9da6a03b50 Add API for specifying fallback CRS and layer WKB type to use
for QgsVectorLayer, when constructing a layer with a URI which
may be invalid

These may be used for layers where the geometry type/CRS is
known in advance, and where the layer path may not be
initially resolvable. (E.g. layers with a URI pointing to a
non-existant file). It is only ever used if the layer cannot
be resolved, otherwise the actual layer geometry type will be
detected and used for the layer.
2019-04-19 06:07:13 +10:00
rldhont
bca78c05c4
Merge pull request #9826 from rldhont/fix-server-wmts-serviceurl
[Bugfix][Server] WMTS: read the service url from project
2019-04-18 16:19:33 +02:00
rldhont
fc3401cb91 [Bugfix][Server] WMTS: read the service url from project
It is a typo fix
2019-04-18 13:50:28 +02:00
Nyall Dawson
0f1660990f Store vector layer wkb type in xml
We can use this when restoring the layer, if the uri turns out
to be invalid at that stage (e.g. a file has moved). By storing
and falling back to the last known wkb type, we avoid unnecessarily
discarding the existing layer renderer, and can still show the
expected layer type in the layer tree.
2019-04-18 18:41:09 +10:00
Nyall Dawson
786929b4ea Add unit test for f947ffb5b 2019-04-18 18:41:09 +10:00
Alessandro Pasotti
51d8286ec9 Tooltips for PG options in source select dialog 2019-04-18 10:33:58 +02:00
Peter Petrik
f742044392 update MDAL 0.3.1 2019-04-18 09:52:40 +02:00
Peter Petrik
fd492abffe fix rendering of mesh triangle with 0,0 vertex 2019-04-18 09:51:58 +02:00
nirvn
d332292863 [ogr] Only throw validity error in reloadData() when previously valid 2019-04-18 14:40:15 +07:00
Alessandro Pasotti
ad544a29ba Initial check pk unicity 2019-04-18 09:33:47 +02:00
Alessandro Pasotti
c0c19f0cc9 Fix wrong cotrol image for ITEMFONTCOLOR test 2019-04-18 08:32:33 +02:00
Juergen E. Fischer
40c790f5d9 fix 3d7c711db (refs #21872) 2019-04-17 23:56:31 +02:00
Juergen E. Fischer
3d7c711db0 fix #21872 (refs #21774; partly reverts e57d1e06f0 and 507e327c0c)
src/python/qgspythonutilsimpl.cpp:596 produces "lost sys.stdout" when
qgis.utils.updateAvailablePlugins() returns.
2019-04-17 22:30:01 +02:00
Alex
21280c39c0 More verbose sip failure 2019-04-18 06:23:09 +10:00
Matthias Kuhn
9a7303b183
Add a comment to explain the reason for the code 2019-04-17 19:34:20 +02:00
Alessandro Pasotti
dca0fb9026
Merge pull request #9805 from elpaso/bugfix-21871-21870-LAYERFONTCOLOR-ITEMFONTCOLOR
[server] Implement LAYERFONTCOLOR and ITEMFONTCOLOR
2019-04-17 16:04:02 +02:00
Matthias Kuhn
a0f450df5f
Add @snapping_results variable for points
Fix #21784 https://issues.qgis.org/issues/21784
2019-04-17 15:12:34 +02:00
Alessandro Pasotti
1f862cadc6 Waste my time with Travis 2019-04-17 14:12:30 +02:00
vsklencar
15af15ea3d [QgsQuick] Added styling properties to feature form tabs 2019-04-17 13:55:23 +02:00
vsklencar
6f20b5c3cd [QgsQuick] Styling of tab buttons in feature form
Added properties for color background setting
2019-04-17 13:55:23 +02:00
Alessandro Pasotti
5cf2596545 Layout 2019-04-17 13:44:43 +02:00
rldhont
1055a8aff6
Merge pull request #9773 from dmarteau/set-configpath-at-early-time
[server] Allow server plugin filters to access config path
2019-04-17 13:42:26 +02:00
Alessandro Pasotti
7032db27fa [server] Implement LAYERFONTCOLOR and ITEMFONTCOLOR
Fixes #21871
Fixes #21870

Funded by: Gis3w
2019-04-17 12:01:06 +02:00
David Marteau
7ce5fb2d02 Set config path before calling plugin method 2019-04-17 11:41:27 +02:00
Blottiere Paul
3c6299a199
Merge pull request #9775 from signedav/default_symbol_scale
[server] Default scale/mupmm on GetLegendGraphics
2019-04-17 10:47:27 +02:00
Matthias Kuhn
8416e7588c
Merge pull request #9781 from m-kuhn/processing_parameter_as_boolean
Add QgsProcessingAlgorithm::parameterAsBoolean
2019-04-17 09:20:07 +02:00