920 Commits

Author SHA1 Message Date
nirvn
cf0467a373 [themes] Fix slider 'fill' missing in themes and improve looks of night mapping theme slider 2020-05-21 12:18:20 +07:00
Etienne Trimaille
4587cc1484 review help about maptip and display_expression 2020-05-20 13:53:43 +10:00
Nyall Dawson
f49067cf27 Documentation improvements 2020-05-20 12:40:19 +10:00
Jan Caha
0b260248dc remove variableLenArguments from help 2020-05-20 12:40:19 +10:00
Jan Caha
988ac20647 [feature][expression] base64 to and from helps 2020-05-20 12:40:19 +10:00
Håvard Tveite
1ad63e931a
geom_to_wkb - update description 2020-05-18 07:52:59 +10:00
Samweli Mwakisambwe
780a146ed3 added Samweli Mwakisambwe to contributors list 2020-05-15 08:06:22 +10:00
Nyall Dawson
da042bb61d [feature][expressions] New expression function "make_interval"
Allows direct construction of interval values from years/months/weeks/
days/hours/minutes/second values, without having to construct
a string representation of the interval first
2020-05-09 20:22:52 +10:00
nirvn
3d09e7fe56 Follow up 01ec02a : remove border on QPushButton:open state as Qt merges that with QPushButton:pressed 2020-05-08 11:40:59 +07:00
nirvn
01ec02ae37 [themes] Style checked style of push buttons 2020-05-07 18:10:24 +07:00
Nyall Dawson
c2715d7b44 [FEATURE][expressions] Add make_date, make_time and make_datetime functions
These functions allow for direct creation of date/time values. Previously
this was only possible by going through the to_datetime/to_date/to_time
functions, which are string based and accordingly frustrating/inefficient
to use when you have numeric date/time component values.
2020-05-07 14:46:54 +10:00
Mathieu Pellerin
5f6abada4e [themes] Fix styling of bottom-located tabs 2020-05-03 11:00:29 +07:00
Jan Caha
89fe6347ae
[feature] close_line expression function
Closes an open (multi)linestring geometry
2020-05-02 09:08:35 +10:00
Nyall Dawson
74aa54bc2b Revert temporary new style inclusions 2020-04-30 10:52:19 +10:00
Nyall Dawson
3069a8eef3 Add mechanism to allow new symbols to be added to the default style
library to be updated when QGIS is upgraded
2020-04-30 10:52:19 +10:00
Jan Caha
3656b101ee
Expressions for geometry Z and M minimum and maximum (#35928)
* add expressions for min and max M and Z - including tests

* add my info to contributors.json

* Apply suggestions from code review

suggestions to help for expressions from Nyall

Co-Authored-By: Nyall Dawson <nyall.dawson@gmail.com>

* Apply suggestions from code review

add suggestions to qgsexpressionfunction.cpp from Nyall

Co-Authored-By: Nyall Dawson <nyall.dawson@gmail.com>

* [feature][expressions] - fix expressions Z/M min and max

* [feature][expressions] - fix styling Z/M min and max expressions

Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
2020-04-27 13:28:22 +02:00
Richard Duivenvoorde
546db9e88e Make cmake output slightly better 2020-04-22 13:52:36 +02:00
Jan Caha
a2cbd9ceea add is_multipart expression 2020-04-22 05:26:54 +10:00
Jan Caha
d6829feffe
[FEATURE] ascii function for expressions
Returns the unicode code associated with the first character of a string
2020-04-20 09:28:57 +10:00
Julien Monticolo
df0f97524f
Expression builder : add layer_property(...,'distance_units')
To complete the existing function layer_property(...), this change add a new argument 'distance_units' for return a string with the layer distance units (see QgsUnitTypes::DistanceUnit)

This function can be used for display units for labels, in layouts or for access to more layer properties in the expression builder for algorithms.
2020-04-07 09:20:38 +10:00
Mathieu Pellerin
827f0a1add [themes] Fix visual disabled state of checked tool buttons 2020-04-06 12:32:58 +07:00
Matthias Kuhn
f08084b61b
Merge pull request #35415 from suricactus/expr_is_editable
FIX #33355  New Expression to check the edit mode of a layer
2020-03-29 08:42:06 +02:00
Ivan Ivanov
bcf0ef9b3d FIX #33355 New Expression to check the edit mode / state 2020-03-28 04:45:30 +02:00
Etienne Trimaille
e7556c4ea6 add maptip, expression display and eval_template expressions 2020-03-26 09:24:18 +10:00
vcloarec
d1c13a9512 adapt test and fix arrows positioning 2020-03-11 07:51:02 +01:00
Harrissou Sant-anna
375242cb18 Fix geom_from_gml example display 2020-03-09 07:30:55 +10:00
Alessandro Pasotti
3246a92db8
Merge pull request #34827 from elpaso/parent-form-current-value-2
[feature] Get current parent form values in child forms
2020-03-05 10:51:43 +01:00
Harrissou Sant-anna
ae45af58d6 Add details to project expression and fix example 2020-03-05 09:52:59 +10:00
Alessandro Pasotti
195efa42a1 Final touches to the parent form API 2020-03-04 08:52:52 +01:00
Juergen E. Fischer
edee4a3d10 spelling fixes (closes #32408) 2020-02-28 21:04:02 +01:00
Nyall Dawson
7057b37899 Check in updated internal srs db based on latest proj version 2020-02-27 14:33:02 +10:00
Raymond Nijssen
3f80823b34 fix for format_date() help text 2020-02-27 06:36:26 +10:00
Alessandro Pasotti
f1c6bdf00c Move jsonformatter to own dir, add license and src
Fixes #34586
2020-02-23 18:08:36 +01:00
Nyall Dawson
5251852f04 Record proj version number in srs6.db after running srssync utility
And when running srssync, return early if the version number is unchanged
from the last run.

This avoids running the full (slow, on proj 6 builds) srssync with
every build, which is PITA for rapid development...
2020-02-22 06:48:10 +10:00
Nyall Dawson
b840ad7f5c Fix srcsync "... can't be updated" warnings under proj 7 2020-02-20 17:53:05 +10:00
lbartoletti
51ba7e8a89 Fix hash help
I realize that I didn't change it after our discussion on the PR https://github.com/qgis/QGIS/pull/31726.
2020-02-14 06:40:22 +10:00
Nyall Dawson
947fe8d54a Add an advanced settings key to allow disabling of the "pan distance"
message which shows in the status bar after a pan operation
2020-02-06 04:35:23 +10:00
Nyall Dawson
0030c31a81 Update ini descriptions 2020-01-21 11:28:15 +10:00
Nyall Dawson
b14997dc11 Address review comments, don't store username if anonymize_saved_projects is true 2020-01-21 11:28:15 +10:00
Nyall Dawson
56a572f9d5 [gps] Allow GPS serial port connection properties to be specified in QSettings
Instead of hardcoding these values, allow them to be customised by changing
settings in QSettings (either via the settings ini file or through the
advanced settings editor), as some serial GPS devices require non-default
settings for the connection to work correctly.
2020-01-13 13:45:34 +13:00
Nyall Dawson
d8645f5285 Update rotate function help for optional center point 2020-01-02 14:45:06 +10:00
Raymond Nijssen
933f1cac72 [FEATURE] rotate() expression function
Allows rotation of geometries around a point
2020-01-02 14:45:06 +10:00
Nyall Dawson
c5e0ada6bd [needs-docs] Add optional global settings allowing for hard limits
to be placed on the maximum number of point, line and polygon candidates
which are generated for label features

These settings are set via the core\rendering\label_candidates_limit_*
settings, and allow for global limits to be set on the maximum number
of candidates allowed for label features. Placing these limits can
improve map rendering time, at the expense of worse label placement or
potentially missing map labels. (By default no global limit is set, which
means the labeling engine auto calculates the limit or uses the project
level settings)

The intended use case is for server administrators who are seeking for
maximum rendering speed to globally set these limits, causing them to
apply to all projects without the need for project-specific tweaks.
2019-12-26 13:18:10 +10:00
Alessandro Pasotti
b894cb7c2c User -> User expressions 2019-12-18 20:16:28 +01:00
Alessandro Pasotti
a8c0e4cbf6 User expressions followup
- renamed the group to "User"
- added help text for the group
- added QgsSettings Expressions namespace
- reworded tooltips for store/remove actions
2019-12-18 14:24:02 +01:00
signedav
4cbd9a1ee3
Merge pull request #33197 from signedav/searchtags_functions
Search tags on expression functions
2019-12-17 09:28:26 +00:00
Matthias Kuhn
98f8a89704
Merge pull request #33204 from olivierdalang/feature_random_seed_squashed
[FEATURE][expressions] allow to seed random functions
2019-12-17 07:31:26 +01:00
Matthias Kuhn
3b4437bcf8
Merge pull request #33333 from lbartoletti/expression-is_empty
Add expressions is_empty(geom)  is_empty_or_null(geom)
2019-12-16 08:06:58 +01:00
lbartoletti
c7fca820e5
Update resources/function_help/json/is_empty
Co-Authored-By: Matthias Kuhn <matthias@opengis.ch>
2019-12-16 06:32:23 +01:00
lbartoletti
c7bc3af96c add expression is_empty_or_null 2019-12-13 07:21:53 +01:00