56176 Commits

Author SHA1 Message Date
Nyall Dawson
0389ebeab5 Fix collecting geometries when one of the added geometries is already multi-part
Fixes #30208
2019-06-17 06:27:36 +10:00
Nyall Dawson
b8dcafbf10 [processing] Fix missing default value for Select by Expression
Fixes #30218
2019-06-17 06:27:17 +10:00
Nyall Dawson
52d22b8050 QgsDataSourceURI doxygen improvements 2019-06-16 10:00:59 +10:00
Alex
a02a4ede6e Allow calculating aggregates using a subset of fids only 2019-06-16 07:00:26 +10:00
Tamas Szekeres
6c6c145590 Fix writing geometries with M values, adding tests for Z/M/ZM geometries 2019-06-15 15:16:42 +10:00
Tamas Szekeres
01112bdd43 fix indentation 2019-06-15 15:16:42 +10:00
Tamas Szekeres
3196b0268f Fix indentation 2019-06-15 15:16:42 +10:00
Tamas Szekeres
7d1b0cb70b Adding test for curve geometries 2019-06-15 15:16:42 +10:00
Tamas Szekeres
2dc40ae039 Fix compoundcurve parser 2019-06-15 15:16:42 +10:00
Tamas Szekeres
68a5d1a994 Fix creating layers with curve geometries 2019-06-15 15:16:42 +10:00
Tamas Szekeres
31162ad128 Fix indentation 2019-06-15 15:16:42 +10:00
Tamas Szekeres
2e398f432d Improve the performance of reading linestrings 2019-06-15 15:16:42 +10:00
Tamas Szekeres
861ab7a9fd Drop function headers from the parser code 2019-06-15 15:16:42 +10:00
Tamas Szekeres
abc392213e Apply 'm' prefix for class member variables instead of the hungarian notations. 2019-06-15 15:16:42 +10:00
Tamas Szekeres
d62bc00528 Remove const qualifiers from public declarations 2019-06-15 15:16:42 +10:00
Tamas Szekeres
58f8e7658c Strip nullptr inequality check 2019-06-15 15:16:42 +10:00
Tamas Szekeres
70ae6362de Rename 'foo' to something meaningful 2019-06-15 15:16:42 +10:00
Tamas Szekeres
95ab580178 Apply lower case to member functions for the mssql driver 2019-06-15 15:16:42 +10:00
Tamas Szekeres
941e3ffd1a Fix indentation issues 2019-06-15 15:16:42 +10:00
Tamas Szekeres
7b69172ede strip extra qualification 2019-06-15 15:16:42 +10:00
Tamas Szekeres
4869499a0a Limit the mssql geography spatial filter to valid coordinates 2019-06-15 15:16:42 +10:00
Tamas Szekeres
38659fbbc2 Rework MSSQL parser to support v2 geometries (fixes #22041) 2019-06-15 15:16:42 +10:00
Nyall Dawson
b25fa7a2e3 Try to fix crash on travis 2019-06-15 15:05:48 +10:00
Nyall Dawson
fbd243be65 [processing] Port map layer selection combobox widget to c++
And:

- fix enable state of selected features only after changing between
map layers with/without selections
- fix state of selected features only when running an algorithm
from the history list, e.g. respect original setting for
selected features only (or not)
- ensure no duplicate changed signals are sent, and correctly
emit changed signals in all applicable circumstances
- handle drag and dropped layers from browser panel (UX fix)
- soak with unit tests
2019-06-15 15:05:48 +10:00
Nyall Dawson
9d82273208 Fix duplicate (and missing) signals from QgsMapLayerComboBox, add tests 2019-06-15 15:05:48 +10:00
Larry Shaffer
26b86bae3b
Limit the maximum width of legend embedded widgets
Since column is resized to contents, limit the expanded width of
embedded widgets, if they are not already limited.

Else, embedded widget may grow very wide due to large legend graphics.
2019-06-14 15:32:49 -06:00
Larry Shaffer
a79f2baeee
Ensure layer legend graphics are horizontally scrollable (fixes #28050)
Redmine: https://issues.qgis.org/issues/20229
2019-06-14 15:32:37 -06:00
Nyall Dawson
334103dd07 [layouts] Always use the correct legend size when rendering legends
No existing known bugs caused by this, but it should be done anyway
and will help make future legend related work less confusing...
2019-06-15 06:59:19 +10:00
Harrissou Sant-anna
f432471537 Capitalize the word 2019-06-15 06:58:58 +10:00
Harrissou Sant-anna
25a82505d5 Use complete word
there's enough place
2019-06-15 06:58:58 +10:00
rldhont
5593bcc382
Merge pull request #30215 from rldhont/server-getcontext-fix-hidden
[Server] GetContext: Fix hidden attribute value based on tree layer visibility
2019-06-14 17:17:59 +02:00
Matthias Kuhn
e3f141c708
Merge pull request #30213 from m-kuhn/no-projection
Allow setting the default for new projects to "no projection"
2019-06-14 16:17:00 +02:00
Jorge Gustavo Rocha
b85d42cd6f show version information on std::cout on Windows 2019-06-14 14:31:01 +01:00
rldhont
0499a933c1 [Test][Server] GetContext: Fix hidden attribute 2019-06-14 14:35:25 +02:00
rldhont
c24e141c96 [Bugfix][Server] GetContext: Fix hidden attribute value based on tree layer visibility 2019-06-14 14:28:00 +02:00
Jorge Gustavo Rocha
8e438e6273 output usage() and version() to stdout 2019-06-14 13:05:05 +01:00
Matthias Kuhn
7bcfb8e73b Allow selecting "no projection" as default for new projects 2019-06-14 12:35:22 +02:00
Matthias Kuhn
f36b78c8b1 Set more meaningful text for the project default projection selector
Up to now, a default text, referring to "layer" instead of "project" was shown
2019-06-14 12:28:15 +02:00
Matthias Kuhn
84c8cd61ee Show "no CRS" option in dialog when appropriate
The projection selection widget (combobox) has a flag `CrsNotSet` that allows showing an additional entry for selection no CRS.
The projection selection dialog also has this option (setShowNoProjection). However, a dialog started from a widget with the option
set did not have this option set up to now.
2019-06-14 12:28:15 +02:00
Nyall Dawson
5347eb79c6 Clarify acceptable forms for defaultNorthArrow setting 2019-06-14 08:02:34 +07:00
Nyall Dawson
ec8660da0d Replace hardcoded default north arrow path in validity check 2019-06-14 08:02:34 +07:00
Nyall Dawson
5db0965a26 [layouts] Allow default north arrow path to be specified through settings 2019-06-14 08:02:34 +07:00
Nyall Dawson
ad4a38d1c0 [layouts] Improve north arrow export time validity check to also test
for north arrows by checking their default id string
2019-06-14 08:02:34 +07:00
Nyall Dawson
1423ae35d0 Spelling 2019-06-14 08:02:34 +07:00
Nyall Dawson
19be172343 Add missing file 2019-06-14 08:02:34 +07:00
Nyall Dawson
03a8b032c3 Set north arrows ID by default, so that they are identifiable in layout item lists 2019-06-14 08:02:34 +07:00
Nyall Dawson
ab92deee03 [layouts] Warn when exporting a layout with a north arrow not
linked to a map item
2019-06-14 08:02:34 +07:00
Nyall Dawson
0ccc8f15ff [FEATURE][layouts] Add a dedicated toolbar action to create north arrows
This is a shortcut to adding a picture item, setting it to a north arrow
picture, and linking it with a map. The end result is identical, but it's
much easier for new users to understand if we expose it as an explicit
"North Arrow" item.

Even experienced users will likely appreciate the improved workflow,
including automatically linking the picture rotation to a sensible
default map choice (if a map is selected, it's used. If not, the
topmost map item under the newly drawn north arrow is used. If there's
none, the layout's 'reference map' (or biggest map) is used as a
fallback)

Fixes #30162
2019-06-14 08:02:34 +07:00
Jorge Gustavo Rocha
562bd2411c Add missing entry to usage; replace QStringList by QString 2019-06-14 00:18:52 +01:00
Larry Shaffer
26c83dac78 [oauth2] Remove call to override cursor during token refresh
Unsafe to work with main GUI thread from background auth threads.
2019-06-14 09:01:10 +10:00