64643 Commits

Author SHA1 Message Date
nirvn
9ef25675f7 Better strings and alg name 2020-08-03 18:02:34 +07:00
nirvn
40a37c5990 [FEATURE][processing] Export print layout atlas as image(s) algorithm 2020-08-03 18:02:34 +07:00
Nyall Dawson
88b3f43f9f [processing] Be more tolerant, and expose map layer outputs as possible
inputs for multi input parameters regardless of the required type

Otherwise we potentially block valid use cases. Better to be flexible
and catch errors at run time then prevent users making the model they need...
2020-08-03 19:25:48 +10:00
Nyall Dawson
129736093e [processing] Fix strange behaviour when mix of model outputs and fixed
inputs are selected as the input for a multi layer parameter
2020-08-03 18:36:40 +10:00
Nyall Dawson
53a8343eac Fix see also 2020-08-03 16:34:10 +10:00
Nyall Dawson
cafa347441 Add sip casting code for material types 2020-08-03 16:34:10 +10:00
Nyall Dawson
b07e0a20d0 Split textured phong material class from basic phong material class 2020-08-03 16:34:10 +10:00
Nyall Dawson
4d5518531f Split simple line material out from phong material 2020-08-03 16:34:10 +10:00
Nyall Dawson
c87a8f6afb Code shuffle to move all material classes to separate subdirectory 2020-08-03 16:34:10 +10:00
Nyall Dawson
798ed57155 Rename terrain texture for clarity 2020-08-03 16:34:10 +10:00
Nyall Dawson
7c08046a47 Don't show texture controls in terrain shading widget 2020-08-03 16:34:10 +10:00
Nyall Dawson
ce13ca2007 Fix build 2020-08-03 16:34:10 +10:00
Nyall Dawson
1417310442 Remove unused method 2020-08-03 16:34:10 +10:00
Nyall Dawson
f88c3efd52 Fix build 2020-08-03 16:34:10 +10:00
Nyall Dawson
58ad4cb985 Avoid misleading flake warning from autogenerated 3d code 2020-08-03 16:34:10 +10:00
Nyall Dawson
2455170df1 Fix broken see also link 2020-08-03 16:34:10 +10:00
Nyall Dawson
ba23f580bc [3d] Fix phong texture images are incorrectly ignored when applied
to a buffered line symbol
2020-08-03 16:34:10 +10:00
Nyall Dawson
ada2c601fb Move some texture handling methods to base class 2020-08-03 16:34:10 +10:00
Nyall Dawson
201ab0d05c Fix warning 2020-08-03 16:34:10 +10:00
Nyall Dawson
b9a147659f Fix sipifaction of enum class 2020-08-03 16:34:10 +10:00
Nyall Dawson
51cde6fbd2 [3d][FEATURE] Add CAD style ("Gooch") material for polygons/extruded lines
From the qt docs:

"The Gooch lighting model uses both color and brightness to help show the
curvature of 3D surfaces. This is often better than models such as Phong
that rely purely upon changes in brightness. In situations such as in CAD
and CAM applications where photorealism is not a goal, the Gooch shading
model in conjunction with some kind of silhouette edge inking is a popular
solution.

