620 Commits

Author SHA1 Message Date
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
Nyall Dawson
84c5089389
Merge pull request #6438 from lbartoletti/make_triangle
Add missing make_triangle function help. Fixes #16406
2018-02-24 10:47:27 +11:00
Loïc Bartoletti
0dcea18929 Add missing make_triangle function help. Fix #16406 2018-02-23 14:32:43 +01:00
Nyall Dawson
43350a9a3e Hide 'duplicate features' actions by default
Since there's a number of serious outstanding issues with these
tools, hide them by default and show them only if a QgsSettings
flag is set ("tools\showDuplicateFeatureActions").

This allows the tools to be reworked for 3.2, while still
making them accessible for users who require their functionality.
2018-02-21 14:18:55 +10:00
Juergen E. Fischer
c3573b1636 more translation string fixes and updates 2018-02-17 11:33:36 +01:00
Alessandro Pasotti
2ded9c2ece Merge branch 'settings_17670' of https://github.com/NathanW2/QGIS into NathanW2-settings_17670 2018-02-12 09:57:44 +01:00
Nathan Woodrow
c988dd2910 Move settings to resource folder 2018-02-12 15:48:21 +10:00
Alexander Bruy
edcd2a186e fix typos 2018-02-11 09:38:34 +02:00
Alexander Bruy
f4094af6f9 add default help location to the global settings (refs #17670) 2018-02-11 09:38:34 +02:00
Nyall Dawson
02bfe0a20c Drop default snap tolerance to 12 px 2018-01-30 18:31:02 +11:00
Nyall Dawson
67f2649315 Set default snapping tolerance to 15 pixels
Because 0 meter default is bad UX. Also update global_settings
ini with snapping settings.
2018-01-30 18:31:02 +11:00
Etienne Trimaille
c871e84e36 update XSD and XML according to #36bf093 2018-01-24 21:28:46 +11:00
Harrissou Sant-anna
dd039813f1 Update lpad and rpad functions description 2018-01-18 16:43:43 +10:00
Matthias Kuhn
168c469b32 Rename QgsGPS prefixed classes to QgsGps 2018-01-15 11:55:23 -04:00
Mathieu Pellerin
e3cfbb0805
[gui] do not automatically format name of added layers (fixes #17741)
(users wanting to re-enable that behavior can do so by switching
qgis/formatLayerName to true)
2018-01-15 11:44:01 +07:00
Juergen E. Fischer
4abac93115 packaging updates 2018-01-05 11:12:04 +01:00
Juergen E. Fischer
e271b647d4 translation string updates (incl. better translatable date time widget
help)
2018-01-04 22:49:30 +01:00
Harrissou Sant-anna
cdbb0df8d7 Add example with NULL value 2018-01-03 06:57:10 +01:00
Nathan Woodrow
cecb89d089 Update srs.db with new bounds 2017-11-27 11:54:08 +10:00
Nathan Woodrow
877c0dc252 Update bounds srs.db in source from epsg db 2017-11-27 11:54:08 +10:00
Alessandro Pasotti
e05cca2bed [bugfix][auth] 2to3 settings migrate authcfg for WMS/WFS
Fixes #17402 Authentication settings for WMS/WFS etc. are not migrated from 2 to 3
2017-11-21 09:24:02 +01:00