62507 Commits

Author SHA1 Message Date
Alexander Bruy
bba874cd42 prompt before closing SQL editor tabs with unsaved changes (fix #14636) 2020-05-06 12:49:18 +03:00
Nyall Dawson
1e0b890dc1 [feature][layouts] Expose control over layer legend splitting behavior on a layer-by-layer basis
This allows users to manually override the legend's default setting for "split layers"
on a layer-by-layer basis, by double clicking a layer in the layout legend panel
and choosing whether that layer:
- follows the default legend setting for splitting
- can ALWAYS be split over multiple columns (regardless of the legend's setting)
or
- can NEVER be split over multiple columns (regardless of the legend's setting)

Sponsored by SLYR
2020-05-06 16:27:31 +10:00
Denis Rouzaud
0d5ea7d4c7
allow editing of links in file widget (#36190) 2020-05-06 06:46:54 +02:00
Denis Rouzaud
7e0c438b9c
enhance sorting capabilities in attribute table list/form view (#36199) 2020-05-06 06:45:22 +02:00
Andrea Giudiceandrea
3474934185
Fix parse_dash_results.py
removing a parenthesis too many
2020-05-06 14:37:34 +10:00
Nyall Dawson
f09ec88156 Extra tweaks to legend column auto breaking when manual breaks are present 2020-05-06 12:43:44 +10:00
Nyall Dawson
d574bf7aaa Fix compiler warnings 2020-05-06 09:16:52 +10:00
Andrea Giudiceandrea
a3397a8a2e
[feature][layouts] Add subdivisions in ticks scalebar right segments
Adds the ability to create subdivisions for segments included in the right part of the ticksscalebar

Fixes #20341
2020-05-06 09:12:37 +10:00
Nyall Dawson
fdce7e2c44 Only use distance area calculator in expression preview results
when it has been initialized correctly

Fixes #35628
2020-05-06 09:02:22 +10:00
Alexander Bruy
0ada65b210
Merge pull request #36201 from alexbruy/new-layer-ui
don't pre-select geometry type in the new shapefile/geopackage layer dialogs (fix #14983)
2020-05-05 19:58:59 +03:00
Alessandro Pasotti
7d9fbc23c9
Merge pull request #32138 from jgrocha/geometry-type-based-styles
Support for styles for different geometry types for the same Postgresql table
2020-05-05 18:45:00 +02:00
Sandro Santilli
ef0bfff022 [docker] Avoid assuming /dev/tty is usable
Closes #36187
2020-05-05 16:49:23 +02:00
Nyall Dawson
aaed8f4901 Dox++ 2020-05-06 00:22:27 +10:00
Nyall Dawson
32c17c316e [FEATURE] Allow placing manual column breaks in legends
Adds the option when configuring a legend item to place a column
break before the item, causing it to be placed into a new column

This allows user control over the column content, for cases when
the automatic column generation doesn't result in the desired results
2020-05-06 00:22:27 +10:00
Vincent Cloarec
0d9a15b751
Snap on mesh elements (#36171)
[API] [FEATURE] Add a method in API to snap on mesh elements (vertex, edge, face)
The method returns the position of the snapped point on the closest mesh element :
2020-05-05 13:31:49 +02:00
Alexander Bruy
6684433140 don't pre-select geometry type in the new shapefile and new geopackage
layer dialogs (fix #14983)
2020-05-05 14:22:10 +03:00
Denis Rouzaud
c22c73dde2
allow fetching all features in QgsFeaturePickerWidget (#36193)
and more documentation
2020-05-05 11:08:56 +02:00
nirvn
9e91eb57d9 [layouts] When dropping an SVG onto layouts, treat it as such 2020-05-05 16:27:29 +10:00
Nyall Dawson
1b08f4cb86 Mask image 2020-05-05 16:15:12 +10:00
Nyall Dawson
1653bb80ab Regenerate legend renderer tests using a bold font, and fix too
large number of tolerance pixels in tests

The previous reference images all used such a narrow reference font
that they required a very large pixel tolerance, which was letting
through real errors.

As a result disable the json opacity test, which was completely
broken ever since it was introduced. The test had a LARGER number
of tolerance pixels than the reference images had, and accordingly
was testing nothing at all. And the issue hasn't been fixed, so
the test was a false positive... Now the test is fixed but failing
and disabled, pending someone (else) fixing the underlying issue.
2020-05-05 16:15:12 +10:00
Denis Rouzaud
afbb204236
Allow filtering WM(T)S list in source dialog (#36166) 2020-05-05 07:20:59 +02:00
Jürnjakob Dugge
0888d377e6
When reading scalebar from XML re-apply stored size after changing style (#36173)
This PR fixes the issue that when restoring a numeric scale bar layout item from an XML (such as when opening a saved project or pasting a copied item) the height of the scale bar layout item is set to a value larger than the one stored in the XML (see #26931 and #32379).

The issue arises from the fact that restoring a scale bar layout item initially creates a QgsLayoutItemScaleBar with the default style of Single Box, which has larger minimum dimensions as calculated by calculateBoxSize. The call to attemptResize in QgsLayoutItem::readXml, which tries to apply the dimensions stored in the XML, cannot set the dimensions of the scale bar layout item to be smaller than these minimum dimensions, so the dimensions are only applied correctly if they happen to be larger.

To fix this issue, this PR re-applies the stored size by calling attemptResize in QgsLayoutItemScaleBar::readPropertiesFromElement after the scale bar style has been set.

Additionally, the width of the numeric scale bar was not restored correctly because QgsLayoutItemScaleBar::finalizeRestoreFromXml calls QgsLayoutItemScaleBar::updateScale, which calls resizeToMinimumWidth(). This PR adds a check to skip resizeToMinimumWidth when the style is Numeric.

Fixes #26931, fixes #32379
2020-05-05 15:14:13 +10:00
Nyall Dawson
d3b0b895c9 Let some tests pass on proj == 6 (<7) versions 2020-05-05 15:12:51 +10:00
nirvn
249e405eb8 [image cache] Avoid creating an invalid image and painting onto it 2020-05-05 11:19:52 +07:00
Nyall Dawson
5cd87c1f34 Add unit test 2020-05-05 11:49:05 +10:00
Nyall Dawson
7a6220a77f [FEATURE][layouts] Allow overriding the default symbol for a legend node
This allows users to (optionally!) customise the symbol appearance
for a legend node, e.g. to tweak the colors or symbol sizes to better
provide a "representative" patch symbol compared with how those
corresponding features actually appear on the map.

It's useful for exaggerating symbol widths, or for manually tweaking
the colors of semi-transparent symbols so that the colors represent
the actual appearance of the symbols when rendered on top of the map
content. Or to tweak the marker interval/offset in marker lines so that the
markers are nicely spaced in the legend patch.

Fixes #14077
2020-05-05 11:49:05 +10:00
Harrissou Sant-anna
8f7bb7fe72 Replace the "Edit user expression" button icon 2020-05-05 08:29:24 +10:00
vcloarec
aa6d23d540 disable transparency for QgsInterpolatedLineRenderer 2020-05-05 05:53:25 +10:00
Harrissou Sant-anna
9ae70e3b82 Review existing tooltip and help text 2020-05-05 05:53:06 +10:00
Harrissou Sant-anna
a86413dbb0 Fix more alignment, spacing and stretching issues 2020-05-05 05:53:06 +10:00
Harrissou Sant-anna
6d87c1126b Constrain the feature preview widget size
and avoid it expanding
2020-05-05 05:53:06 +10:00
Samweli Mwakisambwe
a001adbdab
Remove special characters on wms dimension extent 2020-05-05 05:52:35 +10:00
Alexander Bruy
8aa32f71c5
Merge pull request #36129 from jgrocha/postgis-dialogue-ux-improvement
Enables Postgresql service based connections without database name
2020-05-04 20:01:40 +03:00
Jorge Gustavo Rocha
2b9b4ed036
Update src/providers/postgres/qgspostgresprovider.cpp
Co-authored-by: Alessandro Pasotti <elpaso@itopen.it>
2020-05-04 15:57:25 +01:00
Jorge Gustavo Rocha
c90ce4ecd6 Do not check if database name is filled when using services 2020-05-04 15:18:43 +01:00
Martin Dobias
ac8b956640 Allow relative paths to vector tile layers in projects (fixes #36023) 2020-05-04 13:05:19 +02:00
Martin Dobias
27b5dae4bf
[quick] Fix missing images in qgis_quick library (#36152)
They were removed by mistake in 19edc99 when cleaning up .qrc handling
2020-05-04 08:37:20 +02:00
Matthias Kuhn
768d68f2bf Remove garbage
Pretty sure that was never put here on purpose
2020-05-04 16:12:29 +10:00
Paul Blottiere
d8426c3b9d
Merge pull request #36141 from pblottiere/context_restorer
Add a broader restorer mechanism for WMS
2020-05-03 23:41:25 +02:00
Clemens Raffler
096b80e444
[feature][processing] Complete random raster algorithm collection #2
This refactors and completes the recently added work on random number raster layer creation algorithms (see #35835) and reworks the single algorithm implementation proposed in #36065 to a base-algorithm solution which avoids duplicate code.

With the new algorithms aimed towards distribution based random number creation, QGIS reaches to the same level of functionality as current ArcGIS random raster creation tools. In total, the PR adds the following algorithms (normal and uniform raster layer creation algs are refactored to be in line the new naming scheme):

Create random raster layer (binomial distribution)
Create random raster layer (exponential distribution)
Create random raster layer (gamma distribution)
Create random raster layer (negative binomial distribution)
Create random raster layer (normal distribution)
Create random raster layer (poisson distribution)
Create random raster layer (uniform distribution)
2020-05-04 06:28:45 +10:00
Germap
5623229f8c
[processing] Set distanceArea CRS properly in SumLineLengths algorithm
Fix #36135
2020-05-04 06:26:56 +10:00
Nyall Dawson
66a3b090da Maybe even LESS enum classes will help? 2020-05-04 05:38:48 +10:00
Nyall Dawson
4369ffb3cc Fix test 2020-05-04 05:38:48 +10:00
Nyall Dawson
6ec369e6b7 Travis says no to enum class 2020-05-04 05:38:48 +10:00
Nyall Dawson
d6637c5dd2 Request ui changes 2020-05-04 05:38:48 +10:00
Nyall Dawson
d0ca4f31f8 Since 2020-05-04 05:38:48 +10:00
Nyall Dawson
9364196444 Add unit tests for outside polygon labels 2020-05-04 05:38:48 +10:00
Nyall Dawson
e9f024b05c Less debug noise 2020-05-04 05:38:48 +10:00
Nyall Dawson
a934f0f605 Fix broken server tests
These tests had lots of issues, including some inappropriate mask images
which nullified the tests!
2020-05-04 05:38:48 +10:00
Nyall Dawson
00df3712e1 Fix diagram placement 2020-05-04 05:38:48 +10:00