640 Commits

Author SHA1 Message Date
Nyall Dawson
a5b0c76f84 Double number of projects kept on welcome page, make configurable
Because 10 isn't enough!
2018-08-10 10:45:14 +10:00
Alessandro Pasotti
8b81f1bb09 [opencl] Single kernel for multi and simple hillshade
To be able to re-use the cached program if the user
changes the multi switch
2018-08-08 09:39:22 +02:00
Alessandro Pasotti
41e7e71db7 [opencl] Hillshade fix alpha and nodata 2018-08-08 09:39:11 +02:00
Alessandro Pasotti
eaa7982cc8 [opencl] Add multidirectional renderer and cache the program
Now we are FAST!
2018-08-08 09:39:06 +02:00
Alessandro Pasotti
a1a65bb4e8 [opencl] Test with image2d 2018-08-08 09:36:56 +02:00
Alessandro Pasotti
b09df53354 Use OpenCL command queue 2018-08-08 09:34:04 +02:00
Alessandro Pasotti
b89808f573 [opencl] Small optimization in hillshade
... and more tolerant epsilon for float comparison in tests
2018-08-08 09:26:30 +02:00
Alessandro Pasotti
dc4b1da0a4 [opencl] Fix small OpenCL alg issues
From comparison tests with CPU results

+ some minor speed improvements
2018-08-08 09:24:40 +02:00
Alessandro Pasotti
a6d5d479fa [opencl] Fix nodata value in slope, aspect and hillshade 2018-08-08 09:23:39 +02:00
Alessandro Pasotti
164bcc2bec [opencl] Ruggedness index OpenCL program 2018-08-08 09:22:34 +02:00
Alessandro Pasotti
314b7e3635 [opencl] Faster cl algorithm 2018-08-08 09:22:02 +02:00
Alessandro Pasotti
3161b9407d [opencl] Global transparency 2018-08-08 09:20:15 +02:00
Alessandro Pasotti
5129dcf03c [opencl] Memory optimization 2018-08-08 09:20:05 +02:00
Alessandro Pasotti
d5dd50c004 [opencl] Hillshade renderer 2018-08-08 09:19:52 +02:00
Alessandro Pasotti
350829e9ee [opencl] Test with image2d 2018-08-08 09:19:45 +02:00
Alessandro Pasotti
3054da0c00 Use OpenCL command queue 2018-08-08 09:19:01 +02:00
Nyall Dawson
a2a56696b0 Drop minimum task time to 5 second before showing a system notification 2018-08-08 15:37:17 +10:00
Nyall Dawson
8c6068a2e2 Don't show system notifications for short tasks
Too annoying!
2018-08-08 15:37:17 +10:00
Mathieu Pellerin
2d964919f6
[FEATURE][expression] add raster_value() function (#7487) 2018-07-27 12:56:04 +07:00
Juergen E. Fischer
155ba1ad50 show wms request step size widgets when customization is enabled 2018-06-28 18:28:31 +02:00
Nyall Dawson
c58c99829a Expand range of colors available for new layers
Here's the rules if you want to add more here (developed by
@nirvn and myself)

- Keep colors in the "middle" - avoid too light or too dark colors,
too light colors will make line layers invisible on the
default white background, too dark colors are too visually heavy
for polygon areas

- Avoid over saturated/pure colors, which are too visually heavy. E.g.

- No blues! Blues have a single meaning on maps (water) and we're
almost never going to fluke that a randomly assigned blue color
is given to a water feature layer. So we just avoid blues altogether
as users are almost always going to have to change layers away
from blue anyway.

- Avoid yellow. Yellow is used as the default selected feature color
in QGIS, so keep colors well away from this yellow to avoid confusion
between selected/unselected yellow layers

- Keep things "happy", "positive" and "friendly". No baby puke green/browns
2018-06-19 19:22:50 +10:00
Denis Rouzaud
87a60d437f
Merge pull request #6733 from 3nids/setenumvalue
Save enum values as string in settings
2018-05-16 17:54:40 -08:00
Alessandro Pasotti
a44eeae441
Merge pull request #6982 from elpaso/currentformfeature-expressions-4
[feature][need-docs] Current feature/current value form context expressions
2018-05-16 09:48:06 +02:00
Matthias Kuhn
c27ce39205
Merge pull request #6980 from m-kuhn/bwta2017
Add BWTA2017.gsb to srs.db
2018-05-16 08:39:01 +02:00
Alessandro Pasotti
1e046a1726 Updated docs for current_value function 2018-05-15 12:45:43 +02:00
Alessandro Pasotti
63d2086de4 Rename functions from get_current_form_field_value to current_value
and current_geometry
2018-05-15 08:34:08 +02:00
Alessandro Pasotti
83328ae596 [feature] Form context expressions in value relation widget
The value relation widget filter expression can now use two
new functions/variables that have access to the current
values and geometry of the form being edited.

This allows for dynamic filtering (drill-down) as explained
in the crowdfunding page:
https://north-road.com/drill-down-cascading-forms/

The new functions/variables are:

