55256 Commits

Author SHA1 Message Date
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
Alessandro Pasotti
8378eae0e5 Layout 2019-04-24 10:08:08 +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
Alessandro Pasotti
63711510b6 Dear Qt, I love you but ...
... you are too slow and QJson API is so ugly.

Now using this wonderful json lib:
https://github.com/nlohmann/json

Results in release mode (QJson tests are not shown but
QJson was even slower than string concat).

PASS   : TestQgsJsonUtils::testExportAttributesJson(Use json)
RESULT : TestQgsJsonUtils::testExportAttributesJson():"Use json":
     0.0022 msecs per iteration (total: 75, iterations: 32768)
PASS   : TestQgsJsonUtils::testExportAttributesJson(Use old string concat)
RESULT : TestQgsJsonUtils::testExportAttributesJson():"Use old string concat":
     0.0032 msecs per iteration (total: 54, iterations: 16384)
PASS   : TestQgsJsonUtils::testExportFeatureJson(Use json)
RESULT : TestQgsJsonUtils::testExportFeatureJson():"Use json":
     0.011 msecs per iteration (total: 96, iterations: 8192)
PASS   : TestQgsJsonUtils::testExportFeatureJson(Use old string concat)
RESULT : TestQgsJsonUtils::testExportFeatureJson():"Use old string concat":
     0.015 msecs per iteration (total: 64, iterations: 4096)
PASS   : TestQgsJsonUtils::testExportGeomToJson(Use json)
RESULT : TestQgsJsonUtils::testExportGeomToJson():"Use json":
     0.76 msecs per iteration (total: 98, iterations: 128)
PASS   : TestQgsJsonUtils::testExportGeomToJson(Use old string concat)
RESULT : TestQgsJsonUtils::testExportGeomToJson():"Use old string concat":
     0.85 msecs per iteration (total: 55, iterations: 64)
PASS   : TestQgsJsonUtils::cleanupTestCase()
2019-04-18 17:04:30 +02: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
Alessandro Pasotti
103981deb5 Fix QCOMPARE in the test 2019-04-18 11:29:36 +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
Alessandro Pasotti
7ae29e1f31
Merge pull request #9790 from elpaso/bugfix-21856-vectorfilewriter-crash
Guard vector file writer against invalid layers
2019-04-17 08:21:14 +02:00
nirvn
51606dbfa8 [processing] Add 'distance' tag to join attributes by nearest alg. 2019-04-17 11:49:30 +07:00
nirvn
9fa8d5687f [themes] Improve night mapping hyperlink color 2019-04-17 11:34:49 +07:00