59897 Commits

Author SHA1 Message Date
Alexander Bruy
57e211dc4e update tests 2020-01-15 15:17:39 +02:00
Alexander Bruy
1fe16b712a use native algorithm instead of RectanglesOvalsDiamondFixed 2020-01-15 13:41:52 +02:00
Alexander Bruy
9a02e216d7 optimize polygon creation 2020-01-15 13:41:52 +02:00
Alexander Bruy
a6d2a82c52 throw exception if multipart input found 2020-01-15 13:41:52 +02:00
Alexander Bruy
fb4d9c0b81 fix algorithm description and make width, height and rotation parameters
limits more reliable and meaningful
2020-01-15 13:41:52 +02:00
Alexander Bruy
c752919dd0 [processing][needs-docs] port Rectangle,ovals,diamonds algorithm to C++
and make width, height and rotation parameters dynamic.

Old Python implementations marked as deprecated to maintain API
compatibility.
2020-01-15 13:41:52 +02:00
Peter Petrik
cf36172e33 bugfix: fix exporting of the mesh contours for polygons. now the exported polygons does not match triangular mesh 2020-01-15 12:31:11 +01:00
Peter Petrik
a2a80976c2 update MDAL to 0.4.94 2020-01-15 12:25:03 +01:00
Juergen E. Fischer
51c2f0ffad followup 69a53d945c28f 2020-01-15 12:18:58 +01:00
Juergen E. Fischer
69a53d945c fix windows build 2020-01-15 11:01:03 +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
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
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
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
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
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
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
Nyall Dawson
515a6b19e0 Nicer initial dialog cell sizes 2020-01-14 19:08:20 +13:00
Nyall Dawson
979af783b9 Allow multiline text editing in table editor (ctrl+enter inserts a line break) 2020-01-14 19:08:20 +13:00
Nyall Dawson
60d5e22a05 Make a custom delegate for the table editor 2020-01-14 19:08:20 +13:00
Nyall Dawson
2117aa7a5d Make table editing action text more descriptive
By describing the number of rows/columns affected, eg "Insert 2 Columns Before"
2020-01-14 19:08:20 +13:00
Nyall Dawson
2e751dd7f2 Fix incorrect logic in reuse of existing manual table widgets 2020-01-14 19:08:20 +13:00
Nyall Dawson
12fb06b383 Standardize capitalization, use modern stable method to populate
and set combobox values
2020-01-14 19:08:20 +13:00
Nyall Dawson
f64d9c1ca0 Use 'Fixed Table' as name for manually created tables 2020-01-14 19:08:20 +13:00
Nyall Dawson
90fa54a52b Test masks 2020-01-14 19:08:20 +13:00
Nyall Dawson
0c1264c6dd Spelling 2020-01-14 19:08:20 +13:00
Nyall Dawson
faf49490a1 Add unit tests for manual table row heights and column widths 2020-01-14 19:08:20 +13:00
Nyall Dawson
0aef9a178b Unit tests for editing row height/column width 2020-01-14 19:08:20 +13:00
Nyall Dawson
20b7a520f2 Remove redundant Format menu actions from table designer
Since the formatting panel is always shown, these actions aren't required
2020-01-14 19:08:20 +13:00
Nyall Dawson
e7e53f4e96 Remove useless Refresh button from table properties 2020-01-14 19:08:20 +13:00