779 Commits

Author SHA1 Message Date
Nyall Dawson
dac7259b46 [needs-docs] Rework new project CRS handling
The previous approach was severely broken, because the default
CRS for new projects setting was ignored as soon as a layer
was added to the project.

Instead, refine the setting to add options
- "Use CRS from first layer added": same as previous behavior,
the project CRS is set to match the first layer added to a new
project
- "Use a default CRS": CRS for a new project is set to a preset
default CRS, and is left unchanged when adding layers to the
project

Also update qgis_global_settings.ini to reflect these changes.

Fixes #27516
2019-05-30 06:28:32 +10:00
David Signer
f8d1a02ea7 mentioning array_agg in relation_aggregate 2019-05-28 06:16:22 +10:00
Nyall Dawson
e5ab06fffa Add missing function group help 2019-05-22 03:45:00 +10:00
Nyall Dawson
2e5257372b [FEATURE] Add order by support to expression aggregate and concatenation functions
Because certain aggregates and concatenation requires results in
a certain order, this change allows specific control of the order
features are added to the aggregate during an expression evaluation.

E.g.

concatenate("Station",concatenator:=',', order_by:="Station")

will give a comma separated list of station names in alphabetical
order, rather than layer feature order.

Sponsored by SMEC/SJ
2019-05-10 06:23:56 +10:00
nirvn
4bc8325737 [ui] Fix missing disabled state for {check/radio/group}box 2019-05-09 11:20:22 +07:00
nirvn
cc37e702cc [themes] Set highlight text color palette for themes 2019-04-29 17:59:13 +07:00
nirvn
c25782a57b [themes] Tweak palette values to better match designated roles 2019-04-29 17:46:36 +07:00
nirvn
c0b2ba19b1 [themes] Add minimum scrollbar dimension to Night Mapping 2019-04-29 16:54:10 +07:00
Nyall Dawson
5a088bfa2b Fix expression function examples 2019-04-28 15:47:35 +10:00
Nyall Dawson
762b2a423b [FEATURE] Expression functions which return file info
base_file_name: Returns the base name of the file without the directory or file suffix.
file_exists: Returns true if a file exists
file_name: Returns the file name from a full path
file_path: Returns the directory/path from a full file path
file_size: Returns a file size
file_suffix: Returns a files suffix/extension
is_directory: Returns true if a file path is a directory
is_file: Returns true if a file path is a file
2019-04-27 17:24:37 +10:00
nirvn
9fa8d5687f [themes] Improve night mapping hyperlink color 2019-04-17 11:34:49 +07:00
nirvn
2582399ab5 [FEATURE][expression] New array_all() function to check whether
an array contains _all_ values of another given array.
2019-04-09 11:44:00 +07:00
Nyall Dawson
785c03358e Move datum transformation dialog prompting behaviour setting to a new
key to reset ALL users to a default value

And add to qgis_global_settings.ini

Sponsored by ICSM
2019-03-22 15:38:11 +10:00
Matthias Kuhn
24b8dcc692
Use a hidden setting for activating geomtery resolution 2019-03-18 13:23:30 +01:00
Matthias Kuhn
ab530e4b04
Merge pull request #9495 from m-kuhn/default-enable-geometry-checks
Make default geometry checks configurable via settings [needs-docs]
2019-03-14 08:46:18 +01:00
Matthias Kuhn
1645799788
Make default geometry checks configurable via settings [needs-docs] 2019-03-13 07:23:26 +01:00
nirvn
b97ef936be [expression] Negative index support to point_n(), angle_at_vertex(), distance_to_vertex() functions 2019-03-13 11:20:04 +07:00
nirvn
f83990f44f [themes] Fix missing visual hint for disabled tabs 2019-03-12 15:07:15 +07:00
nirvn
334ae0ca4f [themes] Restrict QPushButton min-width to raster calculator dialog 2019-03-01 14:20:00 +07:00
Nyall Dawson
fb324f3e43 srs.db add Australian entries
insert into tbl_datum_transform VALUES (8447,100020,4283,7844,9615, 'GDA94_GDA2020_conformal_and_distortion.gsb', null, null, null, null,null, null, 'Conformal + Distortion: includes regional distortion',null,1,0,2575);

insert into tbl_datum_transform VALUES (8446,100021,4283,7844,9615, 'GDA94_GDA2020_conformal.gsb', null, null, null, null,null, null, 'Conformal: predominantly plate tectonic motion (~1.8m NNE)',null,1,0,2575);

insert into tbl_datum_transform VALUES (1804,100022,4203,4283,9615, 'National_84_02_07_01.gsb', null, null, null, null,null, null, 'Full coverage two-way transformation file in those states that originally adopted AGD84 - West Australia, South Australia, Queensland',null,1,0,2576);