Function:
get_current_form_field_value( 'FIELD_NAME' )

Variable:
@current_form_geometry
2018-05-15 08:34:08 +02:00
Salvatore
3660f3f63f corrections 2018-05-14 15:13:22 +02:00
Denis Rouzaud
d26f1e14fd replace with setEnumValue
and complete missing enumValue
2018-05-14 08:49:37 -04:00
Matthias Kuhn
44eb0f901b Add BWTA2017.gsb to srs.db
NTv2 grid available here:
https://www.lgl-bw.de/lgl-internet/web/sites/default/de/05_Geoinformation/Galerien/Dokumente/BWTA2017.zip

More information:
https://www.lgl-bw.de/lgl-internet/opencms/de/05_Geoinformation/Liegenschaftskataster/ETRS89-UTM/

INSERT INTO "tbl_datum_transform" VALUES(NULL, 100017, "4314", "4258", "9615", "BWTA2017.gsb", NULL, NULL, NULL, NULL, NULL, NULL, "Transformation for the German federal state of Baden-Wuerttemberg: Diese NTv2-Datei deckt das Gebiet von Baden-Wuerttemberg ab und ist daher ausschliesslich für die Transformation von Geo(fach)daten innerhalb von Baden-Wuerttemberg geeignet. Dieser Ansatz ist für Geo(fach)daten zu verwenden welche auf Basis der ALKIS Daten gefuehrt und erstellt werden.", "For applications requiring an accuracy of better than 1 metre.", 1, 0, 3339);
2018-05-14 08:20:08 +02:00
Juergen E. Fischer
968b50f4f0 expression help: support optional parameters and defaults 2018-05-10 20:15:39 +02:00
Hannes
e8d1099ff3
add optional segments argument
text taken from single_sided_buffer
2018-05-10 16:58:12 +02:00
Martin Dobias
3b36cdd170
Merge pull request #6750 from lbartoletti/visibleSnapPerf
[BUGFIX][FEATURE][NEEDS-DOCS] Disable snapping on invisible features. Second version
2018-05-01 09:46:59 +02:00
Nyall Dawson
6ca327072a [FEATURE] Add expression functions for tapered and variable
width buffers

Adds:
- tapered_buffer
- buffer_by_m

expression functions. These expose the same functionality as the
equivalent processing algorithms but for use in expressions
such as geometry generators.
2018-05-01 06:16:01 +10:00
Nyall Dawson
d5647bcbdb [FEATURE] Add wedge_buffer expression function
Returns a wedge shaped buffer originating from a point geometry,
with arguments for azimuth, buffer width (in degrees), outer radius
and inner radius.
2018-04-24 10:07:51 +12:00
Loïc Bartoletti
66b0e59fb9 Fix snapping on invisible geometry 2018-04-23 16:00:43 +02:00
Nyall Dawson
cae5f81ed1 Add missing expression help 2018-04-05 06:35:13 +10:00
Nyall Dawson
f02602b9bb [needs-docs] geometry smooth algorithm now also retains and smooths z/m values
...instead of just discarding them

Applies to processing algorithm and expression function (and
QgsGeometry::smooth method)
2018-03-30 08:59:00 +11:00
Nyall Dawson
37c5dd9301 Add settings key to anonymize new projects
Defaults to false, but if set will not automatically set
metadata for newly created projects such as author
and creation date.
2018-03-22 16:13:30 +11:00
Nyall Dawson
b10be8a8a3 Update metadata xml definitions 2018-03-22 16:13:30 +11:00
Etienne Trimaille
648ce14d4f add colors in the log panel for critical and warning levels 2018-03-19 11:31:18 +11:00
Nyall Dawson
8658da39e3 [postgres] Add a timeout for postgres connections
Defaults to 30 seconds, but configurable via advanced settings/
global_settings ini
2018-03-16 10:57:52 +11:00
Nyall Dawson
b0ae1e426b Correctly install palette resources 2018-03-13 10:39:49 +11:00
Nyall Dawson
a75b85fa09 Add missing default palette 2018-03-13 10:39:49 +11:00
Nyall Dawson
2a0f36499a Show scheme selector in color section of options 2018-03-13 10:39:49 +11:00
Nyall Dawson
21ef2fd42b Provide a simple initial palette for new layers
TODO: make it AWESOME!
2018-03-13 10:39:49 +11:00
Juergen E. Fischer
158c32979b fix translation strings 2018-03-09 21:47:49 +01:00
Mathieu Pellerin
b42c893bbc
[FEATURE] color_grayscale_average() and color_mix_rgb() expression functions (#6554) 2018-03-07 11:59:52 +07:00
Raymond Nijssen
7235c625fc New 3d symbols. Blender files in: https://github.com/raymondnijssen/qgis_3d_objects 2018-02-24 13:01:49 +00:00
Nyall Dawson
f35745fc70 Follow up map layer action changes
- Switch to flags instead of boolean argument
- Move logic for layer validity to canRunUsingLayer
- Add unit test

Also remove settings flag to hide duplicate features action
2018-02-24 20:15:13 +11:00