60051 Commits

Author SHA1 Message Date
Alessandro Pasotti
f290007aac PG raster: silence warning on different SRID 2020-01-15 10:31:29 +01:00
Alessandro Pasotti
d34229870c PG raster: silence warning on NULL nodata value 2020-01-15 10:29:37 +01:00
Sandro Mani
be42816ee1 Install various missing headers and fix some includes to work with installed headers 2020-01-15 10:21:22 +01:00
Peter Petrik
ecd90c6ecb
[FEATURE] Allow customization of the items shown in browser (#33679)
* [FEATURE] Allow customization of the items show is browser. User can select in Interface Customization dialog to hide some of the items in the browser panel

Funded by Limerick City and County Council
2020-01-15 10:08:58 +01:00
Nyall Dawson
a9ed83f1a6 [FEATURE][processing] New algorithm "Rename table field"
Takes an input layer, existing field and a new name for the field, and
outputs a new layer with the selected field renamed.

While this result could also be achieved with the Refactor Fields
algorithm, Refactor Fields isn't particularly model friendly. It
relies on a constant, fixed table structure, and can't adapt to
input tables with different field structures.

In constrast, this simple Rename Field algorithm adapts nicely for
model use, because it operates on a single field only and leaves
all the other fields untouched.
2020-01-15 21:56:10 +13:00
Nyall Dawson
d3b94025a0 Reuse existing QgsDistanceArea instead of creating new ones 2020-01-15 21:55:27 +13:00
Nyall Dawson
1461ae8d0f [FEATURE][gps] Show distance from GPS lock position to current cursor
position in status bar

When a GPS device is connected, whenever the user moves the cursor
over the canvas a live status bar message displays the distance
and bearing from the cursor to the GPS fix position.

Project distance and bearing settings are respected in this display.
2020-01-15 21:55:27 +13:00
Nyall Dawson
cb6fe01284 Reuse coordinate transform in GPS information widget instead of making
new ones all the time
2020-01-15 21:55:27 +13:00
signedav
993fa38d73
Merge pull request #33688 from signedav/copy-child
Fix invalid attributes dialog on copy to another layer
2020-01-15 07:00:43 +00:00
Matthias Kuhn
5dfb5f6bb5 Followup review comments 2020-01-15 07:43:34 +01:00
Matthias Kuhn
9243bd2d38
Update src/analysis/vector/geometry_checker/qgsgeometrygapcheck.cpp
Co-Authored-By: Nyall Dawson <nyall.dawson@gmail.com>
2020-01-15 07:36:52 +01:00
Nyall Dawson
ddf3d2dffa Use modern approach to combobox population, fix capitalization 2020-01-15 17:10:59 +13:00
Nyall Dawson
0cd955743c Create QgsLabeling class for labeling related enums and constants,
and avoid inclusion of pal header in a public QGIS header

pal is an internal implementation detail -- it should not be exposed
publicly
2020-01-15 17:10:37 +13:00
Nyall Dawson
15a63634f3 [processing] Don't show invalid layer warning if a layer was not even set 2020-01-15 16:38:25 +13:00
nirvn
ff96140393 Fix out-of-sync vector layer extent after a dataChanged was emitted 2020-01-15 10:27:04 +07:00
Nyall Dawson
6bbe28bcf7 Fix some Qt 5.13 deprecation warnings 2020-01-15 08:12:36 +13:00
Nyall Dawson
527eca9684 Fix QgsMapCanvas::xyCoordinates reports incorrect coordinates if a pan
operation is in progress

This causes the status bar coordinates widget to show nonsense coordinates
during the pan operation. The cursor world position ISN'T changing during
a pan operation, it stuck to a fixed location!
2020-01-15 08:12:02 +13:00
David Signer
f3d14f94a9 unset deprecated of setIdentifierValuesToNull and setExtraIdentifierValuesToNull because they at least help to set the list to null 2020-01-14 19:10:51 +01:00
Matthias Kuhn
8b62eb9572 Better doc strings 2020-01-14 19:07:59 +01:00
Alessandro Pasotti
abb84ef31e PG raster: fix GEOS exception when fetching tiles 2020-01-14 18:48:27 +01:00
Denis Rouzaud
8a74a3dd2f [github] fix cron period 2020-01-14 18:36:40 +01:00
Denis Rouzaud
7602174369 [github] move condition at step level
instead of job level

this should stop the spammy notification about failing jobS2
2020-01-14 18:33:54 +01:00
Alessandro Pasotti
ba94c5eded PG raster: more metadata 2020-01-14 18:24:02 +01:00
Matthias Kuhn
952d704814 Rename QgsGeometryCheckFix to QgsGeometryCheckResolutionMethod 2020-01-14 16:51:59 +01:00
Matthias Kuhn
d5cc24c0ca Make gap fixes more robust 2020-01-14 16:38:38 +01:00
Matthias Kuhn
6cdd75bbab More geometry fix goodness 2020-01-14 16:38:38 +01:00
Matthias Kuhn
0bc8726f4f Geometry fix fix 2020-01-14 16:38:38 +01:00
Matthias Kuhn
35d5176210 Analysis again 2020-01-14 16:38:38 +01:00
Matthias Kuhn
f6e388af9b Geometry gap analysis update 2020-01-14 16:38:38 +01:00
Matthias Kuhn
60b21f2a89 Preserve boolean in offline editing 2020-01-14 16:26:12 +01:00
Peillet Sebastien
84563cb2c5 apply different test depend on Qt version 2020-01-14 13:43:21 +01:00
Peillet Sebastien
7b1890931c These tests have different results between azure and travis building 2020-01-14 13:43:21 +01:00
speillet
b13846578f BUG: fix expected value for a test, due to changes in qtcore package version between bionic and disco Ubuntu release
BUG: fix expected value for a test, due to changes in qtcore package version between bionic and disco Ubuntu release
2020-01-14 13:43:21 +01:00
speillet
18f65c6345 add scientific notation for double type when precision is mentionned 2020-01-14 13:43:21 +01:00
speillet
5fe6bb89be BUG: scientific notation for double number between 1 and -1, fix #33475 2020-01-14 13:43:21 +01:00
Matthias Kuhn
f00cbb300b
Merge pull request #33782 from nyalldawson/fix_azure
Fix azure test failure, missing .arg
2020-01-14 13:11:55 +01:00
Matthias Kuhn
a47bbf4148
Merge pull request #33642 from lbartoletti/fix_snap_3d_on_2d_vertex
Fix ZM snapping for line/polygon on 2D vertex
2020-01-14 13:11:37 +01:00
Denis Rouzaud
18549faea7
[github] switch bot to 1h period
It will be able to handle 24 PR a day which sounds enough! And should save a bit of energy.
2020-01-14 12:14:27 +01:00
Alessandro Pasotti
88bc4483ad PG raster: add test to cmake 2020-01-14 10:44:37 +01:00
Alessandro Pasotti
36b7d8b82a PG raster performance boost by using overviews for stats 2020-01-14 10:30:14 +01:00
Nyall Dawson
94cb5f8ca9 [processing] Improve spatial join speed when joining few features to many
E.g. when joining a 7 feature polygon layer to a 3.2 million feature polygon
layer, processing time (on a debug build) has dropped from 696 seconds
to 1.3 seconds
2020-01-14 21:28:30 +13:00
Nyall Dawson
771fc3ff60 [FEATURE][processing] Add new mode to "Join Attributes by Location" algorithm
to take attributes from matching feature with largest area of overlap only

This allows for easy polygon->polygon joins, where you expect there to be
only a single matching feature and don't want to include features which
are just touching or have just tiny sliver polygon overlaps.

Sponsored by SMEC/SJ
2020-01-14 21:28:30 +13:00
Alessandro Pasotti
99ac4fb820 PG raster: do not require db name
... in case a service file is used
2020-01-14 08:28:10 +01:00
root676
4c495dc0c3 fix constant raster cellsize - prefer cellsize over extent parameter so that rectangular pixels are avoided. 2020-01-14 19:59:24 +13:00
David Signer
c7af6f04de do not force signal on deleteForeignKeys 2020-01-14 07:48:26 +01:00
David Signer
4b4d902459 setting fkey to null 2020-01-14 07:48:26 +01:00
David Signer
883a52790c setting fkey values to null 2020-01-14 07:48:26 +01:00
David Signer
b0d9932683 Calls setIdentifierValues( QVariantList() ) in setIdentifierValuesToNull to fix the issue that it did only set the values to null but not the index to the null values index before, what leaded to the problem that in the relationreference widget it did not change the text on switching on a form with null values (e.g.) in the attribute list's form view.
Since the function setIdentifierValuesToNull does nothing else meanwhile, it's deprecated and we use setIdentifierValues( QVariantList() ) instead.
2020-01-14 07:48:26 +01:00
Nyall Dawson
68fbca28dc Test mask updates 2020-01-14 16:11:53 +10:00
Nyall Dawson
f14a06c2fd Make table cell editing behave more like the spreadsheet style conventions
Where selecting a cell and then typing enters a "weak" edit mode, whereby
pressing a cursor key will immediately end editing and move to another
cell. But double-clicking a cell to edit enters a "strong" edit mode,
where cursor key presses are used to navigate through the current
cell text
2020-01-14 19:08:20 +13:00