insert into tbl_datum_transform VALUES (1803,100023,4202,4283,9615, 'A66_National_13_09_01.gsb', null, null, null, null,null, null, 'Full national coverage two-way transformation file',null,1,0,2575);
2019-02-26 12:49:02 +10:00
Nyall Dawson
db1a1929a4 [FEATURE][expressions] Simplified variant of "attribute" function
This adds a second variant for the existing "attribute" function.
The current function requires both a target feature and attribute
name to be specified, while the NEW variant just uses the current
feature.

E.g.

NEW:

attribute( 'name' ) -> returns the value stored in 'name' attribute
for the current feature

EXISTING:

attribute( @atlas_feature, 'name' ) -> returns value stored in 'name'
attribute for the current atlas feature

It's just a faster shorthand version!
2019-02-23 05:20:52 +10:00
Mathieu Pellerin
7599d4f8d5
[expression] Add try() function to provide a way to detect and handle
expressions which can intermittently fail.
2019-02-20 06:27:43 +07:00
Etienne Trimaille
06fab90981 add some optional flags in make_polygon expression 2019-02-20 05:41:26 +10:00
Mathieu Pellerin
5297d83cb5 [themes] Slightly adjust padding of push buttons to match tool buttons 2019-02-19 18:49:18 +07:00
nirvn
1e431f20b2 [themes] Add minimum width for QPushButton widgets (fix tiny raster calc. buttons) 2019-02-13 12:55:37 +07:00
nirvn
e41ff7b745 [themes] Fix missing focus hint for slider widgets 2019-02-11 11:34:17 +07:00
nirvn
d1e5d6ef24 [themes] Fix style of line edit within combo box 2019-02-11 11:28:54 +07:00
nirvn
0647188566 [themes] Properly style table/list view headers 2019-02-11 11:14:06 +07:00
nirvn
b080ab548b [themes] Scroll bar handle can go MIA, add minimum width/height 2019-02-11 10:25:55 +07:00
Mathieu Pellerin
3ae5038d7f [themes] Properly style widget focus 2019-02-09 15:36:34 +07:00
Mathieu Pellerin
bfbb75ae2b [themes] Fix background color issue within group boxes 2019-02-09 13:03:42 +07:00
Mathieu Pellerin
7c50ed9b7e [themes] Properly size width of icon-only labeling/mesh tab bar 2019-02-09 11:13:42 +07:00
nirvn
fc6695ab9b [themes] Harmonize padding of combobox widgets 2019-02-08 12:12:18 +07:00
nirvn
669d72aa29 [themes] Add padding for icons in combo box's drop down lists 2019-02-08 11:05:46 +07:00
nirvn
5fc0726bfa [themes] Properly style editable combobox in disabled state 2019-02-08 10:54:38 +07:00
Juergen E. Fischer
2bed7ab001 fix substr help (fixes #21192) 2019-02-07 11:17:57 +01:00
nirvn
aec05a7288 [themes] Insure groupbox checkbox indicator size equals that of normal checkbox 2019-02-07 10:53:56 +07:00
nirvn
87a1cb55c7 [themes] Properly style autoRaise state in Night Mapping 2019-02-06 17:57:37 +07:00
nirvn
c1e62ed2f9 [themes] Properly style autoRaise state in Blend of Gray 2019-02-06 17:56:48 +07:00
nirvn
fc238a7236 [themes] Better style tool buttons in the tab bar for Blend of Gray 2019-02-06 17:27:33 +07:00
Nyall Dawson
a97ce698e4 Allow maximum number of entries to show in relation reference widget
to be configurable via an advanced setting configuration option

In some circumstances 100 is not enough
2019-02-05 19:38:38 +11:00
nirvn
c62a4ae012 [themes] Get rid of the check mark in combo box drop down lists 2019-02-05 14:01:27 +07:00
Alessandro Pasotti
109fcc0abc
Merge pull request #9070 from elpaso/bugfix-21121-opencl-16bit-raster
Fix hillshade renderer with data type != Float32 [opencl]
2019-02-04 11:01:56 +01:00
Mathieu Pellerin
3f63c9caed Last weaks to blend of gray prior to its initial release 2019-02-03 13:08:39 +07:00
Alessandro Pasotti
1aef9cfa49 [opencl] Fix hillshade renderer with 16bit rasters
Fixes #21121
2019-02-02 10:53:11 +01:00
nirvn
b0b196a97c [themes] Improve styling of message bar scrollbar for Night Mapping 2019-01-24 10:37:07 +07:00
nirvn
002c9e1415 [themes] Improve styling of message bar scrollbar for Blend of Gray 2019-01-24 10:36:55 +07:00
Mathieu Pellerin
263c4c2a50 [themes] Fix selection color of the attribute table view widget 2019-01-23 19:42:10 +07:00
Mathieu Pellerin
9068f3c9a4 [themes] Fix selection text for various widgets 2019-01-23 19:06:18 +07:00
Matthias Kuhn
008dfeed40 Rename json functions to postgres names 2019-01-18 17:45:12 +07:00