The Gooch lighting model is explained fully in the original Gooch paper.
The Gooch model mixes a diffuse object color with a user-provided cool
color and warm color to produce the end points of a color ramp that is
used to shade the object based upon the cosine of the angle between the
vector from the fragment to the light source and the fragment's normal
vector. Optionally, a specular highlight can be added on top. The
relative contributions to the cool and warm colors by the diffuse color
are controlled by the alpha and beta properties respecitvely."""

The TLDR: the shader works well for revealing 3d details of objects
which may otherwise be hidden due to the scene's lighting. Ultimately,
it's an easier material to work with as you don't need to worry
about setting up appropriate scene lighting in order to visualise features.
2020-08-03 16:34:10 +10:00
Nyall Dawson
d9af7f7170 Gooch shading! 2020-08-03 16:34:10 +10:00
Nyall Dawson
daf38a9f23 Rework QgsAbstractMaterialSettings class to handle different rendering techniques
Restrict choice of material in widgets based on the symbol's required technique,
and hide material settings in phong widget which don't apply to certain
rendering techniques (e.g. hiding all but the ambient color for simple 3d line
symbols)
2020-08-03 16:34:10 +10:00
Nyall Dawson
d85228654b Add an icon in the 3d material combo box 2020-08-03 16:34:10 +10:00
Alexander Bruy
c1e91425b6
Merge pull request #37298 from alexbruy/split-vector
use attribute value in the output file name for Split vector layer algorithm (fix #37296)
2020-08-03 09:33:39 +03:00
Peter Petrik
8ed274bb60
automatically add MACOS environment variables if folders/dirs present in bundle (#37918) 2020-08-03 06:20:23 +02:00
Nyall Dawson
4f34b8a7f8 [3d][api] Split api from specifying 3d map layers to render from api
for specifying terrain layers to render

Previously the one method was used for both, which made it very
difficult to have a different set of layers used for terrain
generation vs 3d entity generation (you had to manually create a map
theme, which is very messy)
2020-08-03 13:13:11 +10:00
Alexander Bruy
29ccd61cd6 use more robust WKT export option 2020-08-03 09:47:58 +10:00
Alexander Bruy
fc4d0f5388 address review comments 2020-08-03 09:47:58 +10:00
Alexander Bruy
b1f08378f7 use more descriptive representation of the current layer CRS 2020-08-03 09:47:58 +10:00
Alexander Bruy
92bf631ecf show current layer CRS in the layer context menu and allow to change it
directly to one of the recently used CRSs (fix #13882)
2020-08-03 09:47:58 +10:00
Juergen E. Fischer
48619cf552 debian packaging fixes:
* include qgis-server-wmts
* fix Qt53DExtras cmake module lookup
2020-08-02 21:50:19 +02:00
Matthias Kuhn
46a91533d6
Merge pull request #38080 from uclaros/georef-restore
Don't restore georeferencer window if it was maximized
2020-08-01 15:00:04 +02:00
uclaros
1ccfb71b1c Don't restore georeferencer window if it was maximized 2020-08-01 10:50:52 +03:00
rldhont
acc750c7e3
Merge pull request #37919 from rldhont/fix-processing-gdal-assignprojection-project-layer
[Processing] Fix GDAL Assign Projection: update QgsRasterLayer crs
2020-08-01 09:37:56 +02:00
nirvn
8f97788225 [ui] Make the obstacle checkbox label wrap to avoid overly large minimum width 2020-08-01 08:34:30 +10:00
omar
eaab778a47 Remove extra bracket from stdev statistic option 2020-08-01 08:34:09 +10:00
rldhont
f5b819fc4c [Tests] Check that GDAL Assign Projection updates QgsRasterLayer info 2020-07-31 14:32:48 +02:00
rldhont
6c44073ff0 [Processing] Fix GDAL Assign Projection: update QgsRasterLayer crs
Even if the projection is assign, the QgsRasterLayer and the QgsRasterDataProvider was not updated.

The fix reloads the QgsRasterDataProvider's data and updates the QgsRasterLayer's crs.

Fixed #37920
2020-07-31 14:32:48 +02:00
Nyall Dawson
e19f27d289 [processing] Fix hidden column names show in batch processing dialog,
throwing the table contents out of sync with the headers

Also make code a bit more robust

Fixes #38054
2020-07-31 16:03:28 +10:00
Nyall Dawson
b9f1f2ca32 [processing] Fix destination layer name ignored in Load Layer into Project
algorithm

Fixes #38046
2020-07-31 16:03:16 +10:00
Nyall Dawson
7087d5d087 [3d] Fix polygon edge lines are rendered vertically offset from polygons 2020-07-31 11:57:45 +10:00
nirvn
e0de9c5c26 [locator] add degree minute second coordinate support to goto locator 2020-07-31 08:06:32 +07:00
nirvn
6916305eaf [delimitedtext] Rely on QgscoordinateUtils' degree/minute/second to double function 2020-07-31 08:06:32 +07:00
nirvn
07ab4b3255 [FEATURE][expression] Add a to_decimal() function to convert degree/minute/second strings 2020-07-31 08:06:32 +07:00
Matthias Kuhn
f7ca8b6786 Make test folder detection more robust 2020-07-31 07:10:26 +10:00
Matthias Kuhn
2f99a327b0 Improve cli of parse_dash_results 2020-07-31 07:10:26 +10:00
Nyall Dawson
d2238d8f14 Fix parse_dash_result helper script layout issues, add handling
of multiple matching images
2020-07-31 07:10:26 +10:00
Alexander Bruy
510c61ef1b show line numbers in the query are of the virtual layer dialog (fix #23185) 2020-07-31 07:04:56 +10:00
Alexander Bruy
c942185947 allow to copy all line measurements at once (fix #20498) 2020-07-31 07:04:40 +10:00